@@ -518,7 +518,11 @@ html[data-theme="dark"] article .badge {
518
518
.admonition ,
519
519
.theme-admonition {
520
520
font-size : var (--ifm-blockquote-font-size );
521
- margin-bottom : 1.5rem !important ;
521
+ margin-bottom : var (--ifm-paragraph-margin-bottom );
522
+ padding : 28px ;
523
+ border-radius : 20px ;
524
+ border : 1px solid var (--ifm-alert-background-color-highlight );
525
+ box-shadow : none ;
522
526
523
527
div [class ^= " admonitionContent" ] {
524
528
a {
@@ -531,23 +535,40 @@ html[data-theme="dark"] article .badge {
531
535
}
532
536
}
533
537
534
- div [class ^= " admonitionHeading" ] {
535
- font-size : 14px ;
538
+ span [class ^= " admonitionIcon" ] svg {
539
+ max-width : 20px ;
540
+ max-height : 20px ;
541
+ fill : hsl (from var (--ifm-alert-border-color ) h calc (s + 30 ) calc (l - 20 ));
536
542
}
537
- }
538
543
539
- .alert--warning {
540
- background-color : var (--rn-note-background );
544
+ div [class ^= " admonitionHeading" ] {
545
+ font-size : 18px ;
546
+ margin-bottom : 12px ;
547
+ color : hsl (from var (--ifm-alert-border-color ) h calc (s + 30 ) calc (l - 20 ));
548
+ }
541
549
}
542
550
543
551
.alert--secondary {
552
+ --ifm-alert-border-color : hsl (from var (--light ) h calc (s - 20 ) calc (l + 30 ));
544
553
--ifm-alert-background-color : var (--ifm-color-secondary-lightest );
545
554
--ifm-alert-background-color-highlight : rgba (225 , 227 , 230 , 0.7 );
546
555
}
547
556
548
- html [data-theme = " dark" ] .alert--secondary {
549
- --ifm-alert-background-color : var (--ifm-color-secondary-contrast-background );
550
- --ifm-alert-background-color-highlight : rgba (225 , 227 , 230 , 0.15 );
557
+ html [data-theme = " dark" ] {
558
+ span [class ^= " admonitionIcon" ] svg {
559
+ fill : hsl (from var (--ifm-alert-border-color ) h calc (s + 10 ) calc (l + 10 ));
560
+ }
561
+
562
+ div [class ^= " admonitionHeading" ] {
563
+ color : hsl (from var (--ifm-alert-border-color ) h calc (s + 10 ) calc (l + 10 ));
564
+ }
565
+
566
+ .alert--secondary {
567
+ --ifm-alert-background-color : var (
568
+ --ifm-color-secondary-contrast-background
569
+ );
570
+ --ifm-alert-background-color-highlight : rgba (225 , 227 , 230 , 0.15 );
571
+ }
551
572
}
552
573
553
574
/* Home page */
0 commit comments