forked from MichaelEbert/OblivionProgressTracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
263 lines (219 loc) · 4.27 KB
/
main.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
:root{
--highlight-color: #66666640;
--base-color: #E5D9B9;
--lighter-color: #FBEFD5;
--lightest-color: #FFF5B5;
}
html{
font-family: serif;
}
body{
background-color: var(--base-color);
margin-top: 0;
}
br{
margin-bottom: 0.3em;
}
ol{
padding-left: 2em; /* default is like 40 px which is kinda large */
}
ol li ol{
list-style-type: lower-alpha;
}
li{
margin-bottom:0.3em;
margin-top:0.3em;
}
table{
border-collapse:collapse;
}
tr{
margin:0.5em;
border-bottom: 1px solid grey;
}
td{
padding:0.2em;
}
:target {
border: .4em solid red;
}
.topbar{
display: flex;
flex-wrap: nowrap;
justify-content: space-evenly;
align-items: stretch;
width: 100%;
max-height: 1.8em; /* 2*padding + text height + a teeny bit of padding*/
position: sticky;
background-color: var(--base-color);
padding: 0.3em;
box-sizing: border-box;
top: 0; /* hug the top of the window instead of having a buffer */
left: 0;
z-index: 1;/*Lets topbar render ontop of iframe*/
}
.topbarSection{
flex:1 1 10%;
text-align: center;
background-color: var(--lighter-color);
border-right: 1px solid black;
}
.topbarSublist{
background-color: var(--lighter-color);
display: none;
}
.topbarSublist a{
display:block;
}
.topbarSection:hover{
background-color: var(--highlight-color);
}
.topbarSublist a:hover{
background-color: var(--highlight-color);
}
.topbarSection a,
.topbarSection:hover .topbarSublist{
display: block;
}
.contentContainer{
display: flex;
flex-direction: row-reverse;
}
.resizableContainer{
resize: both;
overflow: hidden;
}
.resizableWidthContainer{
resize: horizontal;
overflow: hidden;
}
/*you can't resize iframes, so we use this to give it a nice resizable handle*/
.sidebarContainer{
border: 1px solid black;
height: 90vh;
width: 500px;
position: sticky;
top: 3em;
display: flex;
flex-direction: column;
}
.iframe{
background-color: var(--lighter-color);
border: 1px solid gray;
width: calc( 100% - 2px);
height: 100%
}
.main{
flex-shrink: 1;
min-width: 0;/* flex has its own nonzero min-width; to allow for mobile, we have to manually set this */
}
.progress{
font-size: min(3em,12vw); /* on mobile, 3em is obnoxious so we decrease it */
font-weight: bold;
}
.h2,.sectionTitle{
font-size: 2.2em;
font-weight: bold;
/*break-after:avoid;*/
}
.section{
margin: 1em;
margin-left: 1vw;
margin-right: 1vw;
background-color: var(--lighter-color);
column-width: 18em;
column-rule: 1px black solid;
padding: 0.5em;
}
.categoryTitle{
font-size: 1.5em;
border-bottom: 2px solid gray;
text-align: center;
/*break-after:avoid;*/
}
.subcategoryTitle{
font-style: italic;
color: grey;
padding-top: 0.2em;
padding-left:1em;
font-size:1.1em;
}
.itemContainer{
break-inside: avoid;
}
.item{
padding:0.1em;
margin:0.2em;
break-inside: avoid;
border-bottom: 1px grey solid;
}
.item:hover{
background-color: var(--highlight-color);
}
.item.checked:hover{
background-color: #80DD80;
}
.checked{
background-color: lightgreen;
}
.check{
float: right;
}
input[type="number"]{
width: 4em;
}
.detailColumn{
float:right;
color:grey;
font-style:italic;
margin-right:0.5em;
}
.location{
text-decoration:underline;
}
/*
the "padding" should really be margin.
but because the map wants to be larger than the screen,
we have to use weird shit like position fixed and padding
to make it do the thing of "fill your container exactly but no more"
because the html body will expand downwards as much as needed.
and we don't want the map to expand down past screen.
I feel like there should be a way to do this but I can't figure it out right now
*/
.mapContainer{
position: fixed;
display: flex;
flex-direction: column;
padding:1em;
width: 100%;
height: 100%;
top: 0.5em;
left: 0;
box-sizing:border-box;/*we want the 1em of padding to be taken in to account in the 100% width/height*/
touch-action: none;/*we want touch to scroll, not select or anything.*/
}
.mapButtonBar{
margin: 0.5em;
}
.mapWrapper{
background-color: var(--lighter-color);
max-width:100%;
overflow: hidden;
}
h1{
margin: 0.5em;
}
/*mobile/thin window CSS*/
@media only screen and (orientation: portrait){
.topbar{
flex-wrap: wrap;
max-height: 4em;
}
.topbarSection{
flex:1 0 auto;
width:25vw;
}
.topbarSection:hover .topbarSublist{
display: none;/*no more crazy links for mobile*/
}
}