aboutsummaryrefslogtreecommitdiff
path: root/pyenc/static/css/style.scss
blob: 9c4e76f35eae7e2e4e4ed75ffa3c85fbf4849ea1 (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
:root {
	--sidebar-h: 188;
	--sidebar-s: 50%;
	--sidebar-l: 50%;
}

body {
	margin: 0;
	display: grid;
	grid-template-areas:
		"nav flash"
		"nav main";
	/* sidebar width */
	grid-template-columns: 20ch auto;
	/* Make flashes as small as possible */
	grid-template-rows: auto 1fr;
	min-height: 100vh;
}

#flash {
	grid-area: flash;
	background-color: pink;
}

body > nav {
	grid-area: nav;
	background-color: hsl(var(--sidebar-h), var(--sidebar-s), var(--sidebar-l));
	display: flex;
	flex-direction: column;

	hr {
		flex-grow: 1;
		border: none;
	}

	img {
		max-width: 100%;
	}

	ul {
		padding: 0;
		margin: 0;
	}

	li {
		display: block;
	}

	a {
		display: block;
		color: initial;
		text-decoration: none;
		padding-bottom: 1em;
		padding-top: 1em;
		padding-left: 1em;
	}

	a:hover {
		background-color: hsl(var(--sidebar-h), calc(var(--sidebar-s) - 20%), var(--sidebar-l));
	}
}

body > main {
	grid-area: main;
	background-color: beige;
	padding: 1em;
}


table {
	font-size: 80%;
}