Skip to content

Commit c395190

Browse files
committed
custom.css: admonition colors (info boxes)
1 parent a51d050 commit c395190

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

website/src/css/custom.css

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,3 +918,72 @@ div[class*="docPage"] {
918918
}
919919
}
920920

921+
/* ===== CUSTOM ADMONITION COLORS ===== */
922+
923+
/* Info admonition - Blue (#2A3850) */
924+
.alert--info {
925+
--ifm-alert-background-color: rgba(42, 56, 80, 0.1) !important;
926+
--ifm-alert-background-color-highlight: rgba(42, 56, 80, 0.15) !important;
927+
--ifm-alert-foreground-color: #2A3850 !important;
928+
--ifm-alert-border-color: #2A3850 !important;
929+
}
930+
931+
/* Tip admonition - Teal (#17A6A6) */
932+
.alert--tip {
933+
--ifm-alert-background-color: rgba(23, 166, 166, 0.1) !important;
934+
--ifm-alert-background-color-highlight: rgba(23, 166, 166, 0.15) !important;
935+
--ifm-alert-foreground-color: #17A6A6 !important;
936+
--ifm-alert-border-color: #17A6A6 !important;
937+
}
938+
939+
/* Warning admonition - Orange (#F5962D) */
940+
.alert--warning {
941+
--ifm-alert-background-color: rgba(245, 150, 45, 0.1) !important;
942+
--ifm-alert-background-color-highlight: rgba(245, 150, 45, 0.15) !important;
943+
--ifm-alert-foreground-color: #F5962D !important;
944+
--ifm-alert-border-color: #F5962D !important;
945+
}
946+
947+
/* Note admonition - Keep using blue like info */
948+
.alert--note {
949+
--ifm-alert-background-color: rgba(42, 56, 80, 0.1) !important;
950+
--ifm-alert-background-color-highlight: rgba(42, 56, 80, 0.15) !important;
951+
--ifm-alert-foreground-color: #2A3850 !important;
952+
--ifm-alert-border-color: #2A3850 !important;
953+
}
954+
955+
/* Success/Caution admonitions - Keep existing colors but ensure consistency */
956+
.alert--success {
957+
--ifm-alert-background-color: rgba(0, 164, 0, 0.1) !important;
958+
--ifm-alert-background-color-highlight: rgba(0, 164, 0, 0.15) !important;
959+
--ifm-alert-foreground-color: #17A6A6 !important;
960+
--ifm-alert-border-color: #17A6A6 !important;
961+
}
962+
963+
.alert--caution {
964+
--ifm-alert-background-color: rgba(255, 230, 0, 0.1) !important;
965+
--ifm-alert-background-color-highlight: rgba(255, 230, 0, 0.15) !important;
966+
--ifm-alert-foreground-color: #e6a700 !important;
967+
--ifm-alert-border-color: #e6a700 !important;
968+
}
969+
970+
/* Dark mode adjustments for custom admonition colors */
971+
[data-theme='dark'] .alert--info {
972+
--ifm-alert-background-color: rgba(42, 56, 80, 0.2) !important;
973+
--ifm-alert-background-color-highlight: rgba(42, 56, 80, 0.25) !important;
974+
}
975+
976+
[data-theme='dark'] .alert--tip {
977+
--ifm-alert-background-color: rgba(23, 166, 166, 0.2) !important;
978+
--ifm-alert-background-color-highlight: rgba(23, 166, 166, 0.25) !important;
979+
}
980+
981+
[data-theme='dark'] .alert--warning {
982+
--ifm-alert-background-color: rgba(245, 150, 45, 0.2) !important;
983+
--ifm-alert-background-color-highlight: rgba(245, 150, 45, 0.25) !important;
984+
}
985+
986+
[data-theme='dark'] .alert--note {
987+
--ifm-alert-background-color: rgba(42, 56, 80, 0.2) !important;
988+
--ifm-alert-background-color-highlight: rgba(42, 56, 80, 0.25) !important;
989+
}

0 commit comments

Comments
 (0)