aboutsummaryrefslogtreecommitdiff
path: root/_sass/media.scss
blob: d2546745767f141fd70adc9c7234b75a2bf1542f (plain)
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
// no floating toc when screen too narrow
@media only screen and (max-width: 450px) {
	aside {
		float: none;
		width: unset;

		border-left: none;
		border-bottom: 1px dashed;
		margin-left: 0px;
	}
}

@media only screen and (prefers-color-scheme: dark) {
	.invert, input, button {
		background-color: #222;
		color: inherit;
	}

	nav .item.active {
		color: inherit;
		background-color: canvas;
		text-decoration: underline;
		font-weight: bold;
	}

	:root {
		--code-comment: #808b9bd9;
		--code-keyword: #d25a76;
		--code-string: #e4a87e;
		--code-number: #fa7d57;
		--code-operator: #da9eff;
	}
}

@media print {
	nav { display: none; }

	.invert {
		background-color: unset;
		color: unset;
	}

	.limitwidth { max-width: 35em; }
}