Skip to content
Source
Sign inSign up
TanStack/cli
Open History to see the last commit

demo.index.css

220 lines3.6 KB

1@import "tailwindcss";
2@import "highlight.js/styles/github-dark.css";
3​
4/* Custom scrollbar styles */
5::-webkit-scrollbar {
6 width: 8px;
7}
8​
9::-webkit-scrollbar-track {
10 background: transparent;
12​
13::-webkit-scrollbar-thumb {
14 background-color: rgba(156, 163, 175, 0.5);
15 border-radius: 4px;
17​
18::-webkit-scrollbar-thumb:hover {
19 background-color: rgba(156, 163, 175, 0.7);
21​
22/* Smooth transitions for dark mode */
23html {
24 transition: background-color 0.3s ease;
26​
27/* Markdown content styles */
28.prose {
29 max-width: none;
30 color: #e5e7eb; /* text-gray-200 */
32​
33/* .prose p {
34 margin-top: 1.25em;
35 margin-bottom: 1.25em;
36} */
37​
38.prose code {
39 color: #e5e7eb;
40 background-color: rgba(31, 41, 55, 0.5);
41 padding: 0.2em 0.4em;
42 border-radius: 0.375rem;
43 font-size: 0.875em;
45​
46.prose pre {
47 background-color: rgba(31, 41, 55, 0.5);
48 border-radius: 0.5rem;
49 padding: 1rem;
50 margin: 1.25em 0;
51 overflow-x: auto;
53​
54.prose pre code {
55 background-color: transparent;
56 padding: 0;
57 border-radius: 0;
58 color: inherit;
60​
61.prose h1, .prose h2, .prose h3, .prose h4 {
62 color: #f9fafb; /* text-gray-50 */
63 /* margin-top: 2em; */
64 /* margin-bottom: 1em; */
66​
67.prose ul, .prose ol {
68 margin-top: 1.25em;
69 margin-bottom: 1.25em;
70 padding-left: 1.625em;
72​
73.prose li {
74 margin-top: 0.5em;
75 margin-bottom: 0.5em;
77​
78.prose blockquote {
79 border-left-color: #f97316; /* orange-500 */
80 background-color: rgba(249, 115, 22, 0.1);
81 padding: 1em;
82 margin: 1.25em 0;
83 border-radius: 0.5rem;
85​
86.prose hr {
87 border-color: rgba(249, 115, 22, 0.2);
88 margin: 2em 0;
90​
91.prose a {
92 color: #f97316; /* orange-500 */
93 text-decoration: underline;
94 text-decoration-thickness: 0.1em;
95 text-underline-offset: 0.2em;
97​
98.prose a:hover {
99 color: #fb923c; /* orange-400 */
101​
102.prose table {
103 width: 100%;
104 border-collapse: collapse;
105 margin: 1.25em 0;
107​
108.prose th, .prose td {
109 padding: 0.75em;
110 border: 1px solid rgba(249, 115, 22, 0.2);
112​
113.prose th {
114 background-color: rgba(249, 115, 22, 0.1);
115 font-weight: 600;
117​
118/* Message transition animations */
119.message-enter {
120 opacity: 0;
121 transform: translateY(10px);
123​
124.message-enter-active {
125 opacity: 1;
126 transform: translateY(0);
127 transition: opacity 300ms, transform 300ms;
129​
130.message-exit {
131 opacity: 1;
133​
134.message-exit-active {
135 opacity: 0;
136 transition: opacity 300ms;
138​
139/* Add/update these styles to match AI formatting capabilities */
140.prose h1 {
141 font-size: 2em;
142 /* margin-top: 1em; */
143 margin-bottom: 0.5em;
145​
146.prose h2 {
147 font-size: 1.5em;
148 margin-top: 1em;
149 margin-bottom: 0.5em;
151​
152.prose h3 {
153 font-size: 1.25em;
154 margin-top: 1em;
155 margin-bottom: 0.5em;
157​
158.prose ul {
159 list-style-type: disc;
160 padding-left: 1.5em;
162​
163.prose ol {
164 list-style-type: decimal;
165 padding-left: 1.5em;
167​
168.prose table {
169 width: 100%;
170 border-collapse: collapse;
171 margin: 1em 0;
173​
174.prose th,
175.prose td {
176 border: 1px solid rgba(249, 115, 22, 0.2);
177 padding: 0.5em;
179​
180.prose th {
181 background-color: rgba(249, 115, 22, 0.1);
183​
184.prose strong {
185 color: #f9fafb; /* text-gray-50 */
186 font-weight: 600;
188​
189.prose em {
190 font-style: italic;
192​
193.prose blockquote {
194 border-left: 4px solid #f97316; /* orange-500 */
195 padding-left: 1em;
196 margin: 1em 0;
197 color: #d1d5db; /* text-gray-300 */
199​
200/* Ensure code blocks match the AI's formatting */
201.prose code {
202 color: #e5e7eb;
203 background-color: rgba(31, 41, 55, 0.5);
204 padding: 0.2em 0.4em;
205 border-radius: 0.375rem;
206 font-size: 0.875em;
208​
209.prose pre {
210 background-color: rgba(31, 41, 55, 0.5);
211 border-radius: 0.5rem;
212 padding: 1rem;
213 margin: 1em 0;
215​
216.prose pre code {
217 background-color: transparent;
218 padding: 0;
219 border-radius: 0;