@@ -518,7 +518,11 @@ html[data-theme="dark"] article .badge {
518518.admonition ,
519519.theme-admonition {
520520 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 ;
522526
523527 div [class ^= " admonitionContent" ] {
524528 a {
@@ -531,23 +535,40 @@ html[data-theme="dark"] article .badge {
531535 }
532536 }
533537
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 ));
536542 }
537- }
538543
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+ }
541549}
542550
543551.alert--secondary {
552+ --ifm-alert-border-color : hsl (from var (--light ) h calc (s - 20 ) calc (l + 30 ));
544553 --ifm-alert-background-color : var (--ifm-color-secondary-lightest );
545554 --ifm-alert-background-color-highlight : rgba (225 , 227 , 230 , 0.7 );
546555}
547556
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+ }
551572}
552573
553574/* Home page */
0 commit comments