aboutsummaryrefslogtreecommitdiff
path: root/styles/layout.css
blob: 67156816da9092d729ec3b7ba978f5bc46cdcae8 (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
: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);
	max-height: calc(100vh - 2 * var(--page-margins));

	overflow-y: scroll;

	border-radius: 8px;
}

.contentWrapper {
	grid-column: 2;
	grid-row: 2;

	overflow-x: hidden;
}
.contentWrapper > * {
	margin: 0;
	margin-bottom: var(--page-margins);
}

.contentWrapper p {
	text-align: justify;
}

.contentWrapper table,
.contentWrapper code,
.contentWrapper pre {
	overflow-x: scroll;
}

.recentPosts {
	display: grid;
	grid-gap: 12px;
	grid-template-columns: repeat( auto-fit, minmax(250px, 1fr) );
}