about summary refs log tree commit diff
path: root/served/styles/quark.css
blob: 6d69a2da7abe38645935328d623f1be6a74a2a00 (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
:root {
	--box-border: palevioletred;
	--box-border-alt: paleturquoise;

	--box-background: #393344;
	--box-background-alt: var(--background-dim);

	--nav: lightcoral;
}

/* MARK: 3 Boxes
*/
nav,
#tools,
main {
	max-width: var(--pwidth);
	margin: 0 auto;
}

nav {

	/* div things to create separators between links in horizontal list */
	div {
		display: inline;
	}

	div::before {
		content: '~';
		margin: 0 0.25rem;
	}

	div:first-of-type::before {
		content: none;
		margin: 0;
	}
}

#tools {
	max-width: var(--pwidth);
	width: fit-content;

	/* shove the tools box all the way left */
	margin: 0 0 0 auto;

	a {
		color: var(--nav);
	}
}

/* style titles for nav/tools: h2 is nav, h3 is tools */
nav,
#tools {

	h2,
	h3 {
		font-size: 1.1em;
		margin: 0;
		padding: 0;
	}

	h2 {
		width: 100%;
		text-align: right;
	}
}

main {
	width: var(--pwidth);
	margin: 0 auto;
	height: 100%;
}

.box {
	border: 1px solid var(--box-border);
	background-color: var(--box-background);
	padding: 0.5rem 0.5rem;

	a {
		color: var(--nav);
	}

	:first-child {
		margin-top: 0;
	}

	/* main.box */
	&:where(main) {
		border: 1px solid var(--box-border-alt);
		background-color: var(--box-background-alt);
	}
}

.box-alt-color {
	border-color: var(--box-border-alt);
	background-color: var(--box-background-alt);
}

/* MARK: Preview */
/* here instead of in forms so we can leave forms out and better simulate a real page */
body#preview {
	padding: 1rem;

	&>p:first-of-type {
		margin-top: 0;
	}
}

/* MARK: Wide//3 Boxes
*/
@media (min-width: 50rem) {
	body {
		display: flex;
		flex-direction: row;
		column-gap: 1rem;
	}

	nav,
	main,
	#tools {
		margin: unset;
	}

	/* The below: Positions "boxes" such as Nav - Main - Tools*/
	nav {
		order: 1;
		flex: 0 1;
		height: fit-content;

		/* show links in row */
		display: flex;
		flex-direction: column;
		row-gap: 0.5rem;

		/* don't break link text */
		text-wrap: nowrap;

		/* push down a bit below top of main; for flair */
		margin-top: 3rem;

		/* don't make between-link separators */
		div::before {
			content: none;
		}
	}

	main.page {
		order: 2;
		flex: 0 0 35rem;
		min-height: 50vh;
	}

	#tools {
		order: 3;
		flex: 0 1;
		height: fit-content;

		/* push down a lot below top of main; for flair */
		margin-top: 8rem;
		text-align: right;
	}
}