summaryrefslogtreecommitdiff
path: root/src/main.scss
blob: 0c5f0d59a43d3c5b5dee2caeceab2718282cd742 (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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
@import url(https://fonts.googleapis.com/css?family=Neucha|Patrick+Hand+SC);

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	background: rgb(255,255,240);

	a {
		text-decoration: none;
		color: #1963b6;
		&:hover, &:focus {
			text-decoration: underline;
		}
		&:visited {
			color: #460fb3;
		}

		&.external {
			background-position: center right;
			background-repeat: no-repeat;
			background-image: url(external.svg);
			background-size: 12px 12px;
			padding-right: 13px;
		}
		&.feed {
			background-position: center left;
			background-repeat: no-repeat;
			background-image: url(feed.svg);
			background-size: 0.65em 0.65em;
			padding-left: 0.8em;
		}
	}
}

header {
	width: 20%;
	position: fixed;
	height: 100%;
	left: 0;
	top: 0;

	display: flex;
	flex-direction: column;

	text-align: center;
	font-family: 'Patrick Hand SC', sans-serif;

	background-color: rgb(200,200,160);

	h1 {
		background-color: #ce795e;
		padding: 0.5em 0;
		margin: 0;
		a {
			color: black !important;
		}
	}

	nav {
		ul {
			display: flex;
			flex-direction: column;
			margin: 0;
			padding: 0;
			li {
				display: block;
				font-size: 2em;
				margin: 0.25em 0.5em;

				border: 2px solid #41403e;
				border-top-left-radius: 255px 15px;
				border-top-right-radius: 15px 225px;
				border-bottom-right-radius: 225px 15px;
				border-bottom-left-radius: 15px 255px;

				background-color: rgb(240,240,240);
				transition: background-color 0.5s ease;
				&:hover {
					background-color: rgb(200,200,200);
				}

				form {
					display: inline-block;
					width: calc(100% - 0.5em);
					line-height: 0;
					margin: 0.25em 0;
					input {
						width: 100%;
					}
				}
			}
		}
	}
}

article, footer {
	width: 80%;
	margin-left: 20%;

	font-family: 'Neucha', sans-serif;
	padding: 1em;
}

article {
	overflow: hidden;

	.tag {
	        font-size: 60%;
		color: white !important;
		text-align: center;

		margin-left: 2px;
		padding: 4px 7px 5px 7px;
		border-top-left-radius: 255px 15px;
		border-top-right-radius: 15px 225px;
		border-bottom-right-radius: 225px 15px;
		border-bottom-left-radius: 15px 255px;
	}
	.tag.ff { background: FireBrick; }
	.tag.ss { background: SeaGreen; }
	.tag.es { background: DarkViolet; }
	.tag.hb { background: DimGray; }
	.tag.dm { background: DarkSlateGray; }
	.tag.wp { background: GhostWhite; color: black !important; border-color: Gray; border: solid 1.2px LightGray; }
	.tag.ap { background: #C00000; }
	.tag.wb { background: #CC3399; }
	.tag.fr { background: #003300; }
	.tag.pf { background: #FF0000; }
	.tag.ld { background: #CCCC00; }

	border-bottom: solid 1px #c9cacc;
}

footer {
	font-size: 70%;
	p {
		margin: 0;
	}
}


/* Index pages ****************************************************************/

body.index {
	@mixin card-container {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-start;
	}

	@mixin card {
		display: block;
		background-color: white;
		border: 2px solid #e6e7e9;
		padding: 1em;
		margin: 1em;

		box-shadow: 15px 28px 25px -18px rgba(0,0,0,.2);
		transition: box-shadow .5s ease;
		&:hover {
			box-shadow:2px 8px 4px -6px rgba(0,0,0,.3)
		}
	}

	article {
		@include card-container;
		font-family: 'Patrick Hand SC', sans-serif;

		& > h1 {
			display: block;
			width: 100%;
			text-align: center;
			margin: 0;
		}
		& > ul {
			@include card-container;
			width: 100%;
			padding: 0;
			margin: 0;
			li {
				@include card;
			}
		}
		& > section {
			@include card;
			h2 {
				margin-top: 0;
			}
			ul {
				display: flex;
				flex-direction: column;

				padding: 0;
				margin: 0;
				li {
					display: flex;
					flex-direction: row;
					justify-content: space-between;

					padding: 0.5em 0;
					border-top: 1px dashed #d9d9d8;
					.link-main {
						display: inline-block;
						max-width: 12em;
						line-height: 1.5em;
					}
					.link-categories {
						display: flex;
						flex-direction: row;
						flex-wrap: wrap;
						justify-content: flex-end;
						align-items: flex-start;
					}
				}
			}
		}
	}
}

/* D&D-style pages ************************************************************/

body.dnd {
	background: url(dnd/background.png) repeat-y;
	background-size: 100%;

	/* This bit mostly taken from the defaults of org-mode export */
	article {
		font-family: Baskerville, "Goudy Old Style", "Palatino", "Book Antiqua", "Warnock Pro", serif;
		font-size: 12pt;

		table {
			border-spacing: 0;
			&, tr:last-child td, tr:last-child th {
				border-bottom: solid 1px black;
			}
			&, tr:first-child td, tr:first-child th {
				border-top: solid 1px black;
			}
			td, th {
				padding: 6px;
			}
		}

		p {	text-align: justify; }
		.title  { text-align: center; }
		.todo   { color: red; }
		.done   { color: green; }
		.target { }
		.timestamp { color: #bebebe; }
		.timestamp-kwd { color: #5f9ea0; }
		.right  {margin-left:auto; margin-right:0px;  text-align:right;}
		.left   {margin-left:0px;  margin-right:auto; text-align:left;}
		.center {margin-left:auto; margin-right:auto; text-align:center;}
		p.verse { margin-left: 3% }
		pre {
			border: 1pt solid #AEBDCC;
			background-color: #F3F5F7;
			padding: 5pt;
			//font-family: courier, monospace;
			font-size: 90%;
			overflow:auto;
		}
		table { border-collapse: collapse; }
		td, th { vertical-align: top;  }
		th.right  { text-align:center;  }
		th.left   { text-align:center;   }
		th.center { text-align:center; }
		td.right  { text-align:right;  }
		td.left   { text-align:left;   }
		td.center { text-align:center; }
		dt { font-weight: bold; }
		div.figure { padding: 0.5em; }
		div.figure p { text-align: center; }
		div.inlinetask {
			padding:10px;
			border:2px solid gray;
			margin:10px;
			background: #ffffcc;
		}
		textarea { overflow-x: auto; }
		.linenr { font-size:smaller }
		.code-highlighted {background-color:#ffff00;}
		.org-info-js_info-navigation { border-style:none; }
		#org-info-js_console-label { font-size:10px; font-weight:bold;
									 white-space:nowrap; }
		.org-info-js_search-highlight {background-color:#ffff00; color:#000000;
									   font-weight:bold; }
	}
}

/* D&D-style pages ************************************************************/

body.pdf {
	position: absolute;
	width: 100%;
	height: 100%;
	bottom: 0;

	display: flex;
	flex-direction: column;

	article {
		flex-grow: 2;
		padding: 0;

		p {
			float: left;
			margin: 0.25em -100% 0.25em 0.25em;
		}
		h1 {
			text-align: center;
			margin: 0.25em 0;
		}
		iframe {
			width: 100%;
			height: 100%;
		}
	}
}