summaryrefslogtreecommitdiff
path: root/assets/style.css
blob: dd0aedd1664f497e50dd9257b933c6e0012ac520 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99

html {
	font-family: system-ui, sans-serif;
	--bg: hsl(32, 98%, 92%);
	--fg: hsl(220, 4.76%, 12.35%);
	--link-fg: hsl(208.99, 55.28%, 31.57%);
	--text-decoration-fg: hsl(0, 0%, 80%);
	--sidebar-bg: hsl(32, 80%, 88.5%);
	color: var(--fg);
	background-color: var(--bg);
}
@media(prefers-color-scheme:dark) {
	html {
		--bg: hsl(220, 4.76%, 12.35%);
		--fg: hsl(220, 9.68%, 93.92%);
		--link-fg: hsl(208.97, 80.11%, 64.51%);
		--text-decoration-fg: hsl(0, 0%, 46.84%);
		--sidebar-bg: hsl(220, 4.76%, 16.35%);
	}
}

body {
	margin: 0rem;
	overflow-x: clip;
}

h1 {
	text-align: center;
}

a:link, a:visited {
	text-decoration-color: var(--text-decoration-fg);
	color: var(--link-fg);
}

aside#sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: min(33%, 200px);
	height: 100%;
	background-color: var(--sidebar-bg);
	overflow-y: auto;
	padding: 0px 10px;
	box-sizing: border-box;
}

aside#sidebar a:link,
aside#sidebar a:visited {
	text-decoration: none;
	color: var(--fg);
}


aside#sidebar > ul > li:not(first-child) {
	margin-top: 1rem;
}

aside#sidebar > ul {
	list-style: none;
}

aside#sidebar ul {
	padding-left: 1rem;
}

aside#sidebar > ul {
	padding-left: 0rem;
}

div#main-and-footer {
	margin-left: min(33%, 200px);
	padding: 0px 10px;
	overflow-x: auto;
}

main {
	margin: 0 auto;
}

main:not(.wide) {
	max-width: 50rem;
}

@media(max-width: 550px) {
	aside#sidebar {
		display: none;
	}
	div#main-and-footer {
		margin-left: 0px;
	}
}

.nav-current {
	font-weight: bold;
}

pre {
	overflow-x: auto;
}