summaryrefslogtreecommitdiff
path: root/static/base.css
blob: c0b1b8a767f8573667aed49d8f74b37d15fa11ca (about) (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
100
101
102
103
html {
	box-sizing: border-box;
	--bg: oklch(0.99 0 0);
	--fg: oklch(0 0 0);
	--link-fg: oklch(0.428 0.088 249.2);
	--text-decoration-color: oklch(0.85 0 0);
	color: var(--fg);
	background-color: var(--bg);
	font-family: ui-sans-serif, system-ui, sans-serif;
}
*, *::before, *::after {
	box-sizing: inherit;
}

body {
	padding: 8px;
	margin: 0 auto;
	max-width: 100ch;
}

@media (prefers-color-scheme: dark) {
	html {
		--bg: oklch(0.239 0.004 264.5);
		--fg: oklch(0.952 0.003 264.5);
		--link-fg: oklch(0.71 0.127 248.6);
		--text-decoration-color: oklch(0.42 0 0);
	}
}

pre, code {
	font-size: inherit;
	line-height: inherit;
	font-family: ui-monospace, monospace;
}

a:link {
	text-decoration-color: var(--text-decoration-color);
	text-decoration-thickness: 1.89px;
	color: var(--link-fg);
}

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

dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	column-gap: 1rem;
	row-gap: 0.5rem;
	dt {
		font-weight: 700;
		text-align: right;
	}
	dd {
		margin: 0;
	}
}

nav.breadcrumbs {
	ul {
		padding: 0;
		margin: 0;
		list-style: none;
		display: flex;
		gap: 0.5rem;
		li {
			display: inline-flex;
			align-items: center;
		}
		li + li::before {
			content: "»";
			padding-right: 0.5rem;
		}
		li:nth-child(2)::before {
			content: "::";
			padding-right: 0.5rem;
		}
	}
}

pre {
	overflow-x: auto;
}

img {
	max-width: 100%;
	height: auto;
}

.scrollable {
	overflow-x: auto;
}

table, th, td {
	border-bottom: 1px solid contrast-color(var(--bg));
	border-collapse: collapse;
	padding: 1ex;
}
table {
	min-width: 100%;
}