]> git.plutz.net Git - rawnet/blob - rawnet.css
aca0303760fb05946b7d74017090d3612e131a22
[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   max-width: 40em;
101   margin: auto;
102 }
103
104 body main form input[name=name],
105 body main form input[name=email],
106 body main form textarea {
107   display: block;
108   width: 100%;
109   margin-bottom: .5em;
110 }
111
112 body.channels main .channel {
113   border: 1pt solid;
114   border-radius: 4pt;
115   padding: .5em;
116   margin-bottom: .5em;
117   height: 15em;
118   overflow: hidden;
119 }
120
121 body.channels main .channel > .description {
122   overflow: hidden;
123 }
124 body.channels main .channel > .description h2 {
125   margin: 0;
126 }
127
128 .channel > .description, .video.thumb, .newvideo {
129   display: inline-block;
130   vertical-align: top;
131   height: 14em;
132   width: 99%; margin: 0 .5%;
133   margin-bottom: 1em;
134 }
135
136 .newvideo button {
137   display: block;
138   margin: 3em auto;
139 }
140
141 .video.thumb:before, .newvideo:before {
142   content: '';
143   position: absolute;
144   top: 0; left: 0; right:0; height: 11em;
145   box-shadow: #000 .25em .25em .5em;
146 }
147
148 @media(min-width:  24em) { .channel > .description, .video.thumb, .newvideo { max-width: 49%; } }
149 @media(min-width:  44em) { .channel > .description, .video.thumb, .newvideo { max-width: 32%; } }
150 @media(min-width:  64em) { .channel > .description, .video.thumb, .newvideo { max-width: 24%; } }
151 @media(min-width:  84em) { .channel > .description, .video.thumb, .newvideo { max-width: 19%; } }
152 @media(min-width: 104em) { .channel > .description, .video.thumb, .newvideo { max-width: 19em; } }
153
154 .video.thumb > a {
155   display: block;
156   color: inherit;
157   font-style: inherit;
158   text-decoration: inherit;
159 }
160
161 .video.thumb figure {
162   position: absolute; top: 0;
163   height: 11em; width: 100%;
164   overflow: hidden;
165 }
166 .video.thumb figure img {
167   position: absolute; top: 0;
168   height: 11em; min-width: 1000%;
169   background-color: #888;
170   max-width: unset;
171   margin-left: 50%;
172   transform: translate(-05%, 0);
173   object-fit: cover;
174 }
175 .video.thumb:hover img {
176   animation: thumbscroll 8s steps(10, end) infinite;
177 }
178 @keyframes thumbscroll {
179   from { transform: translate(-05%, 0);}
180   to   { transform: translate(-105%, 0);}
181 }
182
183 .video.thumb h3 {
184   position: absolute;
185   top: 10.25em; width: 100%;
186   height: 3em;
187   font-weight: bolder;
188   text-align: center;
189   word-break: break-word;
190   overflow: hidden;
191 }
192
193 .video.thumb .duration {
194   position: absolute;
195   right: .375em; top: 10.625em;
196   font-size: .875em;
197   padding: 0 .25em;
198   background-color: #333;;
199   color: #EEE;
200   opacity: .75;
201 }
202
203 .video.thumb .description {
204   position: absolute;
205   left:0; right:0; bottom: 3.5em;
206   font-size: .875em;
207   max-height: 1em;
208   background-color: rgba(0,0,0,.75);
209   color: #EEE;
210   transition: height linear .25s;
211 }
212 .video.thumb .description:hover {
213   max-height: 8em;
214 }
215
216 .video.edit form > .delete {
217   text-align: right;
218 }
219 .video.edit form #delconfirm + label:after {
220   content: '\0A';
221   white-space: pre;
222 }
223 .video.edit form #delconfirm + label + button {
224   pointer-events: none;
225   color: #AAA;
226   border-color: #AAA;
227   left: -.75em;
228 }
229 .video.edit form #delconfirm:checked + label + button {
230   pointer-events: auto;
231   color: inherit;
232   border-color: inherit;
233   background-color: #FDD;
234 }
235