| 1 |
:root>* { |
| 2 |
/* primary */ |
| 3 |
--md-primary-fg-color: #2c2c2c; |
| 4 |
--md-primary-fg-color--light: #a8a8a8; |
| 5 |
--md-primary-fg-color--dark: #181818; |
| 6 |
/* accent */ |
| 7 |
--md-accent-fg-color: #c50d0d; |
| 8 |
--md-accent-fg-color--light: #ff8f8f; |
| 9 |
--md-accent-fg-color--dark: #A30000; |
| 10 |
|
| 11 |
/* Style links */ |
| 12 |
--md-typeset-a-color: var(--md-typeset-color); |
| 13 |
} |
| 14 |
|
| 15 |
/* Dark theme customisation */ |
| 16 |
[data-md-color-scheme="slate"] { |
| 17 |
--md-accent-fg-color--dark: #F25757; |
| 18 |
} |
| 19 |
|
| 20 |
.md-header { |
| 21 |
border-top: 5px solid #A30000; |
| 22 |
} |
| 23 |
|
| 24 |
body hr { |
| 25 |
border-top: 1px dotted var(--md-accent-fg-color--dark); |
| 26 |
} |
| 27 |
|
| 28 |
.badges { |
| 29 |
display: flex; |
| 30 |
justify-content: end; |
| 31 |
gap: 8px; |
| 32 |
} |
| 33 |
|
| 34 |
/* Cutesy quote styling */ |
| 35 |
[dir="ltr"] .md-typeset blockquote { |
| 36 |
font-family: Georgia, serif; |
| 37 |
font-size: 18px; |
| 38 |
font-style: italic; |
| 39 |
margin: 0.25em 0; |
| 40 |
padding: 0.25em 40px; |
| 41 |
line-height: 1.45; |
| 42 |
position: relative; |
| 43 |
color: var(--md-typeset-color); |
| 44 |
border-left: none; |
| 45 |
} |
| 46 |
|
| 47 |
[dir="ltr"] .md-typeset blockquote:before { |
| 48 |
display: block; |
| 49 |
content: "\201C"; |
| 50 |
font-size: 80px; |
| 51 |
position: absolute; |
| 52 |
left: -10px; |
| 53 |
top: -20px; |
| 54 |
color: #7a7a7a; |
| 55 |
} |
| 56 |
|
| 57 |
[dir="ltr"] .md-typeset blockquote p:last-child { |
| 58 |
color: #999999; |
| 59 |
font-size: 14px; |
| 60 |
display: block; |
| 61 |
margin-top: 5px; |
| 62 |
} |
| 63 |
|
| 64 |
.md-typeset a { |
| 65 |
color: var(--md-accent-fg-color--dark); |
| 66 |
} |
| 67 |
|
| 68 |
/* Replacement for `body { background-attachment: fixed; }`, which |
| 69 |
has performance issues when scrolling on large displays. */ |
| 70 |
body::before { |
| 71 |
content: ' '; |
| 72 |
position: fixed; |
| 73 |
width: 100%; |
| 74 |
height: 100%; |
| 75 |
top: 0; |
| 76 |
left: 0; |
| 77 |
background-color: #f8f8f8; |
| 78 |
background: url(../img/grid.png) repeat-x; |
| 79 |
will-change: transform; |
| 80 |
z-index: -1; |
| 81 |
} |
| 82 |
|
| 83 |
a.md-nav__link.md-nav__link--active { |
| 84 |
font-weight: 700; |
| 85 |
color: var(--md-accent-fg-color--dark); |
| 86 |
} |