-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
167 lines (145 loc) · 2.62 KB
/
style.css
File metadata and controls
167 lines (145 loc) · 2.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
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
body {
font-family: sans-serif;
margin: 0;
padding: 0;
}
header, footer {
/* colors from https://undervisning.stortinget.no/valg/valget-2021/ */
background-image: linear-gradient(
to right,
#5d083f 0% 10%, /* R */
#af0061 10% 20%, /* SV */
#da1f34 20% 30%, /* AP */
#1a9d57 30% 40%, /* SP */
#83c557 40% 50%, /* MDG */
#fb5200 50% 60%, /* PF */
#f8af3c 60% 70%, /* KRF */
#00462e 70% 80%, /* V */
#257de1 80% 90%, /* H */
#06205b 90% 100% /* FRP */
);
color: white;
}
header p, footer p {
margin: 0;
padding: 0.75rem;
background-color: black;
}
header h1 {
margin: 0.75rem;
padding: 0.5rem;
display: inline-block;
background-color: black;
}
header a, a:visited {
color: inherit;
}
/* https://aileenrae.co.uk/blog/firefox-scroll-padding-bug/ */
.scroll {
padding-left: 0.75rem;
padding-right: 0.75rem;
overflow-x: auto;
white-space: nowrap;
}
table {
border-collapse: collapse;
}
th, td {
border: 1px solid lightgray;
padding: 0.25em;
text-align: right;
white-space: nowrap;
min-width: 2em;
}
th:first-child {
text-align: left;
}
th {
background-color: whitesmoke;
}
th.sorted {
background-color: color-mix(in srgb, blue 5%, whitesmoke);
}
td.sorted {
background-color: color-mix(in srgb, blue 5%, white);
}
fieldset {
margin: 0.75rem 0 0.25rem 0;
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 0.5em;
line-height: 2.0em;
padding: 0;
border-width: 0;
}
a {
color: black;
cursor: pointer;
}
#log {
width: 100%;
box-sizing: border-box;
resize: vertical;
}
section {
padding: 0 0.75rem;
}
h2 {
margin: 0;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
h2 > a:not(:last-child) {
margin-right: 0.3em;
}
h2 > a {
color: gray;
text-decoration: none;
}
h2 > a:hover {
color: dimgray;
}
h2 > a.activetab {
color: black;
}
ul {
list-style-position: inside;
list-style-type: square;
padding-left: 0em;
}
fieldset > label {
flex-grow: 1; /* grow to fill flex space (looks better) */
background-color: whitesmoke;
padding: 0.2em 0.4em;
border-radius: 0.25em;
}
/* for help links */
fieldset label a {
text-decoration: none;
color: gray;
float: right;
}
input, select {
background-color: white;
padding: 0.4em;
border: 1px solid lightgray;
border-radius: 0.25em;
box-sizing: border-box;
}
input[type="button"] {
border-color: transparent; /* same as background-color */
background-color: color-mix(in srgb, red, black 0%);
}
input[type="button"]:hover {
background-color: color-mix(in srgb, red, black 10%);
}
input[type="button"]:active {
background-color: color-mix(in srgb, red, black 20%);
}
input:invalid {
background-color: red;
}
table:hover {
cursor: pointer;
}