]> git.plutz.net Git - serve0/blob - templates/common.css.sh
introduced page size cookie; globalised some input validation
[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: 50%;}}
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 { display: none; }
191 #tagger:target {
192   display: block;
193   z-index: 1;
194 }
195 #tagger .newtag select,
196 #tagger .newtag .label{
197   display: block;
198   width: 10em;
199 }
200
201 #preferences { display: none; }
202 #preferences:target {
203   display: block;
204   z-index: 1;
205 }
206 #preferences > fieldset {
207   border: solid 1px;
208   border-radius: .25em;
209 }
210 #preferences > input { display: block; }
211
212 #videoview a.panel {
213   position: absolute;
214   right: 1em;
215   width: auto;
216   border: none;
217 }
218 #videoview .video {
219   display: inline-block;
220   width: 60%;
221   vertical-align: top;
222 }
223 #videoview .video * {
224   display: block;
225 }
226 #videoview .videoinfo {
227   width: 39%;
228   margin-top: 2em;
229 }
230 #videoview .videoinfo h2 {
231   display: inline;
232
233 #videoview .videoinfo .meta:after {
234   content: "\A";
235   white-space: pre;
236 }
237 #videoview .videoinfo .label {
238   display: block;
239   margin-top: 1em;
240 }
241 #videoview .videoinfo .info.description {
242   display: block;
243   background-color: #DDF;
244 }
245 #videoview .videoinfo .edit {
246   width: 100%
247 }
248 EOF
249
250 # vi:set filetype=css: