Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

embed-preview-style.css 5.8 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
  1. /* Custom CSS variables for dynamic theming */
  2. :root {
  3. /* These will be dynamically set by JavaScript based on light/dark colors */
  4. --primary: 59 130 246; /* Default blue-500 */
  5. --background: 255 255 255;
  6. --foreground: 15 23 42;
  7. --muted: 248 250 252;
  8. --muted-foreground: 100 116 139;
  9. --border: 226 232 240;
  10. --accent: 16 185 129;
  11. }
  12. /* Dynamic color classes */
  13. .bg-dynamic-background { background-color: rgb(var(--background)); }
  14. .bg-dynamic-muted { background-color: rgb(var(--muted)); }
  15. .bg-dynamic-primary { background-color: rgb(var(--primary)); }
  16. .bg-dynamic-accent { background-color: rgb(var(--accent)); }
  17. .text-dynamic-foreground { color: rgb(var(--foreground)); }
  18. .text-dynamic-muted-foreground { color: rgb(var(--muted-foreground)); }
  19. .text-dynamic-primary { color: rgb(var(--primary)); }
  20. .text-dynamic-accent { color: rgb(var(--accent)); }
  21. .border-dynamic-border { border-color: rgb(var(--border)); }
  22. .border-dynamic-primary { border-color: rgb(var(--primary)); }
  23. /* Dynamic color opacity variants for pills */
  24. .bg-dynamic-primary\/10 { background-color: rgb(var(--primary) / 0.1); }
  25. .bg-dynamic-primary\/20 { background-color: rgb(var(--primary) / 0.2); }
  26. .border-dynamic-primary\/20 { border-color: rgb(var(--primary) / 0.2); }
  27. .border-dynamic-primary\/30 { border-color: rgb(var(--primary) / 0.3); }
  28. /* Custom animations */
  29. @keyframes slideIn {
  30. from { opacity: 0; transform: translateY(-8px); }
  31. to { opacity: 1; transform: translateY(0); }
  32. }
  33. .animate-slide-in {
  34. animation: slideIn 0.3s ease-out;
  35. }
  36. /* Mention highlighting */
  37. .mention {
  38. background-color: rgb(var(--primary) / 0.1);
  39. color: rgb(var(--primary));
  40. padding: 0.125rem 0.375rem;
  41. border-radius: 0.25rem;
  42. font-weight: 500;
  43. }
  44. /* Custom scrollbar */
  45. .custom-scrollbar::-webkit-scrollbar {
  46. width: 4px;
  47. }
  48. .custom-scrollbar::-webkit-scrollbar-track {
  49. background: transparent;
  50. }
  51. .custom-scrollbar::-webkit-scrollbar-thumb {
  52. background: rgb(var(--border));
  53. border-radius: 2px;
  54. }
  55. .custom-scrollbar::-webkit-scrollbar-thumb:hover {
  56. background: rgb(var(--muted-foreground));
  57. }
  58. /* Focus styles */
  59. .focus-ring:focus {
  60. outline: 2px solid rgb(var(--primary));
  61. outline-offset: 2px;
  62. }
  63. /* Viewer mode specific styles */
  64. .viewer-mode .prompt-input {
  65. cursor: default;
  66. }
  67. .viewer-mode .prompt-input:focus {
  68. outline: none;
  69. }
  70. /* Hide scrollbar for horizontal scrolling pills */
  71. .scrollbar-hide {
  72. -ms-overflow-style: none; /* Internet Explorer 10+ */
  73. scrollbar-width: none; /* Firefox */
  74. }
  75. .scrollbar-hide::-webkit-scrollbar {
  76. display: none; /* Safari and Chrome */
  77. }
  78. /* Touch target improvements for mobile */
  79. .touch-target {
  80. min-height: 44px;
  81. min-width: 44px;
  82. display: flex;
  83. align-items: center;
  84. justify-content: center;
  85. }
  86. /* Fixed height for prompt container to enable scrolling */
  87. #prompt-container {
  88. min-height: 100px;
  89. flex: 1;
  90. display: flex;
  91. flex-direction: column;
  92. }
  93. @media (max-width: 640px) {
  94. #prompt-container {
  95. min-height: 80px;
  96. }
  97. }
  98. /* Ensure prompt text scrolls within container */
  99. #prompt-text {
  100. height: 100%;
  101. overflow-y: auto !important;
  102. flex: 1;
  103. }
  104. /* Responsive improvements */
  105. @media (max-width: 640px) {
  106. /* Context pills can wrap on mobile too */
  107. #context-pills {
  108. flex-wrap: wrap !important;
  109. max-height: 80px; /* Smaller on mobile */
  110. }
  111. /* More compact pill spacing on mobile */
  112. .pill,
  113. #settings-pills .pill,
  114. #settings-pills > * {
  115. padding: 0.25rem 0.5rem;
  116. font-size: 0.75rem;
  117. white-space: nowrap;
  118. }
  119. /* Ensure button maintains minimum touch target */
  120. #copy-button {
  121. min-height: 44px;
  122. min-width: 44px;
  123. }
  124. /* Adjust text size in prompt area for better mobile readability */
  125. #prompt-text {
  126. line-height: 1.5;
  127. }
  128. /* Make sure settings pills don't overflow */
  129. #settings-pills {
  130. overflow: hidden;
  131. }
  132. /* Compact layout adjustments */
  133. .viewer-mode {
  134. gap: 0.5rem;
  135. }
  136. }
  137. /* Very small mobile devices */
  138. @media (max-width: 480px) {
  139. /* Even more compact spacing */
  140. .pill,
  141. #settings-pills .pill,
  142. #settings-pills > * {
  143. padding: 0.125rem 0.375rem;
  144. font-size: 0.6875rem;
  145. }
  146. /* Smaller button on very small screens */
  147. #copy-button {
  148. width: 36px;
  149. height: 36px;
  150. min-width: 36px;
  151. min-height: 36px;
  152. }
  153. #copy-button svg {
  154. width: 14px;
  155. height: 14px;
  156. }
  157. }
  158. /* Hide file sidebar on mobile devices */
  159. @media (max-width: 640px) {
  160. #file-sidebar {
  161. display: none !important;
  162. }
  163. }
  164. /* Context pills container improvements */
  165. #context-pills {
  166. max-width: calc(100% - 40px); /* Reserve space for edit button */
  167. display: flex;
  168. flex-wrap: wrap;
  169. max-height: 120px; /* Limit context pills height */
  170. overflow-y: auto;
  171. overflow-x: hidden;
  172. }
  173. /* Custom scrollbar for context pills */
  174. #context-pills {
  175. scrollbar-width: thin; /* Firefox */
  176. }
  177. #context-pills::-webkit-scrollbar {
  178. width: 4px;
  179. }
  180. #context-pills::-webkit-scrollbar-track {
  181. background: transparent;
  182. }
  183. #context-pills::-webkit-scrollbar-thumb {
  184. background: rgb(var(--border) / 0.5);
  185. border-radius: 2px;
  186. }
  187. #context-pills::-webkit-scrollbar-thumb:hover {
  188. background: rgb(var(--border));
  189. }
  190. /* Ensure pills maintain size */
  191. #context-pills > div {
  192. flex-shrink: 0;
  193. }
  194. /* Ensure proper touch behavior */
  195. @media (hover: none) and (pointer: coarse) {
  196. /* All interactive elements get proper touch targets */
  197. button,
  198. .pill,
  199. #settings-pills > * {
  200. min-height: 44px;
  201. }
  202. /* Remove hover effects on touch devices */
  203. button:hover {
  204. opacity: 1;
  205. }
  206. /* Add active states for better feedback */
  207. button:active {
  208. transform: scale(0.95);
  209. transition: transform 0.1s ease;
  210. }
  211. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...