]> git.plutz.net Git - serve0/blob - style.css
Merge commit '8be698d02f663e3d88ef4c48adb00707d75eeaa4'
[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   overflow: hidden;
59 }
60
61 .itemlist .list img {
62   -width: 1000%; height: 11em;
63   max-width: unset;
64   background-color: #111;
65   object-fit: cover;
66   transform: translate(-05%, 0);
67   margin-left: 50%;
68 }
69 .itemlist .list:hover img {
70   animation: thumbscroll 8s steps(10, end) infinite;
71 }
72 @keyframes thumbscroll {
73   from { transform: translate(-05%, 0);}
74   to   { transform: translate(-105%, 0);}
75 }
76
77 .itemlist .list label {
78   display: block;
79   font-weight: bolder;
80   word-break: break-word;
81 }
82 .itemlist .list .time,
83 .itemlist .list .dim {
84   position: absolute; top: 9.75em;
85   background-color: rgba(0,0,0,.5);
86   padding: .125em .25em;
87 }
88 .itemlist .list .time { right: 0; }
89 .itemlist .list .dim { left: 0; }
90 .itemlist .list input[type=checkbox] { display: none; }
91 .itemlist .list .tag,
92 .itemlist .list input[type=checkbox] + label {
93   display: inline-block;
94   background-color: #333;
95   margin-top: .125em;
96   margin-left: 0;
97   padding: 0 .25em;
98   border-radius: 1pt;
99 }
100 .itemlist .list input[type=checkbox]:checked + label {
101   background-color: #383;
102 }
103
104
105 /* ====== PAGINATION LIST ====== */
106
107 .pagination {
108   display: block;
109   font-size: 1.25em;
110   max-width: 98%;
111   margin: 0 auto;
112   padding: .25em 0;
113   background-color: #333;
114   border-radius: 2pt;
115 }
116 .pagination a {
117   display: inline-block;
118   padding: 0 .5em;
119   margin: 0 .5em;
120   border-radius: 2pt;
121 }
122 .pagination a.current {
123   background-color: #BBB;
124 }
125
126 /* ====== BOOKMARK PANEL ====== */
127
128 #bookmarks:target,
129 #prefs:target {
130   display: block; position: fixed;
131   top: 50%; left: 50%;
132   transform: translate( -50%, -50% );
133   width: 40em; max-width: 90%;
134   height: 30em; max-height: 90vh;
135   background-color: #333;
136   padding: 0 .5em;
137   z-index: 1;
138   box-shadow: .25em .25em .5em #000;
139   overflow-y: auto;
140 }
141
142 #bookmarks label {
143   display: block;
144   font-weight: bold;
145   font-size: 1.125em;
146   margin-left: 0;
147   margin-top: .75em;
148   word-break: break-word;
149 }
150
151 /* ====== ADVSEARCH / FILTER PANEL ====== */
152
153 #advsearch:target {
154   display: block; position: fixed;
155   top: 0; width: 100%;
156   height: 30em; max-height: 90vh;
157   background-color: #333;
158   padding: 0 .5em;
159   z-index: 1;
160   box-shadow: .25em .25em .5em #000;
161   overflow-y: auto;
162 }
163
164 -#advsearch { text-align: center; }
165 -#advsearch > * { text-align: left; }
166
167 #advsearch .help {
168   width: 95%;
169   margin: 1em auto; padding: 0 .5em;
170   background-color: #444;
171   white-space: pre-line;
172 }
173
174 #advsearch input.and + label {
175   display: inline-block;
176   vertical-align: top;
177   font-weight: bold;
178 }
179 #advsearch fieldset.select {
180   display: inline-block;
181   width: 99%;
182   margin: 0 .5%; margin-bottom: .75em; padding: 0 .375em;
183   box-shadow: .125em .125em .25em #000;
184 }
185
186 #advsearch fieldset.select > label.head {
187   display: none;
188   width: 40%;
189   text-align: right;
190 }
191 #advsearch fieldset.select > input.cat { display: none; }
192 #advsearch fieldset.select > input.cat + label + .catselect { display: none; }
193 #advsearch fieldset.select > input.cat + label {
194   display: block;
195   width: 40%;
196   margin: 0; padding: 0 .5em;
197   text-align: right;
198 }
199 #advsearch fieldset.select > input.cat:checked + label { background-color: #444; }
200 #advsearch fieldset.select > input.cat:checked + label + .catselect {
201   display: block; position: absolute;
202   top: 1.5em; bottom: 0; right: 0;
203   width: 60%;
204   padding: 0 .25em;
205   background-color: #444;
206   overflow-y: auto;
207 }
208 #advsearch fieldset.select > input.cat + label + .catselect > * {
209   display: block;
210   white-space: pre;
211 }
212
213 #advsearch input.and { display: none; }
214 #advsearch input.and + label { display: none; }
215 #advsearch input.and + label + fieldset { display: none; }
216 #advsearch input.and:checked + label + fieldset,
217 #advsearch input.and:first-of-type + label + fieldset { display: inline-block; }
218 #advsearch input.and:checked + label + fieldset + input + label,
219 #advsearch input.and:first-of-type + label + fieldset + input + label { display: inline-block; }
220 #advsearch input.and:checked + label + fieldset + input:checked + label { display: none; }
221 #advsearch input.and:first-of-type + label + fieldset + input:checked + label { display: none; }
222
223
224 /* ====== MULTITAG DIALOG ====== */
225
226 #multitag:target {
227   display: block; position: fixed;
228   bottom: 0; left: 0; width: 100%;
229   height: 30em; max-height: 90vh;
230   background-color: #333;
231   padding: 0 .5em;
232   z-index: 1;
233   box-shadow: .25em .25em .5em #000;
234   overflow-y: auto;
235 }
236
237 -#multitag { text-align: center; }
238 -#multitag > * { text-align: left; }
239
240 #multitag fieldset {
241   display: inline-block;
242   width: 99%;
243   margin: 0 .5%; margin-top: 1em;
244 }
245
246 #multitag fieldset select {
247   width: 100%; height: 10em;
248 }
249 #multitag fieldset .tagselect {
250   height: 10em;
251   background-color: #444;
252   overflow-y: auto;
253 }
254 #multitag fieldset .tagselect > label {
255   display: block;
256   white-space: pre;
257 }
258
259
260 /* ====== VIEW PAGE ====== */
261
262 body#view video {
263   display: block;
264   max-height: 80vh;
265   margin: 0 auto;
266 }
267
268 body#view .tag {
269   display: inline-block;
270   background-color: #333;
271   margin-top: .125em;
272   margin-left: 0;
273   padding: 0 .25em;
274   border-radius: 1pt;
275 }
276
277
278 /* ====== SCALE BLOCK ELEMENTS ====== */
279
280 @media(min-width:  20em) { .itemlist .list, #advsearch fieldset.select, #multitag fieldset { max-width: 49%; } }
281 @media(min-width:  40em) { .itemlist .list, #advsearch fieldset.select, #multitag fieldset { max-width: 32%; } }
282 @media(min-width:  60em) { .itemlist .list, #advsearch fieldset.select, #multitag fieldset { max-width: 24%; } }
283 @media(min-width:  80em) { .itemlist .list, #advsearch fieldset.select, #multitag fieldset { max-width: 19%; } }
284 @media(min-width: 100em) { .itemlist .list, #advsearch fieldset.select, #multitag fieldset { max-width: 19em; } }