]> git.plutz.net Git - serve0/blob - templates/common.css.sh
css transitions for panels
[serve0] / templates / common.css.sh
1 # Copyright 2014, 2015 Paul Hänsch
2 #
3 # This file is part of Serve0
4
5 # Serve0 is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9
10 # Serve0 is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU Affero General Public License for more details.
14
15 # You should have received a copy of the GNU Affero General Public License
16 # along with Serve0  If not, see <http://www.gnu.org/licenses/>. 
17
18 cat <<EOF
19
20 * {
21   box-sizing: border-box;
22   -moz-box-sizing: border-box;
23 }
24
25 body {
26   padding: 0;
27   margin: 0;
28   background-color: #000;
29   color: #DDD;
30 }
31 a { color: #EEE; }
32 legend, label, .label { font-weight: bold; }
33
34 input.tabhandle { display: none; }
35 .tabcontent { display: none; }
36 input.tabhandle:checked + label.tabhandle + .tabcontent { display: inline-block; }
37 input.tabhandle:checked + .tabcontent { display: inline-block; }
38
39 textarea {
40   display: block;
41   width: 100%;
42 }
43
44 .info {
45   margin: 0;
46   padding: 0 .25em;
47   background-color: #BBD;
48   color: #000;
49   border: #000 1px solid;
50 }
51 .info.tag {
52   line-height: 1.6em;
53   background-color: #DBB;
54 }
55
56 .panel {
57   display: block;
58   width: 100%;
59   margin: 0;
60   padding: .25em 1em;
61   background-color: #333;
62   border-width: 1px;
63   border-style: none none solid none;
64 }
65
66 #advfilter {
67   position: absolute;
68   top: 0;
69 }
70 #preferences,
71 #tagger,
72 #foot {
73   position: fixed;
74   bottom: 0px;
75   min-height: 2em;
76   border-style: solid none none none;
77 }
78
79 #advfilter,
80 #tagger,
81 #preferences {
82   z-index: 1;
83   overflow: hidden;
84   min-height: 0; max-height: 0;
85   padding-top: 0; padding-bottom: 0;
86   transition: all .3s linear;
87 }
88 #advfilter:target,
89 #tagger:target,
90 #preferences:target {
91   max-height: 100%;
92   overflow-y: scroll;
93 }
94
95 .panel .help { display: block;}
96 a.panel { font-weight: bold; }
97
98 #preferences a.panel,
99 #tagger a.panel {
100   border-style: solid none none none;
101   border-width: 1px;
102   margin-top: .5em;
103 }
104
105 #search a.toggle,
106 #foot a.toggle,
107 a.clearsearch,
108 .pagination_nav {
109   display: inline;
110   border: none;
111 }
112 .pagination_nav {
113   position: absolute;
114   right: 1em;
115   padding-top: .125em;
116 }
117
118 #advfilter .quicklinks,
119 #advfilter .filter,
120 #tagger .newtag,
121 #tagger input[type=submit],
122 #preferences > * {
123   display: inline-block;
124   vertical-align: top;
125   margin-top: 1em;
126 }
127
128 #advfilter .filter {
129   border: solid 1px #FFF;
130   border-radius: .25em;
131   padding: .25em .5em;
132 }
133 #advfilter > label.tabhandle {
134   text-align: right;
135   width: 4em;
136   margin-left: 4em;
137 }
138 #advfilter > .tabhandle + label { display: none; }
139 #advfilter > .tabhandle + label + .tabcontent { display: none; }
140 #advfilter > .tabhandle:checked + label + .tabcontent { display: inline-block; }
141 #advfilter > .tabhandle:checked + label + .tabcontent + .tabhandle + label{ display: inline-block; }
142 #advfilter > .tabhandle:checked + label + .tabcontent + .tabhandle:checked + label{ display: none; }
143
144 #advfilter .filter .tabcontainer {
145   position: relative;
146   width: 16em;
147 }
148 #advfilter .filter .category.tabhandle { display: block; }
149 #advfilter .filter input:checked + .category.tabhandle {
150   background: #FFF;
151   color: #000;
152 }
153 #advfilter .filter .category.tabcontent {
154   position: absolute;
155   top: 0; right: 0;
156   width: 10em;
157   height: 100%;
158   min-height: 4em;
159 }
160
161 #advfilter .filter.final {
162   width: 16em;
163   margin-left: 1em;
164 }
165
166 #advfilter .quicklinks {max-width: 100%;}
167 #advfilter .quicklinks * {
168   display: block;
169   word-wrap: break-word;
170 }
171
172 #thumblist {
173   width: 100%;
174   padding: .5em 0 3em 0;
175   text-align: center;
176 }
177
178 #thumblist .thumb {
179   display: inline-block;
180   text-align: left;
181   width: 90%;
182   padding: 0 .5em;
183   margin: auto;
184   margin-bottom: .75em;
185   vertical-align: top;
186   word-wrap: break-word;
187 }
188 @media (min-width: 480px){#thumblist .thumb{width: 49.5%;}}
189 @media (min-width: 640px){#thumblist .thumb{width: 33%;}}
190 @media (min-width: 1024px){#thumblist .thumb{width: 256px;}}
191
192 #thumblist .thumb img {
193   width: 100%;
194 }
195 #thumblist .thumb h2 {
196   font-size: 1em;
197   font-weight: normal;
198   margin: 0;
199 }
200 #thumblist .thumb a {
201   display: block;
202 }
203 #thumblist .thumb a.alt {
204   display: inline-block;
205   margin-top: .3em;
206 }
207 #thumblist input {
208   margin: .75em .5em;
209 }
210
211 #tagger .newtag select,
212 #tagger .newtag .label{
213   display: block;
214   width: 10em;
215 }
216
217 #preferences > fieldset {
218   border: solid 1px;
219   border-radius: .25em;
220 }
221 #preferences > input { display: block; }
222
223 #videoview a.panel {
224   position: absolute;
225   right: 1em;
226   width: auto;
227   border: none;
228 }
229 #videoview .video {
230   display: inline-block;
231   width: 60%;
232   vertical-align: top;
233 }
234 #videoview .video * {
235   display: block;
236 }
237 #videoview .videoinfo {
238   width: 39%;
239   margin-top: 2em;
240 }
241 #videoview .videoinfo h2 {
242   display: inline;
243
244 #videoview .videoinfo .meta:after {
245   content: "\A";
246   white-space: pre;
247 }
248 #videoview .videoinfo .label {
249   display: block;
250   margin-top: 1em;
251 }
252 #videoview .videoinfo .info.description {
253   display: block;
254   background-color: #DDF;
255 }
256 #videoview .videoinfo .edit {
257   width: 100%
258 }
259 EOF
260
261 # vi:set filetype=css: