forked from hilverd/glossary-page-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglossary.css
273 lines (246 loc) · 9.72 KB
/
glossary.css
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
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind variants;
@layer components {
html {
@apply min-h-full;
}
body {
@apply antialiased bg-gray-100 dark:bg-gray-900 print:bg-white min-h-full;
}
div#glossary-page-container {
@apply min-h-screen mb-10 print:mb-0 text-gray-900 dark:text-gray-100 print:text-black;
}
div#glossary-page-container header {
@apply pt-6 pb-4 mx-auto px-4 sm:px-6 lg:px-8 print:px-0 print:max-w-prose;
}
h1#glossary-page-title {
@apply text-3xl font-bold leading-tight;
}
div#glossary-page-container main {
@apply mx-auto px-6 lg:px-8 print:px-0 print:max-w-prose;
}
div#glossary-page-about {
@apply pb-3 max-w-prose;
}
div#glossary-page-about ul {
@apply pt-4 ml-1 list-disc list-inside;
}
div#glossary-page-container[data-enable-markdown-based-syntax="true"] div#glossary-page-about:not([data-markdown-rendered="true"]) {
@apply font-mono whitespace-pre-wrap;
}
article#glossary-page-items dl {
@apply grid print:block print:space-y-5 gap-5 grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 3xl:grid-cols-4;
}
article#glossary-page-items dl > div {
@apply bg-white dark:bg-gray-800 print:bg-white border dark:border-gray-700 print:border-none rounded-lg print:px-0 px-4 py-4 print:py-0;
}
article#glossary-page-items dl dt {
@apply font-semibold print:font-normal text-gray-600 dark:text-gray-200 print:text-black;
}
article#glossary-page-items dl dt dfn {
@apply not-italic print:italic scroll-mt-24;
}
article#glossary-page-items dl dd {
@apply mt-1 print:mt-0 py-2 print:py-0 text-gray-600 dark:text-gray-300 print:text-black;
}
article#glossary-page-items dl dd a {
@apply text-gray-600 dark:text-gray-300 print:text-black;
}
article#glossary-page-items dl dd.related-terms {
@apply print:mt-2;
}
a {
@apply hover:underline text-indigo-600 dark:text-amber-300 print:text-black;
}
dfn:target {
@apply bg-amber-100 dark:bg-pink-900;
}
dt span.silcrow {
@apply ml-1.5 select-none;
}
dt span.silcrow a {
@apply text-inherit no-underline text-gray-500 dark:text-gray-400 font-normal;
}
/* Start of trick for autogrowing textareas
https://css-tricks.com/the-cleanest-trick-for-autogrowing-textareas/ */
.grow-wrap {
@apply grid;
}
.grow-wrap::after {
@apply whitespace-pre-wrap invisible;
content: attr(data-replicated-value) " ";
}
.grow-wrap > textarea {
@apply resize-none overflow-hidden;
}
.grow-wrap > textarea,
.grow-wrap::after {
@apply shadow-sm w-full rounded-md border;
grid-area: 1 / 1 / 2 / 2;
}
/* End of trick for autogrowing textareas */
}
/* overpass-100 - latin */
@font-face {
font-family: 'Overpass';
font-style: normal;
font-weight: 100;
src: local(''),
url('https://glstatic.net/fonts/overpass-v10-latin-100.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('https://glstatic.net/fonts/overpass-v10-latin-100.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* overpass-200 - latin */
@font-face {
font-family: 'Overpass';
font-style: normal;
font-weight: 200;
src: local(''),
url('https://glstatic.net/fonts/overpass-v10-latin-200.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('https://glstatic.net/fonts/overpass-v10-latin-200.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* overpass-300 - latin */
@font-face {
font-family: 'Overpass';
font-style: normal;
font-weight: 300;
src: local(''),
url('https://glstatic.net/fonts/overpass-v10-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('https://glstatic.net/fonts/overpass-v10-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* overpass-regular - latin */
@font-face {
font-family: 'Overpass';
font-style: normal;
font-weight: 400;
src: local(''),
url('https://glstatic.net/fonts/overpass-v10-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('https://glstatic.net/fonts/overpass-v10-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* overpass-500 - latin */
@font-face {
font-family: 'Overpass';
font-style: normal;
font-weight: 500;
src: local(''),
url('https://glstatic.net/fonts/overpass-v10-latin-500.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('https://glstatic.net/fonts/overpass-v10-latin-500.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* overpass-600 - latin */
@font-face {
font-family: 'Overpass';
font-style: normal;
font-weight: 600;
src: local(''),
url('https://glstatic.net/fonts/overpass-v10-latin-600.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('https://glstatic.net/fonts/overpass-v10-latin-600.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* overpass-700 - latin */
@font-face {
font-family: 'Overpass';
font-style: normal;
font-weight: 700;
src: local(''),
url('https://glstatic.net/fonts/overpass-v10-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('https://glstatic.net/fonts/overpass-v10-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* overpass-800 - latin */
@font-face {
font-family: 'Overpass';
font-style: normal;
font-weight: 800;
src: local(''),
url('https://glstatic.net/fonts/overpass-v10-latin-800.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('https://glstatic.net/fonts/overpass-v10-latin-800.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* overpass-900 - latin */
@font-face {
font-family: 'Overpass';
font-style: normal;
font-weight: 900;
src: local(''),
url('https://glstatic.net/fonts/overpass-v10-latin-900.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('https://glstatic.net/fonts/overpass-v10-latin-900.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* overpass-100italic - latin */
@font-face {
font-family: 'Overpass';
font-style: italic;
font-weight: 100;
src: local(''),
url('https://glstatic.net/fonts/overpass-v10-latin-100italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('https://glstatic.net/fonts/overpass-v10-latin-100italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* overpass-200italic - latin */
@font-face {
font-family: 'Overpass';
font-style: italic;
font-weight: 200;
src: local(''),
url('https://glstatic.net/fonts/overpass-v10-latin-200italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('https://glstatic.net/fonts/overpass-v10-latin-200italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* overpass-300italic - latin */
@font-face {
font-family: 'Overpass';
font-style: italic;
font-weight: 300;
src: local(''),
url('https://glstatic.net/fonts/overpass-v10-latin-300italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('https://glstatic.net/fonts/overpass-v10-latin-300italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* overpass-italic - latin */
@font-face {
font-family: 'Overpass';
font-style: italic;
font-weight: 400;
src: local(''),
url('https://glstatic.net/fonts/overpass-v10-latin-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('https://glstatic.net/fonts/overpass-v10-latin-italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* overpass-500italic - latin */
@font-face {
font-family: 'Overpass';
font-style: italic;
font-weight: 500;
src: local(''),
url('https://glstatic.net/fonts/overpass-v10-latin-500italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('https://glstatic.net/fonts/overpass-v10-latin-500italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* overpass-600italic - latin */
@font-face {
font-family: 'Overpass';
font-style: italic;
font-weight: 600;
src: local(''),
url('https://glstatic.net/fonts/overpass-v10-latin-600italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('https://glstatic.net/fonts/overpass-v10-latin-600italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* overpass-700italic - latin */
@font-face {
font-family: 'Overpass';
font-style: italic;
font-weight: 700;
src: local(''),
url('https://glstatic.net/fonts/overpass-v10-latin-700italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('https://glstatic.net/fonts/overpass-v10-latin-700italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* overpass-800italic - latin */
@font-face {
font-family: 'Overpass';
font-style: italic;
font-weight: 800;
src: local(''),
url('https://glstatic.net/fonts/overpass-v10-latin-800italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('https://glstatic.net/fonts/overpass-v10-latin-800italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* overpass-900italic - latin */
@font-face {
font-family: 'Overpass';
font-style: italic;
font-weight: 900;
src: local(''),
url('https://glstatic.net/fonts/overpass-v10-latin-900italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('https://glstatic.net/fonts/overpass-v10-latin-900italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}