about summary refs log tree commit diff
path: root/served/styles/writing.css
blob: 527d4342873f42284b8cbf12cd256935984b7bfd (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
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
.sized {
	--page-width: 36rem;
}

body {
	line-height: 1.6;
}

h1 {
	line-height: 1;
}

h2,
h3 {
	line-height: 1;
	margin-top: 2rem;
}

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

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

aside {
	border: 1px dashed var(--text);
	border-radius: 1rem;
	padding: .25rem .5rem;
	width: 90%;
	margin: 1.25rem auto;
}

img {
	display: block;
	width: 100%;

	margin: 1.25rem auto;
}

code {
	font-size: 1rem;
}

details {
	position: relative;
	padding: 0.5rem 1rem;
	width: 80%;
	margin: 1.25rem auto;
}

details::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 2rem;
	height: 1rem;
	border-width: 1px 0 0 1px;
	border-color: var(--text);
	border-style: solid;
	z-index: -1;
}

details::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 2rem;
	height: 1rem;
	border-width: 0 1px 1px 0;
	border-color: var(--text);
	border-style: solid;
	z-index: -1;
}