|
| 1 | +/* |
| 2 | + * urunc Custom Theme Styling for MkDocs Material |
| 3 | + */ |
| 4 | + |
| 5 | +/* ======================= |
| 6 | + Light Theme: urunc |
| 7 | + ======================= */ |
| 8 | +[data-md-color-scheme="urunc"] { |
| 9 | + --md-primary-fg-color: #FAFAFF; |
| 10 | + --md-primary-fg-color--light: #001524; |
| 11 | + --md-primary-fg-color--dark: #001524; |
| 12 | + --md-primary-bg-color: #001524; |
| 13 | + --md-primary-bg-color--light: #001524; |
| 14 | + --md-primary-bg-color--dark: #001524; |
| 15 | + |
| 16 | + --md-accent-fg-color: #FF7D00; |
| 17 | + --md-accent-fg-color--transparent: hsla(32, 100%, 55%, 0.1); |
| 18 | + |
| 19 | + --md-footer-logo-dark-mode: none; |
| 20 | + --md-footer-logo-light-mode: block; |
| 21 | +} |
| 22 | + |
| 23 | +/* ======================= |
| 24 | + Dark Theme: Slate |
| 25 | + ======================= */ |
| 26 | +[data-md-color-scheme="slate"] { |
| 27 | + --md-primary-fg-color: #001524; |
| 28 | + --md-primary-fg-color--light: #841a6b; |
| 29 | + --md-primary-fg-color--dark: #001524; |
| 30 | + --md-primary-bg-color: #fff3f0; |
| 31 | + |
| 32 | + --md-accent-fg-color: #FF7D00; |
| 33 | + --md-accent-fg-color--transparent: hsla(32, 100%, 55%, 0.1); |
| 34 | + |
| 35 | + --md-footer-logo-dark-mode: block; |
| 36 | + --md-footer-logo-light-mode: none; |
| 37 | +} |
| 38 | + |
| 39 | +/* ======================= |
| 40 | + Logo Sizing |
| 41 | + ======================= */ |
| 42 | +.md-nav__title .md-nav__button.md-logo img { |
| 43 | + height: 2rem; |
| 44 | +} |
| 45 | + |
| 46 | +#logo_light_mode { |
| 47 | + display: var(--md-footer-logo-light-mode); |
| 48 | +} |
| 49 | + |
| 50 | +#logo_dark_mode { |
| 51 | + display: var(--md-footer-logo-dark-mode); |
| 52 | +} |
| 53 | + |
| 54 | +/* ======================= |
| 55 | + Breadcrumb Styling |
| 56 | + ======================= */ |
| 57 | +:root { |
| 58 | + --md-path-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6z"/></svg>'); |
| 59 | +} |
| 60 | + |
| 61 | +.md-path { |
| 62 | + font-size: 0.75rem; |
| 63 | + margin: 0 0.8rem; |
| 64 | + overflow: auto; |
| 65 | + padding-top: 1.2rem; |
| 66 | +} |
| 67 | + |
| 68 | +.md-path:not([hidden]) { |
| 69 | + display: block; |
| 70 | +} |
| 71 | + |
| 72 | +@media screen and (min-width: 76.25em) { |
| 73 | + .md-path { |
| 74 | + margin: 0 1.2rem; |
| 75 | + } |
| 76 | +} |
| 77 | + |
| 78 | +.md-path__list { |
| 79 | + display: flex; |
| 80 | + align-items: center; |
| 81 | + gap: 0.25rem; |
| 82 | + list-style: none; |
| 83 | + margin: 0; |
| 84 | + padding: 0; |
| 85 | +} |
| 86 | + |
| 87 | +.md-path__item:not(:first-child) { |
| 88 | + display: inline-flex; |
| 89 | + gap: 0.25rem; |
| 90 | + white-space: nowrap; |
| 91 | +} |
| 92 | + |
| 93 | +.md-path__item:not(:first-child)::before { |
| 94 | + content: ""; |
| 95 | + width: 0.8rem; |
| 96 | + height: 0.8rem; |
| 97 | + display: inline; |
| 98 | + background-color: var(--md-default-fg-color--lighter); |
| 99 | + mask-image: var(--md-path-icon); |
| 100 | + -webkit-mask-image: var(--md-path-icon); |
| 101 | +} |
| 102 | + |
| 103 | +.md-path__link { |
| 104 | + display: flex; |
| 105 | + align-items: center; |
| 106 | + color: var(--md-default-fg-color--light); |
| 107 | +} |
| 108 | + |
| 109 | +.md-path__link:hover, |
| 110 | +.md-path__link:focus { |
| 111 | + color: var(--md-accent-fg-color); |
| 112 | +} |
| 113 | + |
| 114 | +/* ======================= |
| 115 | + Permalink Anchor Styling |
| 116 | + ======================= */ |
| 117 | +.md-typeset .headerlink { |
| 118 | + font-size: 1rem; |
| 119 | + display: inline-block; |
| 120 | + vertical-align: middle; |
| 121 | +} |
| 122 | + |
| 123 | +/* ======================= |
| 124 | + Code Block Styling |
| 125 | + ======================= */ |
| 126 | +.language-console span.gp { |
| 127 | + user-select: none; |
| 128 | + -webkit-user-select: none; |
| 129 | + pointer-events: none; |
| 130 | +} |
| 131 | + |
| 132 | +/* ======================= |
| 133 | + General Typography (Optional) |
| 134 | + ======================= */ |
| 135 | +.md-typeset h1 { |
| 136 | + font-size: 2rem; |
| 137 | + border-bottom: 2px solid var(--md-accent-fg-color--transparent); |
| 138 | + padding-bottom: 0.25em; |
| 139 | +} |
| 140 | + |
| 141 | +.md-typeset h2 { |
| 142 | + font-size: 1.5rem; |
| 143 | + margin-top: 2em; |
| 144 | +} |
| 145 | + |
| 146 | +.md-typeset code, |
| 147 | +.md-typeset pre { |
| 148 | + font-family: 'JetBrains Mono', 'Fira Code', monospace; |
| 149 | +} |
| 150 | + |
| 151 | +/* Fix active link color in dark mode sidebar */ |
| 152 | +[data-md-color-scheme="slate"] .md-nav__link--active { |
| 153 | + color: var(--md-primary-bg-color) !important; |
| 154 | + font-weight: bold; |
| 155 | +} |
| 156 | + |
| 157 | +[data-md-color-scheme="slate"] .md-nav__link:hover, |
| 158 | +[data-md-color-scheme="slate"] .md-nav__link:focus { |
| 159 | + color: var(--md-primary-bg-color); |
| 160 | +} |
| 161 | + |
| 162 | +/* Improve contrast for all links in dark mode */ |
| 163 | +[data-md-color-scheme="slate"] a { |
| 164 | + color: var(--md-primary-bg-color); |
| 165 | +} |
| 166 | + |
| 167 | +/* Optional: Slight hover effect for links */ |
| 168 | +[data-md-color-scheme="slate"] a:hover { |
| 169 | + text-decoration: underline; |
| 170 | +} |
| 171 | + |
| 172 | +[data-md-color-scheme="urunc"] img[src$="#only-dark"], |
| 173 | +[data-md-color-scheme="urunc"] img[src$="#gh-dark-mode-only"] { |
| 174 | + display: none; /* Hide dark images in light mode */ |
| 175 | +} |
| 176 | + |
| 177 | +[data-md-color-scheme="slate"] img[src$="#only-light"], |
| 178 | +[data-md-color-scheme="slate"] img[src$="#gh-light-mode-only"] { |
| 179 | + display: none; /* Hide light images in dark mode */ |
| 180 | +} |
| 181 | + |
0 commit comments