| 1 |
/* ========================================================================= |
| 2 |
CSS Variables |
| 3 |
========================================================================= */ |
| 4 |
|
| 5 |
:root { |
| 6 |
--sst-accent-color-bright: #ff9a6c; |
| 7 |
--sst-accent-color-muted: #ff9a6c; |
| 8 |
} |
| 9 |
|
| 10 |
html[data-theme="light"] { |
| 11 |
--pst-color-surface: #f3f4f5; |
| 12 |
--pst-color-border: #d1d5da; |
| 13 |
--pst-color-warning-bg: #f5e4d4; |
| 14 |
|
| 15 |
/* Steel blue link/card colors */ |
| 16 |
--pst-color-link: #2e6da4; |
| 17 |
--pst-color-link-hover: #1f5080; |
| 18 |
--pst-color-primary: #2e6da4; |
| 19 |
--pst-color-primary-highlight: #1f5080; |
| 20 |
--sd-color-primary-highlight: #1f5080; |
| 21 |
|
| 22 |
/* Orange secondary accent */ |
| 23 |
--pst-color-secondary: #d07530; |
| 24 |
--pst-color-secondary-highlight: #b85f1f; |
| 25 |
--pst-color-secondary-text: #ffffff; |
| 26 |
--pst-color-secondary-highlight-text: #ffffff; |
| 27 |
|
| 28 |
--pst-color-inline-code: #912583; |
| 29 |
--pst-color-inline-code-links: #2e6da4; |
| 30 |
--pst-color-link-higher-contrast: #2e6da4; |
| 31 |
|
| 32 |
--pst-color-target: #f3cf95; |
| 33 |
|
| 34 |
--sst-footer-background-color: #f6f6f6; |
| 35 |
} |
| 36 |
|
| 37 |
html[data-theme="dark"] { |
| 38 |
/* Steel blue link/card colors */ |
| 39 |
--pst-color-link: #5b9fd6; |
| 40 |
--pst-color-link-hover: #4a85bc; |
| 41 |
--pst-color-primary: #5b9fd6; |
| 42 |
--pst-color-primary-highlight: #4a85bc; |
| 43 |
--sd-color-primary-highlight: #4a85bc; |
| 44 |
|
| 45 |
/* Orange secondary accent */ |
| 46 |
--pst-color-secondary: #e08a42; |
| 47 |
--pst-color-secondary-highlight: #d07530; |
| 48 |
--pst-color-secondary--text: #14181e; |
| 49 |
--pst-color-secondary-highlight-text: #14181e; |
| 50 |
|
| 51 |
--pst-color-inline-code: #f3c7ee; |
| 52 |
--pst-color-inline-code-links: #5b9fd6; |
| 53 |
--pst-color-link-higher-contrast: #5b9fd6; |
| 54 |
|
| 55 |
--pst-color-target: #5a3c19; |
| 56 |
|
| 57 |
--sst-footer-background-color: #282828; |
| 58 |
} |
| 59 |
|
| 60 |
/* ========================================================================= |
| 61 |
Header / Navigation |
| 62 |
========================================================================= */ |
| 63 |
|
| 64 |
.bd-header a.navbar-brand { |
| 65 |
color: #ff8457 !important; |
| 66 |
} |
| 67 |
|
| 68 |
.bd-header ul.navbar-nav > li.nav-item > .nav-link:hover { |
| 69 |
color: var(--sst-accent-color-bright) !important; |
| 70 |
} |
| 71 |
|
| 72 |
.bd-header ul.navbar-nav > li.nav-item > .nav-link:hover:before { |
| 73 |
border-bottom-color: var(--sst-accent-color-bright) !important; |
| 74 |
} |
| 75 |
|
| 76 |
/* Theme toggle and GitHub icon hover color */ |
| 77 |
html .pst-navbar-icon:hover { |
| 78 |
color: #ff9a6c !important; |
| 79 |
} |
| 80 |
|
| 81 |
/* Selected theme in the light/dark mode dropdown */ |
| 82 |
html[data-theme="light"] .theme-switch-button + .dropdown-menu { |
| 83 |
--bs-dropdown-link-active-color: #5b9fd6; |
| 84 |
} |
| 85 |
|
| 86 |
/* Vertical sidebar/content separator */ |
| 87 |
html[data-theme="light"] .bd-sidebar-primary { |
| 88 |
border-right-width: thin; |
| 89 |
border-right-color: #c4c4c4; |
| 90 |
} |
| 91 |
|
| 92 |
html[data-theme="dark"] .bd-sidebar-primary { |
| 93 |
border-right-width: thin; |
| 94 |
border-right-color: #666666; |
| 95 |
} |
| 96 |
|
| 97 |
/* ========================================================================= |
| 98 |
Footer |
| 99 |
========================================================================= */ |
| 100 |
|
| 101 |
html[data-theme="light"] .bd-footer { |
| 102 |
border-top: 1px solid #c4c4c4; |
| 103 |
} |
| 104 |
|
| 105 |
html[data-theme="dark"] .bd-footer { |
| 106 |
border-top: 1px solid #666666; |
| 107 |
} |
| 108 |
|
| 109 |
/* ========================================================================= |
| 110 |
Admonitions (dark mode) |
| 111 |
========================================================================= */ |
| 112 |
|
| 113 |
/* Muted slate blue for general admonitions (note, important, etc.) */ |
| 114 |
html[data-theme="dark"] .admonition { |
| 115 |
border-color: #2e6da4; |
| 116 |
} |
| 117 |
html[data-theme="dark"] .admonition > .admonition-title { |
| 118 |
background-color: #1c4378; |
| 119 |
} |
| 120 |
html[data-theme="dark"] .admonition > .admonition-title:after { |
| 121 |
color: #5b9fd6; |
| 122 |
} |
| 123 |
|
| 124 |
/* Orange theming for warning admonitions */ |
| 125 |
html[data-theme="dark"] .admonition.warning { |
| 126 |
border-color: #c07030; |
| 127 |
} |
| 128 |
html[data-theme="dark"] .admonition.warning > .admonition-title { |
| 129 |
background-color: #6d4225; |
| 130 |
} |
| 131 |
html[data-theme="dark"] .admonition.warning > .admonition-title:after { |
| 132 |
color: #e08a42; |
| 133 |
} |
| 134 |
|
| 135 |
/* ========================================================================= |
| 136 |
Typography / Code |
| 137 |
========================================================================= */ |
| 138 |
|
| 139 |
code.literal { |
| 140 |
background-color: var(--pst-color-surface); |
| 141 |
border: 1px solid var(--pst-color-border); |
| 142 |
border-radius: 0.25rem; |
| 143 |
padding: 0.1rem 0.25rem; |
| 144 |
} |
| 145 |
|
| 146 |
/* Prevent unnecessary vertical scrollbars for MathJax equations */ |
| 147 |
mjx-container { |
| 148 |
overflow: visible !important; |
| 149 |
padding-bottom: 0 !important; |
| 150 |
} |