]> git.plutz.net Git - serve0/blob - templates/videoview.css.sh
cb45dc2ac9708e8b1863cf6a465d990a2ae3321b
[serve0] / templates / videoview.css.sh
1 # Copyright 2014 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 {
32   color: #EEE;
33 }
34
35 label, .label {
36   font-weight: bold;
37 }
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 a.panel {
66   font-weight: bold;
67 }
68 a.clearsearch, a.advanced, a.tagger, .pagination_nav {
69   display: inline;
70   border: none;
71 }
72 .pagination_nav {
73   position: absolute;
74   right: 1em;
75   padding-top: .125em;
76 }
77
78 .panel .filter, .panel .quicklinks,
79 .footer .newtag, .footer input[type=submit] {
80   display: inline-block;
81   vertical-align: top;
82   margin-top: 2em;
83 }
84 .panel .help {
85   display: block;
86 }
87 .panel .filter select, .panel .filter .help,
88 .footer .newtag select, .footer .newtag .label{
89   display: block;
90   width: 10em;
91 }
92 .panel .filter .help.conjunction {
93   font-weight: bold;
94 }
95 .panel .filter .label.category {
96   display: block;
97   margin-top: 1em;
98 }
99 .panel .quicklinks * {
100   display: block
101 }
102
103 #thumblist {
104   padding: .5em 0 3em 0;
105   text-align: center;
106 }
107
108 #thumblist .thumb {
109   display: inline-block;
110   text-align: left;
111   width: 90%;
112   padding: 0 .5em;
113   margin: auto;
114   vertical-align: top;
115   word-wrap: break-word;
116 }
117 @media (min-width: 480px){#thumblist .thumb{width: 50%;}}
118 @media (min-width: 640px){#thumblist .thumb{width: 33%;}}
119 @media (min-width: 1024px){#thumblist .thumb{width: 256px;}}
120
121 #thumblist .thumb img {
122   width: 100%;
123 }
124 #thumblist .thumb a {
125   display: block;
126 }
127 #thumblist .thumb a.fake-mp4 {
128   margin-top: .5em;
129 }
130 #thumblist .thumb a.alt {
131   display: inline-block;
132   margin-top: .3em;
133 }
134
135 .footer {
136   position: fixed;
137   bottom: 0px;
138   border-style: solid none none none;
139 }
140
141 #videoview a.panel {
142   position: absolute;
143   right: 1em;
144   width: auto;
145   border: none;
146 }
147 #videoview .video {
148   display: inline-block;
149   width: 60%;
150   vertical-align: top;
151 }
152 #videoview .video * {
153   display: block;
154 }
155 #videoview .videoinfo {
156   display: inline-block;
157   width: 39%;
158   margin-top: 2em;
159 }
160 #videoview .videoinfo h2 {
161   display: inline;
162
163 #videoview .videoinfo a.meta:after {
164   content: "\A";
165   white-space: pre;
166 }
167 #videoview .videoinfo .label {
168   display: block;
169   margin-top: 1em;
170 }
171 #videoview .videoinfo .info.description {
172   display: block;
173   background-color: #DDF;
174 }
175 #videoview .videoinfo .edit {
176   width: 100%
177 }
178 EOF
179
180 # vi:set filetype=css: