Skip to content
This repository was archived by the owner on Jan 2, 2026. It is now read-only.

Commit df25ff0

Browse files
authored
CSS fixes :)
Specifically, at the time of writing: - Fix bulletpoints not appearing for `ul`s - Fix dark-theme being nonexistent or, at worst, broken to hell and back - Fix a tiny misalignment of the "home" icon in the breadcrumbs bar that was bugging me personally
2 parents 5d652c4 + 25334ae commit df25ff0

File tree

1 file changed

+101
-0
lines changed

1 file changed

+101
-0
lines changed

src/css/custom.css

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,107 @@
22
@tailwind components;
33
@tailwind utilities;
44

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+
5106
@font-face {
6107
font-display: swap;
7108
font-family: "Satoshi";

0 commit comments

Comments
 (0)