-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheu4_parse.css
399 lines (351 loc) · 7.39 KB
/
eu4_parse.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
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
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
@import url('https://fonts.googleapis.com/css2?family=Lexend&display=swap');
* {box-sizing: border-box;}
body {
font-family: 'Lexend', sans-serif;
line-height: 1.3;
}
main {
max-width: 1200px;
margin: auto;
background: #eee;
padding: 0 0.5em;
min-height: 95vh;
}
h1 {max-width: max-content; margin: auto;}
#error {
position: fixed;
top: 1em; left: 50%; transform: translateX(-50%); /* Position: top center */
border: 1px solid red;
background: #fbb;
font-size: 150%;
padding: 2em;
}
#now_parsing {
border: 1px solid cyan;
background: #dff;
padding: 0.5em;
margin-bottom: 0.5em;
}
#menu {
background: #efe;
border: 1px solid green;
padding: 0.5em;
}
.hidden {display: none}
details {
border: 1px solid black;
margin: 1em 0;
padding: 0.1em;
transition: background 2s;
}
details.jumphighlight {
background: #df8;
transition: background 0s;
}
table {
border-collapse: collapse;
margin: 0.25em;
}
td {padding: 2px;}
li {
margin-bottom: 0.25em;
}
.bulletless {
list-style-type: none;
}
#trade_nodes details {
margin: 1em 1em;
padding: 0 1.5em;
}
#trade_nodes details summary {
margin-left: -1em;
}
/* Highlighting is always done with the same CSS classes, but the precise
color choice can be overridden based on its parent. */
.interesting3 {background: #bfd;}
.interesting2 {background: #bfd;}
.interesting1 {background: #bff;}
/* .interesting0 gets no background change */
#wars details {
margin: 1em;
}
#wars .attacker {background: #e1c0c0;}
#wars .attacker-player {background: #e1c300;}
#wars .attacker-total {background: #cd8080;}
#wars .defender {background: #c0c0e1;}
#wars .defender-player {background: #00c3e1;}
#wars .defender-total {background: #8080cd;}
.provbtn {
margin-left: 0.25em;
cursor: pointer;
background: #ccffff;
border: 1px solid #bbdddd;
}
#options {
position: absolute;
top: 0.25em; right: 0.25em;
background: #ffeeff;
padding: 0 0.5em;
}
#options.vis {
position: fixed;
border: 1px solid black;
}
#options:not(.vis) > * {display: none;}
#options > #optexpand {
display: block;
padding: 0;
position: absolute;
right: 0; top: 0;
width: 1.5em; height: 1.5em;
line-height: 1;
}
/* Reserve space for #optexpand */
#spacer {
display: inline-block;
width: 1em;
}
.province, .country {
display: inline-block;
white-space: nowrap;
text-indent: 0;
}
#upgradeables .province {margin-left: 1em;}
#colonization_targets ul {margin: 0;}
#interesting_details {margin: 0;}
#interesting_details li {
margin: 1em 0;
cursor: pointer;
}
.provgroup {
display: inline-block;
font-weight: bold;
cursor: pointer;
border: 2px solid transparent;
}
.provgroup.empty {cursor: default;} /* Not "inherit" which would give an ibeam */
.provgroup.clear {font-size: 60%;}
.size-1: {font-size: 1.5em;}
.size-2: {font-size: 1.175em;}
.size-3: {font-size: 1em;}
.provgroup.selected {border-color: blue;}
.province.selected {border: 2px solid blue;}
.provnext {
cursor: pointer;
color: aliceblue;
background: #8888ff;
font-size: 60%;
}
.indent {padding-left: 1em;}
#search strong {
background: #efe;
}
.caution {margin: 0 0.5em; cursor: default;}
.flag.small {
width: 24px; height: 24px;
vertical-align: bottom;
}
.flag.large {
display: block;
width: 128px; height: 128px;
margin: auto;
}
#hovercountry {
margin: 0.5em;
border: 3px double black;
padding: 0.5em;
position: relative;
max-width: 251px;
}
#hovercountry.retained {
border: 3px inset black;
}
#hovercountry li {
padding-left: 1em; /* Indent wrapped lines */
text-indent: -1em;
}
#hovercountry h3 {
margin: 0;
text-align: center; /* Center the country name under the flag */
}
#hovercountry .close {
position: absolute;
right: 0; top: 0;
cursor: pointer;
}
#hovercountry .country {cursor: pointer;}
.tech {padding: 0 0.25em;}
.tech.above {background: #fbd;}
.tech.below {background: #efe;}
#recent_peace_treaties li {
list-style-type: none;
color: white;
background: black;
margin: 0.5em 1em 0.5em 0;
padding: 0.25em 0.5em;
}
#recent_peace_treaties img {
vertical-align: middle;
}
#truces li {
margin: 0.4em 0;
}
.hoverinactive .hovercountry {display: none;}
.sorthead {
cursor: pointer;
}
dialog > section {
display: flex;
flex-direction: column;
}
dialog > section > header {
display: flex;
justify-content: space-between;
}
dialog > section > header > h3 {
margin: 0.5em 0;
}
.dialog_cancel {
position: relative;
right: -8px; top: -8px;
}
#customnationmain h4 {margin: 0.5em 0;}
#customnationmain ul {margin: 0 0 0.25em 0;}
.editidea {
width: 1.75em;
height: 1.75em;
padding: 0;
}
.filters {
display: flex;
list-style-type: none;
padding: 0;
}
thead {
position: sticky;
top: 0;
background: #eee;
}
#ideaoptions thead {background: aliceblue;}
.ideacost {
display: inline-block;
width: 2.5em;
font-weight: bold;
}
.seteffectmode {
padding: 0;
/* Enable the buttons when needed, eg after an update that added new ideas */
display: none;
}
.powers {
display: flex;
flex-wrap: wrap;
max-width: 15em; /* Seems to be enough to fit five out of ten of the biggest ones */
gap: 0.25em;
}
.pickflag.color {
width: 128px;
height: 128px;
}
nav#sidebar {
display: none;
}
nav#topbar {
position: absolute;
left: 0;
height: 40px;
}
#togglesidebar {
/* Make the button look like a hamburger menu */
border: 0;
font-size: 0;
padding: 0;
height: 32px; width: 32px;
margin-right: 8px;
background: linear-gradient(transparent 0%, transparent 14%,
#bbb 14%, #bbb 28%, transparent 28%, transparent 42%,
#bbb 42%, #bbb 56%, transparent 56%, transparent 70%,
#bbb 70%, #bbb 84%, transparent 84%);
}
nav#sidebar ul {
padding-left: 8px;
margin: 0;
overflow: clip auto;
position: absolute;
top: 0px; bottom: 100px; /* Leave room for the avatar below */
font-size: smaller;
}
#tiledview {
display: block;
position: absolute;
left: 0; bottom: 0px;
font-size: 80px;
text-decoration: none;
}
nav#sidebar.vis {
display: block;
position: fixed;
left: 0px;
width: 100px;
top: 48px; bottom: 0;
background-color: #a0f0c0;
}
#togglesidebarbox {
display: block;
position: absolute;
left: 0; top: 0;
width: 100px; height: 48px;
padding: 8px;
}
#togglesidebarbox.sbvis {
position: fixed;
background-color: #a0f0c0;
}
/* Firefox doesn't currently support the :has selector (it's supported in Ff 103 with a
flag, but as of 20230414, not vanilla in any version), so instead of the simpler directive
body:has(nav#sidebar) nav#topbar {padding-left: 100px;}
we use two directives, one to create the padding unconditionally, and one to remove it if
we don't want it. This means that Firefox, until it grows support for the :has selector,
will waste 100px of space when there's no sidebar. */
body nav#topbar {padding-left: 100px;}
body:not(:has(nav#sidebar.vis)) nav#topbar {
padding-left: 0;
}
@media screen and (width >= 600px) {
/* On wide enough screens, consume space for the entire body, not just the nav topbar */
body nav#topbar {padding-left: 0;}
body {padding-left: 100px;}
body:not(:has(nav#sidebar.vis)) {
padding-left: 0;
}
}
#tiledviewmain {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.tiledviewtile {
width: 150px; height: 150px;
border: 1px solid rebeccapurple;
padding: 8px;
display: flex;
justify-content: space-between;
flex-direction: column;
font-size: 24px;
text-decoration: none;
color: black;
}
.tiledviewtile:hover {
background: rebeccapurple;
color: white;
}
.tiledviewtile div {
text-align: center;
}
.tiledviewtile .icon {
font-size: 60px;
}
#battlesdlg td {
text-align: center;
padding: 0.25em 0.75em;
}