aboutsummaryrefslogtreecommitdiff
path: root/styles/layout.css
blob: f648634e1405c88d433df97c10ea32f3b58193aa (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
:root {
	--nav-width: 200px;
	--page-width: 700px;
	--page-margins: 24px;
}

.centeredPage {
	max-width: calc(var(--nav-width) + var(--page-width) + var(--page-margins));
	margin: 0 auto;
	margin-top: 96px;
	padding: 0 var(--page-margins);

	display: grid;
	gap: var(--page-margins);
	grid-template-columns: var(--nav-width) 1fr;
	grid-auto-rows: auto;
}

.titleWrapper {
	grid-column: 2;
	grid-row: 1;
}
.titleWrapper > * { margin: 0; }

.navAreaWrapper {
	grid-column: 1;
	grid-row: 2;
}
.navAreaWrapper > .sticky {
	position: sticky;
	top: var(--page-margins);
	bottom: var(--page-margins);
	height: calc(100vh - 2 * var(--page-margins));

	overflow-y: scroll;

	border-radius: 8px;
}

.contentWrapper {
	grid-column: 2;
	grid-row: 2;
}
.contentWrapper > * {
	margin: 0;
	margin-bottom: var(--page-margins);
}

.contentWrapper p {
	text-align: justify;
}