-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathglossary.css
More file actions
88 lines (73 loc) · 1.62 KB
/
glossary.css
File metadata and controls
88 lines (73 loc) · 1.62 KB
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
:root {
color-scheme: light dark;
--description-indent: 2rem;
--h1-size: 150%;
--section-term-size: 130%;
--section-term-margin: 1rem 0;
--term-size: 110%;
--term-margin: 0;
--link-color: blue;
}
@media (prefers-color-scheme: dark) {
:root {
--link-color: #6db3f2;
}
}
html {
margin: 0 1rem; /* ensure margins on all screens */
}
body {
line-height: 1.4;
font-family: Arial, Helvetica;
font-size: 1rem;
max-width: 80ch;
margin: auto;
}
a {
text-decoration: none;
color: var(--link-color);
}
[property='skos:prefLabel'] {
font-weight: bold;
}
/* main header */
[property='skos:prefLabel']:not([typeof='skos:Concept']) {
font-size: var(--h1-size);
}
/* section header */
[property='skos:prefLabel'][typeof='skos:Concept'][rel='skos:isTopConceptOf'] {
margin: var(--section-term-margin);
font-size: var(--section-term-size);
text-decoration: underline;
}
/* concept definition */
[property='skos:prefLabel'][typeof='skos:Concept']:not(
[rel='skos:isTopConceptOf']
) {
font-size: var(--term-size);
margin: var(--term-margin);
}
dd {
margin-bottom: 1rem;
/* reset browser default */
margin-left: 0;
}
/* indent note, and concept description */
[property='skos:note'],
[property='skos:prefLabel']:not([rel='skos:isTopConceptOf']) + dd {
margin-left: var(--description-indent);
}
#license {
font-style: italic;
}
/* mobile view */
@media (max-width: 600px) {
:root {
/* remove indentation to better suit narrow screen */
--description-indent: 0;
--term-margin: 0.25rem 0;
/* decrease header sizes */
--h1-size: 140%;
--section-term-size: 120%;
}
}