@@ -246,167 +246,3 @@ html[data-theme="dark"] .doc .source-toolbox {
246
246
html [data-theme = "dark" ] .doc .admonitionblock .icon ::before {
247
247
color : var (--ds-primary-text );
248
248
}
249
-
250
- /*
251
- *
252
- * Dialog component
253
- *
254
- */
255
-
256
- dialog {
257
- display : none;
258
- padding : 0 ;
259
- flex-direction : column;
260
- align-items : flex-start;
261
- border-radius : 6px ;
262
- border : 1px solid var (--ds-neutral-300 );
263
- width : 90% ;
264
- max-width : 640px ;
265
- background : var (--body-background );
266
- color : var (--doc-font-color );
267
- }
268
-
269
- /* dialog header */
270
- dialog .header {
271
- display : flex;
272
- padding : var (--ds-space-3 );
273
- padding-bottom : var (--ds-space-2 );
274
- align-items : center;
275
- gap : var (--ds-space-2 );
276
- align-self : stretch;
277
- justify-content : space-between;
278
- border-bottom : 1px solid var (--ds-neutral-200 );
279
- }
280
-
281
- dialog .header .title {
282
- @include text-h1;
283
-
284
- color : var (--heading-font-color );
285
- }
286
-
287
- dialog .header .close-button {
288
- display : flex;
289
- justify-content : center;
290
- align-items : center;
291
- gap : var (--ds-space-1 );
292
- }
293
-
294
- dialog .header kbd {
295
- border : none;
296
- box-shadow : none;
297
- background : var (--ds-neutral-100 );
298
- }
299
-
300
- dialog .header button {
301
- background : transparent;
302
- border : none;
303
- line-height : 1 ;
304
- }
305
-
306
- dialog .header .material-icons {
307
- color : var (--link-font-color );
308
- }
309
-
310
- /* dialog content */
311
- dialog form {
312
- width : 100% ;
313
- }
314
-
315
- dialog .content {
316
- display : flex;
317
- flex-direction : column;
318
- align-self : stretch;
319
- border-bottom : 1px solid var (--ds-neutral-200 );
320
- padding : var (--ds-space-3 ) var (--ds-space-4 ) var (--ds-space-3 ) var (--ds-space-3 );
321
- }
322
-
323
- dialog .content .message {
324
- @include text-h2;
325
-
326
- color : var (--heading-font-color );
327
- margin-bottom : var (--ds-space-4 );
328
- }
329
-
330
- dialog .content .question {
331
- font-size : calc (13 / var (--rem-base ) * 1rem );
332
- color : var (--ds-neutral-700 );
333
- font-weight : 600 ;
334
- letter-spacing : 0.65px ;
335
- }
336
-
337
- dialog .content textarea {
338
- font-family : var (--body-font-family );
339
- color : var (--doc-font-color );
340
- background : var (--body-background );
341
- height : calc (160 / var (--rem-base ) * 1rem );
342
- margin-top : var (--ds-space-h );
343
- resize : none;
344
- padding : var (--ds-space-1 );
345
- border-radius : 6px ;
346
- border : 1px solid var (--ds-neutral-300 );
347
- }
348
-
349
- dialog .action {
350
- display : flex;
351
- padding : var (--ds-space-2 ) var (--ds-space-3 ) var (--ds-space-3 ) var (--ds-space-3 );
352
- align-items : center;
353
- gap : var (--ds-space-1 );
354
- align-self : stretch;
355
- justify-content : flex-end;
356
- }
357
-
358
- dialog [open ] {
359
- display : flex;
360
- }
361
-
362
- dialog ::backdrop {
363
- background : rgba (10 , 10 , 10 , 0.6 );
364
- }
365
-
366
- .dialog-action ,
367
- .dialog-action--response {
368
- transition : opacity 500ms cubic-bezier (0.4 , 0 , 0.2 , 1 ), visibility 500ms cubic-bezier (0.4 , 0 , 0.2 , 1 ) 0ms ;
369
- transition-delay : 300ms ;
370
- }
371
-
372
- .dialog-action + .dialog-action--response {
373
- position : absolute;
374
- top : 0 ;
375
- line-height : var (--ds-space-5 );
376
- height : var (--ds-space-5 );
377
- }
378
-
379
- .dialog-action--response {
380
- font-weight : 600 ;
381
- transition-delay : 1200ms ;
382
- }
383
-
384
- .dialog-action--container {
385
- position : relative;
386
-
387
- & .dialog-action {
388
- opacity : 1 ;
389
- visibility : visible;
390
- }
391
-
392
- & .dialog-action--response {
393
- opacity : 0 ;
394
- visibility : hidden;
395
- }
396
-
397
- & : not (.first-time ) .dialog-action {
398
- transition-delay : 2000ms ;
399
- }
400
-
401
- & .dialog-action--animate {
402
- & .dialog-action {
403
- opacity : 0 ;
404
- visibility : hidden;
405
- }
406
-
407
- & .dialog-action--response {
408
- opacity : 1 ;
409
- visibility : visible;
410
- }
411
- }
412
- }
0 commit comments