]> git.plutz.net Git - rawnet/blob - rawnet.css
5fa017b12fd6dadb14824cb9f3856e89395e622c
[rawnet] / rawnet.css
1 body {
2   background-position: right;
3   background-size: 4pt 4pt;
4   background-image: /* #6AF #6FF */
5     linear-gradient( 0deg, transparent 25%, rgba(128,128,128,.5) 25% 50%, transparent 50% 75%, rgba(192,192,192,.5) 75%),
6     linear-gradient(90deg, transparent 25%, rgba(128,128,128,.5) 25% 50%, transparent 50% 75%, rgba(192,192,192,.5) 75%);
7 }
8
9 header {
10   background: inherit;
11   padding: .25em 12em;
12   text-align: center;
13   box-shadow: #000 .25em .25em .25em;
14   z-index: 1;
15 }
16
17 header > * { background: inherit; }
18 header:before,
19 header > *:before {
20   content: ''; position: absolute;
21   top: 0; right: 0; bottom: 0; left: 0;
22   background-color: rgba(0,0,0,.75);
23 }
24
25 header a { color: #8CE; }
26
27 header #user_login {
28   position: absolute;
29   right: 0; top: 31pt; max-height: 0;
30   width: 12em;
31   padding: 0 .5em;
32   text-align: center;
33   box-shadow: inherit;
34   transition: max-height linear .125s;
35 }
36
37 #user_login > * {
38   position: relative;
39   top: -2.5em;
40 }
41 #user_login > *:last-child {
42   margin-bottom: -2em;
43 }
44 header #user_login:hover {
45   max-height: 10em;
46 }
47 header #user_login > p {
48   color: #EEE;
49   font-size: .875em;
50   line-height: 1.125em;
51 }
52 header #user_login > p span {
53   display: block;
54   font-size: initial;
55   line-height: 1.375em;
56 }
57 header #user_login label {
58   top: -1.5em;
59   font-size: 1.25em;
60   text-decoration: underline;
61   padding-bottom: 1em;
62   color: #EEE;
63   text-align: right;
64 }
65 header #user_login > * {
66   display: none;
67 }
68 header #user_login > :first-child,
69 header #user_login:hover > * {
70   display: block;
71   margin-left: auto;
72   margin-right: auto;
73 }
74 header #user_login:hover > a[href$="/register/"] {
75   text-align: right;
76   margin-top: .75em;
77 }
78
79 main {
80   background-color: rgba(255,255,255,.75);
81   margin: 1em; padding: 1em;
82   box-shadow: #000 .125em .125em 1em;
83 }
84
85 main nav {
86   font-size: .875em;
87   margin-top: -1em;
88 }
89 main nav > * {
90   padding: .125em .5em;
91   font-style: italic;
92   text-decoration: underline;
93 }
94
95 body.channel main h1.name {
96   text-align: center;
97 }
98 body main .description,
99 body main form,
100 body main iframe {
101   display: block;
102   max-width: 40em;
103   margin: auto;
104 }
105
106 body main form input[name=name],
107 body main form input[name=email],
108 body main form textarea {
109   display: block;
110   width: 100%;
111   margin-bottom: .5em;
112 }
113
114 body.channels main .channel {
115   border: 1pt solid;
116   border-radius: 4pt;
117   padding: .5em;
118   margin-bottom: .5em;
119   height: 15em;
120   overflow: hidden;
121 }
122
123 body.channels main .channel > .description {
124   overflow: hidden;
125 }
126 body.channels main .channel > .description h2 {
127   margin: 0;
128 }
129
130 .channel > .description, .video.thumb, .newvideo {
131   display: inline-block;
132   vertical-align: top;
133   height: 14em;
134   width: 99%; margin: 0 .5%;
135   margin-bottom: 1em;
136 }
137
138 .newvideo button {
139   display: block;
140   margin: 3em auto;
141 }
142
143 .video.thumb:before, .newvideo:before {
144   content: '';
145   position: absolute;
146   top: 0; left: 0; right:0; height: 11em;
147   box-shadow: #000 .25em .25em .5em;
148 }
149
150 @media(min-width:  24em) { .channel > .description, .video.thumb, .newvideo { max-width: 49%; } }
151 @media(min-width:  44em) { .channel > .description, .video.thumb, .newvideo { max-width: 32%; } }
152 @media(min-width:  64em) { .channel > .description, .video.thumb, .newvideo { max-width: 24%; } }
153 @media(min-width:  84em) { .channel > .description, .video.thumb, .newvideo { max-width: 19%; } }
154 @media(min-width: 104em) { .channel > .description, .video.thumb, .newvideo { max-width: 19em; } }
155
156 .video.thumb > a {
157   display: block;
158   color: inherit;
159   font-style: inherit;
160   text-decoration: inherit;
161 }
162
163 .video.thumb figure {
164   position: absolute; top: 0;
165   height: 11em; width: 100%;
166   overflow: hidden;
167 }
168 .video.thumb figure img {
169   position: absolute; top: 0;
170   height: 11em; min-width: 1000%;
171   background-color: #888;
172   max-width: unset;
173   margin-left: 50%;
174   transform: translate(-05%, 0);
175   object-fit: cover;
176 }
177 .video.thumb:hover img {
178   animation: thumbscroll 8s steps(10, end) infinite;
179 }
180 @keyframes thumbscroll {
181   from { transform: translate(-05%, 0);}
182   to   { transform: translate(-105%, 0);}
183 }
184
185 .video.thumb h3 {
186   position: absolute;
187   top: 10.25em; width: 100%;
188   height: 3em;
189   font-weight: bolder;
190   text-align: center;
191   word-break: break-word;
192   overflow: hidden;
193 }
194
195 .video.thumb .duration {
196   position: absolute;
197   right: .375em; top: 10.625em;
198   font-size: .875em;
199   padding: 0 .25em;
200   background-color: #333;;
201   color: #EEE;
202   opacity: .75;
203 }
204
205 .video.thumb .description {
206   position: absolute;
207   left:0; right:0; bottom: 3.5em;
208   font-size: .875em;
209   max-height: 1em;
210   background-color: rgba(0,0,0,.75);
211   color: #EEE;
212   transition: height linear .25s;
213 }
214 .video.thumb .description:hover {
215   max-height: 8em;
216 }
217
218 body.video.edit form > .delete {
219   text-align: right;
220 }
221 body.video.edit form #delconfirm + label:after {
222   content: '\0A';
223   white-space: pre;
224 }
225 body.video.edit form #delconfirm + label + button {
226   pointer-events: none;
227   color: #AAA;
228   border-color: #AAA;
229   left: -.75em;
230 }
231 body.video.edit form #delconfirm:checked + label + button {
232   pointer-events: auto;
233   color: inherit;
234   border-color: inherit;
235   background-color: #FDD;
236 }
237
238 body.video video {
239   display: block;
240   margin: 0 auto;
241   max-height: 80vh;
242 }
243
244 #uploadprogress {
245   text-align: center;
246   background: transparent;
247   margin: 0;
248 }
249 #uploadprogress .progress {
250   display: block;
251   position: absolute;
252   width: 99%; width: calc(100% - 2pt);
253   background-color: #FFF;
254   border: 1pt solid;
255   border-radius: 4pt;
256   height: 1.25em;
257 }
258 #uploadprogress .progress .bar {
259   display: block;
260   position: absolute;
261   left: 0; top: 0; bottom: 0;
262   background-color: #666;
263 }
264 #uploadprogress .progress .count {
265   display: block;
266   position: absolute;
267   left: 0; top: 0; right: 0; bottom: 0;
268   line-height: 1.375em;
269 }