|
| 1 | +@import '@scalar/api-client-react/style.css'; |
| 2 | + |
1 | 3 | .light .scalar-modal-layout, |
| 4 | +.light .scalar-app, |
2 | 5 | .light .scalar { |
3 | 6 | --scalar-color-1: color-mix( |
4 | 7 | in srgb, |
|
50 | 53 | --scalar-button-1: rgb(49 53 56); |
51 | 54 | --scalar-button-1-color: #fff; |
52 | 55 | --scalar-button-1-hover: rgb(28 31 33); |
| 56 | + |
| 57 | + --scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11); |
| 58 | + --scalar-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px, rgba(0, 0, 0, 0.08) 0px 3px 8px 0px, |
| 59 | + #eeeeed 0px 0 0 1px; |
53 | 60 | } |
54 | 61 | .dark .scalar-modal-layout, |
| 62 | +.dark .scalar-app, |
55 | 63 | .dark .scalar { |
56 | 64 | --scalar-color-1: color-mix( |
57 | 65 | in srgb, |
|
102 | 110 | --scalar-button-1: #f6f6f6; |
103 | 111 | --scalar-button-1-color: #000; |
104 | 112 | --scalar-button-1-hover: #e7e7e7; |
| 113 | + |
| 114 | + --scalar-shadow-1: 0 1px 3px 0 rgb(0, 0, 0, 0.1); |
| 115 | + --scalar-shadow-2: rgba(15, 15, 15, 0.2) 0px 3px 6px, rgba(15, 15, 15, 0.4) 0px 9px 24px, |
| 116 | + 0 0 0 1px rgba(255, 255, 255, 0.1); |
105 | 117 | } |
106 | 118 | .scalar-modal-layout, |
| 119 | +.scalar-app, |
107 | 120 | .scalar { |
108 | 121 | --scalar-font: initial; |
109 | 122 | --scalar-font-code: var(--font-mono); |
|
165 | 178 | .scalar-api-client__close:hover { |
166 | 179 | cursor: pointer; |
167 | 180 | } |
168 | | -.scalar .scalar-app { |
| 181 | +.scalar .scalar-app-layout { |
169 | 182 | background: var(--scalar-background-3); |
170 | 183 | height: calc(100dvh - 100px); |
171 | 184 | max-width: 1280px; |
|
202 | 215 | cursor: pointer; |
203 | 216 | animation: scalardrawerexitfadein 0.35s forwards; |
204 | 217 | } |
205 | | -.scalar .scalar-app-exit:before { |
206 | | - content: '\00d7'; |
207 | | - font-family: sans-serif; |
208 | | - position: absolute; |
209 | | - top: 0; |
210 | | - right: 0; |
211 | | - font-size: 30px; |
212 | | - font-weight: 100; |
213 | | - line-height: 50px; |
214 | | - right: 12px; |
215 | | - text-align: center; |
216 | | - color: white; |
217 | | - opacity: 0.6; |
218 | | -} |
219 | | -.scalar .scalar-app-exit:hover:before { |
220 | | - opacity: 1; |
221 | | -} |
222 | 218 | @keyframes scalardrawerexitfadein { |
223 | 219 | from { |
224 | 220 | opacity: 0; |
|
305 | 301 | scrollbar-width: thin; |
306 | 302 | -webkit-overflow-scrolling: touch; |
307 | 303 | } |
308 | | -@supports (-moz-appearance: none) { |
309 | | - .scalar .custom-scroll { |
310 | | - padding-right: 12px; |
311 | | - } |
312 | | -} |
313 | 304 | .scalar .custom-scroll:hover { |
314 | 305 | scrollbar-color: rgba(0, 0, 0, 0.24) transparent; |
315 | 306 | } |
|
347 | 338 | padding-right: 12px; |
348 | 339 | } |
349 | 340 | } |
| 341 | +.dark .scalar .client-wrapper-bg-color { |
| 342 | + background: linear-gradient( |
| 343 | + color-mix(in srgb, var(--tw-bg-base) 6%, transparent) 1%, |
| 344 | + color-mix(in srgb, var(--scalar-background-1) 30%, black) 9% |
| 345 | + ); |
| 346 | +} |
| 347 | +.light .scalar .client-wrapper-bg-color { |
| 348 | + background-color: var(--scalar-background-2) !important; |
| 349 | +} |
| 350 | +.scalar .gitbook-show { |
| 351 | + display: block !important; |
| 352 | +} |
| 353 | +.scalar .gitbook-hidden { |
| 354 | + display: none !important; |
| 355 | +} |
0 commit comments