]> git.plutz.net Git - serve0/blob - style.css
always display first filter box
[serve0] / style.css
1 body {
2   color: #EEE;
3   background-color: #000;
4   padding-bottom: 2.5em;
5 }
6
7 /* ====== TOP CONTROL BAR ====== */
8
9 #navigation {
10   text-align: center;
11   margin-bottom: 1em; padding: 0 2em;
12   background-color: #333;
13   box-shadow: .125em .125em .25em #000;
14 }
15 #navigation > a {
16   position: absolute; bottom: .25em;
17   padding: 0 .125em;
18   font-size: 1.5em;
19   text-decoration: none;
20 }
21 #navigation > a[href="#bookmarks"] { left: 0; }
22 #navigation > a[href="#prefs"] { right: 0; }
23
24 #bookmarks, #advsearch, #prefs, #multitag {
25   -display: none;
26   height: 0;
27   overflow: hidden;
28 }
29
30 #editing {
31   position: fixed;
32   bottom: 0; width: 100%;
33   padding: 0 .5em;
34   background-color: #333;
35 }
36
37 :target a[href="#"] {
38   position: absolute;
39   top: 0; right: 0;
40   font-size: 1.5em;
41   font-weight: bold;
42   text-decoration: none;
43   padding: 0 .25em;
44   z-index: 1;
45 }
46
47 /* ====== MAIN LIST VIEW ====== */
48
49 .itemlist { text-align: center; }
50 .itemlist > * { text-align: left; }
51 .itemlist .list {
52   display: inline-block;
53   vertical-align: top;
54   width: 99%;
55   -padding: 0 .25em;
56   margin: 0 .5%;
57   margin-bottom: 1em;
58 }
59 @media(min-width:  20em) { .itemlist .list { max-width: 49%; } }
60 @media(min-width:  40em) { .itemlist .list { max-width: 32%; } }
61 @media(min-width:  60em) { .itemlist .list { max-width: 24%; } }
62 @media(min-width:  80em) { .itemlist .list { max-width: 19%; } }
63 @media(min-width: 100em) { .itemlist .list { max-width: 19em; } }
64
65 .itemlist .list img {
66   width: 100%; height: 11em;
67   background-color: #111;
68   object-fit: contain;
69 }
70 .itemlist .list label {
71   display: block;
72   font-weight: bolder;
73   word-break: break-word;
74 }
75 .itemlist .list .time,
76 .itemlist .list .dim {
77   position: absolute; top: 9.75em;
78   background-color: rgba(0,0,0,.5);
79   padding: .125em .25em;
80 }
81 .itemlist .list .time { right: 0; }
82 .itemlist .list .dim { left: 0; }
83 .itemlist .list input[type=checkbox] { display: none; }
84 .itemlist .list .tag,
85 .itemlist .list input[type=checkbox] + label {
86   display: inline-block;
87   background-color: #333;
88   margin-top: .125em;
89   margin-left: 0;
90   padding: 0 .25em;
91   border-radius: 1pt;
92 }
93 .itemlist .list input[type=checkbox]:checked + label {
94   background-color: #383;
95 }
96
97
98 /* ====== PAGINATION LIST ====== */
99
100 .pagination {
101   display: block;
102   font-size: 1.25em;
103   max-width: 98%;
104   margin: 0 auto;
105   padding: .25em 0;
106   background-color: #333;
107   border-radius: 2pt;
108 }
109 .pagination a {
110   display: inline-block;
111   padding: 0 .5em;
112   margin: 0 .5em;
113   border-radius: 2pt;
114 }
115 .pagination a.current {
116   background-color: #BBB;
117 }
118
119 /* ====== BOOKMARK PANEL ====== */
120
121 #bookmarks:target,
122 #prefs:target {
123   display: block; position: fixed;
124   top: 50%; left: 50%;
125   transform: translate( -50%, -50% );
126   width: 40em; max-width: 90%;
127   height: 30em; max-height: 90vh;
128   background-color: #333;
129   padding: 0 .5em;
130   z-index: 1;
131   box-shadow: .25em .25em .5em #000;
132   overflow-y: auto;
133 }
134
135 #bookmarks label {
136   display: block;
137   font-weight: bold;
138   font-size: 1.125em;
139   margin-left: 0;
140   margin-top: .75em;
141   word-break: break-word;
142 }
143
144 /* ====== ADVSEARCH PANEL ====== */
145
146 #advsearch:target {
147   display: block; position: fixed;
148   top: 0; width: 100%;
149   height: 30em; max-height: 90vh;
150   background-color: #333;
151   padding: 0 .5em;
152   z-index: 1;
153   box-shadow: .25em .25em .5em #000;
154   overflow-y: auto;
155 }
156
157 -#advsearch { text-align: center; }
158 -#advsearch > * { text-align: left; }
159
160 #advsearch .help {
161   width: 95%;
162   margin: 1em auto; padding: 0 .5em;
163   background-color: #444;
164   white-space: pre-line;
165 }
166
167 #advsearch input.and + label {
168   display: inline-block;
169   vertical-align: top;
170   font-weight: bold;
171 }
172 #advsearch fieldset.select {
173   display: inline-block;
174   width: 18em; max-width: 100%;
175   margin: 0 .5em; margin-bottom: .75em; padding: 0 .375em;
176   box-shadow: .125em .125em .25em #000;
177 }
178 #advsearch fieldset.select > label.head {
179   display: none;
180   width: 40%;
181   text-align: right;
182 }
183 #advsearch fieldset.select > input.cat { display: none; }
184 #advsearch fieldset.select > input.cat + label + .catselect { display: none; }
185 #advsearch fieldset.select > input.cat + label {
186   display: block;
187   width: 40%;
188   margin: 0; padding: 0 .5em;
189   text-align: right;
190 }
191 #advsearch fieldset.select > input.cat:checked + label { background-color: #444; }
192 #advsearch fieldset.select > input.cat:checked + label + .catselect {
193   display: block; position: absolute;
194   top: 1.5em; bottom: 0; right: 0;
195   width: 60%;
196   padding: 0 .25em;
197   background-color: #444;
198   overflow-y: auto;
199 }
200 #advsearch fieldset.select > input.cat + label + .catselect > * {
201   display: block;
202   white-space: pre;
203 }
204
205 #advsearch input.and { display: none; }
206 #advsearch input.and + label { display: none; }
207 #advsearch input.and + label + fieldset { display: none; }
208 #advsearch input.and:checked + label + fieldset,
209 #advsearch input.and:first-of-type + label + fieldset { display: inline-block; }
210 #advsearch input.and:checked + label + fieldset + input + label,
211 #advsearch input.and:first-of-type + label + fieldset + input + label { display: inline-block; }
212 #advsearch input.and:checked + label + fieldset + input:checked + label { display: none; }
213 #advsearch input.and:first-of-type + label + fieldset + input:checked + label { display: none; }
214
215
216 /* ====== MULTITAG DIALOG ====== */
217
218 #multitag:target {
219   display: block; position: fixed;
220   bottom: 0; left: 0; width: 100%;
221   height: 30em; max-height: 90vh;
222   background-color: #333;
223   padding: 0 .5em;
224   z-index: 1;
225   box-shadow: .25em .25em .5em #000;
226   overflow-y: auto;
227 }
228
229 -#multitag { text-align: center; }
230 -#multitag > * { text-align: left; }
231
232 #multitag fieldset {
233   display: inline-block;
234   width: 99%;
235   margin: 0 .5%; margin-top: 1em;
236 }
237 @media(min-width:  20em) { #multitag fieldset { max-width: 49%; } }
238 @media(min-width:  40em) { #multitag fieldset { max-width: 32%; } }
239 @media(min-width:  60em) { #multitag fieldset { max-width: 24%; } }
240 @media(min-width:  80em) { #multitag fieldset { max-width: 19%; } }
241 @media(min-width: 100em) { #multitag fieldset { max-width: 19em; } }
242
243 #multitag fieldset select {
244   width: 100%; height: 10em;
245 }
246 #multitag fieldset .tagselect {
247   height: 10em;
248   background-color: #444;
249   overflow-y: auto;
250 }
251 #multitag fieldset .tagselect > label {
252   display: block;
253   white-space: pre;
254 }
255
256
257 /* ====== VIEW PAGE ====== */
258
259 body#view video {
260   display: block;
261   max-height: 80vh;
262   margin: 0 auto;
263 }
264
265 body#view .tag {
266   display: inline-block;
267   background-color: #333;
268   margin-top: .125em;
269   margin-left: 0;
270   padding: 0 .25em;
271   border-radius: 1pt;
272 }