aboutsummaryrefslogtreecommitdiff
path: root/_sass/theme.scss
blob: 290cc8e242cc4f56a62c13a6902d7348432d7b6d (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
blockquote {
	font-style: italic;
	opacity: .8;
	--color: currentcolor;
}
blockquote::before {
	content: "";
	position: absolute;
	left: 0;
	top: -4px;
	bottom: -4px;
	width: 2px;
	background-color: var(--color);
}
blockquote p {
	margin: 1ex 0;
}
blockquote.admonition {
	font-style: unset;
	opacity: unset;
}
blockquote.admonition .title {
	font-weight: bold;
	color: var(--color);
}

// navbar colors
.invert {
	background-color: black;
	color: white;
}

nav .item.active {
	color: canvastext !important;
	background-color: canvas !important;
}

// only show underline when hovering link
a { text-decoration: none; }
a:hover { text-decoration: underline; }

// separator style
hr {
	display: block;
	border: none;
	border-top: 1px dashed;
}

aside { border-left: 1px dashed; }

pre { border: 1px solid; }

header .title { font-size: 150%; }
footer .title { font-size: 120%; }

.plainlink a,
.plainlink a:visited { color: inherit; }

nav .right a {
	opacity: .75;
	font-style: italic;
}

td, th {
	padding: 0 1ex;
}
table {
	border-color: currentColor;
	border-spacing: 0;
}

// booktabs tables
table th {
	border-bottom-style: solid; // \midrule
	padding-bottom: .4ex; // \aboverulesep
	border-bottom-width: .05em; // \lightrulewidth
}
table tr:has(th) + tr td {
	padding-top: .65ex; // \belowrulesep
}
table {
	border-top-style: solid; // \toprule
	margin-top: 0; // \abovetopsep
	border-top-width: .08em; // \heavyrulewidth
	padding-top: .65ex; // \belowrulesep

	border-bottom-style: solid; // \bottomrule
	padding-bottom: .4ex; // \aboverulesep
	border-bottom-width: .08em; // \heavyrulewidth
	margin-bottom: 0; // \belowbottomsep
}

.sortcolumn {
	display: list-item;
	list-style: inside;
	list-style-type: disclosure-open;
}

*:focus { outline: none; }

input, button {
	border: none;
	background: #ccc;
	color: inherit;

	box-sizing: content-box;
	height: 20px;
	line-height: 20px;
	display: inline-block;
	padding: 2px 8px;
}
input[type=submit], buttom { cursor: pointer; }