]> git.plutz.net Git - serve0/blob - templates/common.css.sh
b8c7ec4f9a903ee7c39c286ecce0f5d06eca36c8
[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 .panel.footer {
66   position: fixed;
67   min-height: 2em;
68   bottom: 0px;
69   border-style: solid none none none;
70 }
71
72 .panel .help { display: block;}
73 a.panel { font-weight: bold; }
74 a.clearsearch, a.show, .pagination_nav {
75   display: inline;
76   border: none;
77 }
78 .pagination_nav {
79   position: absolute;
80   right: 1em;
81   padding-top: .125em;
82 }
83
84 .footer a.panel {
85   border-style: solid none none none;
86   border-width: 1px;
87   margin-top: .5em;
88 }
89
90 #advfilter { display: none; }
91 #advfilter:target {
92   display: block;
93   position: absolute;
94   top: 0;
95 }
96
97 #advfilter .quicklinks,
98 #advfilter .filter,
99 #tagger .newtag,
100 #tagger input[type=submit],
101 #preferences > * {
102   display: inline-block;
103   vertical-align: top;
104   margin-top: 1em;
105 }
106
107 #advfilter .filter {
108   border: solid 1px #FFF;
109   border-radius: .25em;
110   padding: .25em .5em;
111 }
112 #advfilter > label.tabhandle {
113   text-align: right;
114   width: 4em;
115   margin-left: 4em;
116 }
117 #advfilter > .tabhandle + label { display: none; }
118 #advfilter > .tabhandle + label + .tabcontent { display: none; }
119 #advfilter > .tabhandle:checked + label + .tabcontent { display: inline-block; }
120 #advfilter > .tabhandle:checked + label + .tabcontent + .tabhandle + label{ display: inline-block; }
121 #advfilter > .tabhandle:checked + label + .tabcontent + .tabhandle:checked + label{ display: none; }
122
123 #advfilter .filter .tabcontainer {
124   position: relative;
125   width: 16em;
126 }
127 #advfilter .filter .category.tabhandle { display: block; }
128 #advfilter .filter input:checked + .category.tabhandle {
129   background: #FFF;
130   color: #000;
131 }
132 #advfilter .filter .category.tabcontent {
133   position: absolute;
134   top: 0; right: 0;
135   width: 10em;
136   height: 100%;
137   min-height: 4em;
138 }
139
140 #advfilter .filter.final {
141   width: 16em;
142   margin-left: 1em;
143 }
144
145 #advfilter .quicklinks {max-width: 100%;}
146 #advfilter .quicklinks * {
147   display: block;
148   word-wrap: break-word;
149 }
150
151 #thumblist {
152   width: 100%;
153   padding: .5em 0 3em 0;
154   text-align: center;
155 }
156
157 #thumblist .thumb {
158   display: inline-block;
159   text-align: left;
160   width: 90%;
161   padding: 0 .5em;
162   margin: auto;
163   margin-bottom: .75em;
164   vertical-align: top;
165   word-wrap: break-word;
166 }
167 @media (min-width: 480px){#thumblist .thumb{width: 49.5%;}}
168 @media (min-width: 640px){#thumblist .thumb{width: 33%;}}
169 @media (min-width: 1024px){#thumblist .thumb{width: 256px;}}
170
171 #thumblist .thumb img {
172   width: 100%;
173 }
174 #thumblist .thumb h2 {
175   font-size: 1em;
176   font-weight: normal;
177   margin: 0;
178 }
179 #thumblist .thumb a {
180   display: block;
181 }
182 #thumblist .thumb a.alt {
183   display: inline-block;
184   margin-top: .3em;
185 }
186 #thumblist input {
187   margin: .75em .5em;
188 }
189
190 #tagger,
191 #preferences {
192   display: none;
193 }
194 #tagger:target,
195 #preferences:target {
196   display: block;
197   z-index: 1;
198   max-height: 100%;
199   overflow-y: scroll;
200 }
201 #tagger .newtag select,
202 #tagger .newtag .label{
203   display: block;
204   width: 10em;
205 }
206
207 #preferences > fieldset {
208   border: solid 1px;
209   border-radius: .25em;
210 }
211 #preferences > input { display: block; }
212
213 #videoview a.panel {
214   position: absolute;
215   right: 1em;
216   width: auto;
217   border: none;
218 }
219 #videoview .video {
220   display: inline-block;
221   width: 60%;
222   vertical-align: top;
223 }
224 #videoview .video * {
225   display: block;
226 }
227 #videoview .videoinfo {
228   width: 39%;
229   margin-top: 2em;
230 }
231 #videoview .videoinfo h2 {
232   display: inline;
233
234 #videoview .videoinfo .meta:after {
235   content: "\A";
236   white-space: pre;
237 }
238 #videoview .videoinfo .label {
239   display: block;
240   margin-top: 1em;
241 }
242 #videoview .videoinfo .info.description {
243   display: block;
244   background-color: #DDF;
245 }
246 #videoview .videoinfo .edit {
247   width: 100%
248 }
249 EOF
250
251 # vi:set filetype=css: