|
2 | 2 | @tailwind components; |
3 | 3 | @tailwind utilities; |
4 | 4 |
|
| 5 | +/* |
| 6 | + didn't wanna learn tailwind (which I dislike in concept) |
| 7 | + just for fixing up the CSS lol |
| 8 | +
|
| 9 | + enjoy some cursed CSS selector abominations |
| 10 | +*/ |
| 11 | + |
| 12 | +:root { |
| 13 | + color-scheme: light dark; |
| 14 | + color: light-dark(black, white); |
| 15 | + --ifm-menu-color: light-dark(#606770, grey) |
| 16 | +} |
| 17 | + |
| 18 | +.markdown ul { |
| 19 | + list-style-type: disc; |
| 20 | + list-style-position: outside; |
| 21 | + margin-left: 1rem; |
| 22 | +} |
| 23 | + |
| 24 | +.markdown { |
| 25 | + content-visibility: auto |
| 26 | +} |
| 27 | + |
| 28 | +@media (prefers-color-scheme: dark) { |
| 29 | + :root { |
| 30 | + --ifm-toc-link-color: hsl(0, 0%, 75%); |
| 31 | + } |
| 32 | + [class*="clean-btn"]::after, |
| 33 | + [class*="clean-btn"]::before, |
| 34 | + .breadcrumbs__item::after { |
| 35 | + /* |
| 36 | + Some icons are apparently done using a `background:`, |
| 37 | + as such applying i.e `color:` is not possible. Definitely a hack. |
| 38 | + */ |
| 39 | + filter: invert(100)!important; |
| 40 | + } |
| 41 | + code { |
| 42 | + border-color: #404040; |
| 43 | + } |
| 44 | + [class*="docCardListItem"] { |
| 45 | + color: white; |
| 46 | + } |
| 47 | + .card { |
| 48 | + background: black; |
| 49 | + } |
| 50 | + .card:not(:hover) { |
| 51 | + border-color: var(--ifm-menu-color)!important; |
| 52 | + } |
| 53 | + .card:hover { |
| 54 | + color: var(--ifm-color-primary); |
| 55 | + } |
| 56 | + [class*="sidebar"] { |
| 57 | + color: white!important; |
| 58 | + } |
| 59 | + .pagination-nav__sublabel { |
| 60 | + color: var(--ifm-menu-color); |
| 61 | + } |
| 62 | + .breadcrumbs__link { |
| 63 | + color: white; |
| 64 | + } |
| 65 | + .navbar-sidebar { |
| 66 | + background-color: black; |
| 67 | + } |
| 68 | +} |
| 69 | + |
| 70 | +[class*="docSidebarContainer"], .table-of-contents__left-border { |
| 71 | + border-color: light-dark(black, var(--ifm-menu-color))!important; |
| 72 | +} |
| 73 | + |
| 74 | +[class*="Icon"] { |
| 75 | + color: light-dark(black, white); |
| 76 | +} |
| 77 | + |
| 78 | +.theme-back-to-top-button { |
| 79 | + background-color: light-dark(white, black)!important; |
| 80 | +} |
| 81 | + |
| 82 | +[id*="mermaid-svg"] { |
| 83 | + background-color: light-dark(transparent, white); |
| 84 | + /* ↓ I hope this is also in a variable somewhere */ |
| 85 | + border-radius: 0.45rem; |
| 86 | +} |
| 87 | + |
| 88 | +code { |
| 89 | + background-color: light-dark(white, black); |
| 90 | +} |
| 91 | + |
| 92 | +.breadcrumbs__link { |
| 93 | + /* |
| 94 | + for some reason, "sub" is centered here, instead of "middle". |
| 95 | + */ |
| 96 | + vertical-align: sub; |
| 97 | +} |
| 98 | + |
| 99 | +.breadcrumbs__item--active .breadcrumbs__link { |
| 100 | + /* |
| 101 | + Again, I don't know what the FUCK is happening here but it's aligned now |
| 102 | + */ |
| 103 | + vertical-align: super; |
| 104 | +} |
| 105 | + |
5 | 106 | @font-face { |
6 | 107 | font-display: swap; |
7 | 108 | font-family: "Satoshi"; |
|
0 commit comments