blob: 0b20beb9c62943e501df9090f065febda0d2f06a [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001body::before {
2 background-size: cover;
3 background-attachment: fixed;
4 content: '';
5 will-change: transform;
6 z-index: -1;
7 left: 0;
8 right: 0;
9 bottom: 0;
10 top: 0;
11 position: fixed;
12}
13@media (max-width: 512px) and (-webkit-min-device-pixel-ratio: 1.5),
14 (max-width: 512px) and (min-resolution: 1.5dppx),
15 (max-width: 1024px) and (-webkit-max-device-pixel-ratio: 1.5),
16 (max-width: 1024px) and (max-resolution: 1.5dppx) {
17 body::before {
18 background-image: url('images/bg_1024.jpg');
19 }
20}
21@media (min-width: 513px) and (max-width: 1024px) and (-webkit-min-device-pixel-ratio: 1.5),
22 (min-width: 513px) and (max-width: 1024px) and (min-resolution: 1.5dppx),
23 (min-width: 1025px) and (max-width: 2048px) and (-webkit-max-device-pixel-ratio: 1.5),
24 (min-width: 1025px) and (max-width: 2048px) and (max-resolution: 1.5dppx) {
25 body::before {
26 background-image: url('images/bg_2048.jpg');
27 }
28}
29@media (min-width: 1025px) and (-webkit-min-device-pixel-ratio: 1.5),
30 (min-width: 1025px) and (min-resolution: 1.5dppx),
31 (min-width: 2049px) and (-webkit-max-device-pixel-ratio: 1.5),
32 (min-width: 2049px) and (max-resolution: 1.5dppx) {
33 body::before {
34 background-image: url('images/bg_2880.jpg');
35 }
36}
37body .demo-blog {
38 font-family: 'Roboto', 'Helvetica', sans-serif;
39}
40
41.demo-blog .demo-blog__posts {
42 max-width: 900px;
43 padding: 0;
44 display: -webkit-flex;
45 display: -ms-flexbox;
46 display: flex;
47 width: 100%;
48 margin: 0 auto;
49 -webkit-flex-shrink: 0;
50 -ms-flex-negative: 0;
51 flex-shrink: 0;
52}
53
54.demo-blog.mdl-layout .mdl-layout__content {
55 padding-top: 230px;
56 position: relative;
57 -webkit-overflow-scrolling: touch;
58}
59.demo-blog .mdl-card {
60 display: -webkit-flex;
61 display: -ms-flexbox;
62 display: flex;
63 -webkit-flex-direction: column;
64 -ms-flex-direction: column;
65 flex-direction: column;
66 -webkit-align-items: stretch;
67 -ms-flex-align: stretch;
68 align-items: stretch;
69 min-height: 360px;
70}
71.demo-blog .mdl-card__title {
72 padding: 16px;
73 -webkit-flex-grow: 1;
74 -ms-flex-positive: 1;
75 flex-grow: 1;
76}
77.demo-blog .mdl-card__media {
78 box-sizing: border-box;
79 background-size: cover;
80 padding: 24px;
81 display: -webkit-flex;
82 display: -ms-flexbox;
83 display: flex;
84 -webkit-flex-grow: 1;
85 -ms-flex-positive: 1;
86 flex-grow: 1;
87 -webkit-flex-direction: row;
88 -ms-flex-direction: row;
89 flex-direction: row;
90 -webkit-align-items: flex-end;
91 -ms-flex-align: end;
92 align-items: flex-end;
93 cursor: pointer;
94}
95.demo-blog .mdl-card__media a,
96.demo-blog .mdl-card__title a {
97 color: inherit;
98}
99.demo-blog .mdl-card__supporting-text {
100 width: 100%;
101 padding: 16px;
102 min-height: 64px;
103 display: -webkit-flex;
104 display: -ms-flexbox;
105 display: flex;
106 -webkit-align-items: center;
107 -ms-flex-align: center;
108 align-items: center;
109}
110.demo-blog .mdl-card__supporting-text strong {
111 font-weight: 400;
112}
113.demo-blog .mdl-card__media ~ .mdl-card__supporting-text {
114 min-height: 64px;
115}
116.demo-blog .mdl-card__supporting-text:not(:last-child) {
117 box-sizing: border-box;
118 min-height: 76px;
119}
120.demo-blog:not(.demo-blog--blogpost) .mdl-card__supporting-text ~ .mdl-card__supporting-text {
121 border-top: 1px solid rgba(0,0,0,0.1);
122}
123
124.demo-blog .mdl-card__actions:first-child {
125 margin-left: 0;
126}
127.demo-blog .meta {
128 box-sizing: border-box;
129 padding: 16px;
130 display: -webkit-flex;
131 display: -ms-flexbox;
132 display: flex;
133 -webkit-flex-direction: row;
134 -ms-flex-direction: row;
135 flex-direction: row;
136 -webkit-align-items: center;
137 -ms-flex-align: center;
138 align-items: center;
139 -webkit-justify-content: flex-start;
140 -ms-flex-pack: start;
141 justify-content: flex-start;
142 height: auto;
143}
144.demo-blog .meta > .meta__favorites{
145 -webkit-flex-direction: row;
146 -ms-flex-direction: row;
147 flex-direction: row;
148 margin: 0 8px;
149 font-size: 13px;
150 font-weight: 500;
151}
152.demo-blog .meta > .meta__favorites .material-icons {
153 font-size: 2em;
154 cursor: pointer;
155 margin-left: 12px;
156}
157.demo-blog .mdl-card .meta.meta--fill {
158 -webkit-justify-content: space-between;
159 -ms-flex-pack: justify;
160 justify-content: space-between;
161}
162.demo-blog .meta > *:first-child {
163 margin-right: 16px;
164}
165.demo-blog .meta > * {
166 display: -webkit-flex;
167 display: -ms-flexbox;
168 display: flex;
169 -webkit-flex-direction: column;
170 -ms-flex-direction: column;
171 flex-direction: column;
172}
173.demo-blog.is-small-screen .demo-blog__posts > .mdl-card.coffee-pic {
174 -webkit-order: 0;
175 -ms-flex-order: 0;
176 order: 0;
177}
178.demo-blog.is-small-screen .demo-blog__posts > .mdl-card.something-else {
179 -webkit-order: -1;
180 -ms-flex-order: -1;
181 order: -1;
182}
183.demo-blog .coffee-pic .mdl-card__media {
184 background-image: url('images/coffee.jpg');
185}
186.demo-blog .something-else .mdl-card__media {
187 display: -webkit-flex;
188 display: -ms-flexbox;
189 display: flex;
190 -webkit-flex-direction: column;
191 -ms-flex-direction: column;
192 flex-direction: column;
193 -webkit-justify-content: center;
194 -ms-flex-pack: center;
195 justify-content: center;
196 -webkit-align-items: center;
197 -ms-flex-align: center;
198 align-items: center;
199}
200.demo-blog .something-else > button {
201 position: absolute;
202 top: 0;
203 right: 28px;
204 -webkit-transform: translate(0px, -28px);
205 transform: translate(0px, -28px);
206}
207.demo-blog .something-else .mdl-card__media {
208 font-size: 13px;
209 font-weight: 500;
210 border-top-left-radius: 2px;
211 border-top-right-radius: 2px;
212}
213.demo-blog .something-else .mdl-card__media img {
214 width: 64px;
215 height: 64px;
216 margin-bottom: 10px;
217}
218.demo-blog .something-else .mdl-card__supporting-text {
219 background-color: #F5F5F5;
220 border-bottom-left-radius: 2px;
221 border-bottom-right-radius: 2px;
222}
223.demo-blog .on-the-road-again .mdl-card__media {
224 background-image: url('images/road.jpg');
225}
226.demo-blog .shopping .mdl-card__media {
227 background-image: url('images/shopping.jpg');
228}
229.demo-blog .demo-blog__posts > .demo-nav {
230 margin: 12px 15px;
231 display: -webkit-flex;
232 display: -ms-flexbox;
233 display: flex;
234 -webkit-flex-direction: row;
235 -ms-flex-direction: row;
236 flex-direction: row;
237 -webkit-justify-content: space-between;
238 -ms-flex-pack: justify;
239 justify-content: space-between;
240 -webkit-align-items: center;
241 -ms-flex-align: center;
242 align-items: center;
243 color: white;
244 font-weight: 500;
245}
246.demo-blog .demo-blog__posts > .demo-nav > .demo-nav__button {
247 color: white;
248 text-decoration: none;
249}
250.demo-blog .demo-blog__posts > .demo-nav .mdl-button {
251 color: rgba(0,0,0,0.54);
252 background-color: white;
253}
254.demo-blog .demo-blog__posts > .demo-nav > .demo-nav__button:first-child .mdl-button {
255 margin-right: 16px;
256}
257.demo-blog .demo-blog__posts > .demo-nav > .demo-nav__button:last-child .mdl-button {
258 margin-left: 16px;
259}
260.demo-blog .mdl-card > a {
261 color: inherit;
262 text-decoration: none;
263 font-weight: inherit;
264}
265.demo-blog .mdl-card h3 {
266 margin: 0;
267}
268.demo-blog .mdl-card h3 a {
269 text-decoration: none;
270}
271.demo-blog .mdl-card h3.quote:before, .demo-blog .mdl-card h3.quote:after {
272 display: block;
273 font-size: 3em;
274 margin-top: 0.5em;
275}
276.demo-blog .mdl-card h3.quote:before {
277 content: '“';
278}
279.demo-blog .mdl-card h3.quote:after {
280 content: '”';
281}
282.demo-blog--blogpost .custom-header {
283 background-color: transparent;
284}
285.demo-blog--blogpost .demo-blog__posts > .mdl-card .mdl-card__media {
286 background-image: url('images/road_big.jpg');
287 height: 280px;
288}
289.demo-blog--blogpost .comments {
290 background-color: #EEE;
291}
292.demo-blog--blogpost .meta > * {
293 -webkit-align-items: center;
294 -ms-flex-align: center;
295 align-items: center;
296}
297.demo-blog--blogpost .meta + .mdl-card__supporting-text {
298 border: 0;
299 display: -webkit-flex;
300 display: -ms-flexbox;
301 display: flex;
302 -webkit-flex-direction: column;
303 -ms-flex-direction: column;
304 flex-direction: column;
305}
306.demo-blog--blogpost .meta + .mdl-card__supporting-text p {
307 max-width: 512px;
308 margin: 16px auto;
309 font-size: 16px;
310 line-height: 28px;
311}
312
313.demo-blog--blogpost .comments {
314 display: -webkit-flex;
315 display: -ms-flexbox;
316 display: flex;
317 -webkit-flex-direction: column;
318 -ms-flex-direction: column;
319 flex-direction: column;
320 -webkit-justify-content: flex-start;
321 -ms-flex-pack: start;
322 justify-content: flex-start;
323 -webkit-align-items: stretch;
324 -ms-flex-align: stretch;
325 align-items: stretch;
326 padding: 32px;
327 box-sizing: border-box;
328}
329.demo-blog--blogpost .comments > form {
330 display: -webkit-flex;
331 display: -ms-flexbox;
332 display: flex;
333 -webkit-flex-direction: row;
334 -ms-flex-direction: row;
335 flex-direction: row;
336 margin-bottom: 16px;
337}
338.demo-blog--blogpost .comments > form .mdl-textfield {
339 -webkit-flex-grow: 1;
340 -ms-flex-positive: 1;
341 flex-grow: 1;
342 margin-right: 16px;
343 color: rgb(97, 97, 97);
344}
345/* Workaround for Firefox.
346 * User agent stylesheet kept overwriting the font in FF only.
347 */
348.demo-blog--blogpost .comments > form .mdl-textfield .mdl-textfield__input {
349 font-family: 'Roboto', 'Helvetica', sans-serif;
350}
351.demo-blog--blogpost .comments > form .mdl-textfield input,
352.demo-blog--blogpost .comments > form .mdl-textfield textarea {
353 resize: none;
354}
355.demo-blog--blogpost .comments > form button {
356 margin-top: 20px;
357 background-color: rgba(0, 0, 0, 0.24);
358 color: white;
359}
360.demo-blog--blogpost .comments .comment {
361 display: -webkit-flex;
362 display: -ms-flexbox;
363 display: flex;
364 -webkit-flex-direction: column;
365 -ms-flex-direction: column;
366 flex-direction: column;
367 -webkit-align-items: stretch;
368 -ms-flex-align: stretch;
369 align-items: stretch;
370}
371.demo-blog--blogpost .comments .comment > .comment__header {
372 display: -webkit-flex;
373 display: -ms-flexbox;
374 display: flex;
375 -webkit-flex-direction: row;
376 -ms-flex-direction: row;
377 flex-direction: row;
378 -webkit-align-items: center;
379 -ms-flex-align: center;
380 align-items: center;
381 margin-bottom: 16px;
382}
383.demo-blog--blogpost .comments .comment > .comment__header > .comment__avatar {
384 width: 48px;
385 height: 48px;
386 border-radius: 24px;
387 margin-right: 16px;
388}
389.demo-blog--blogpost .comments .comment > .comment__header > .comment__author {
390 -webkit-flex-grow: 1;
391 -ms-flex-positive: 1;
392 flex-grow: 1;
393 display: -webkit-flex;
394 display: -ms-flexbox;
395 display: flex;
396 -webkit-flex-direction: column;
397 -ms-flex-direction: column;
398 flex-direction: column;
399}
400.demo-blog--blogpost .comments .comment > .comment__text {
401 line-height: 1.5em;
402}
403.demo-blog--blogpost .comments .comment > .comment__actions {
404 display: -webkit-flex;
405 display: -ms-flexbox;
406 display: flex;
407 -webkit-flex-direction: row;
408 -ms-flex-direction: row;
409 flex-direction: row;
410 -webkit-justify-content: flex-start;
411 -ms-flex-pack: start;
412 justify-content: flex-start;
413 -webkit-align-items: center;
414 -ms-flex-align: center;
415 align-items: center;
416 font-size: 0.8em;
417 margin-top: 16px;
418}
419.demo-blog--blogpost .comments .comment > .comment__actions button {
420 margin-right: 16px;
421 color: rgba(0, 0, 0, 0.24);
422}
423.demo-blog--blogpost .comments .comment > .comment__answers {
424 padding-top: 32px;
425 padding-left: 48px;
426}
427
428.demo-blog--blogpost .demo-back {
429 position: absolute;
430 top: 16px;
431 left: 16px;
432 color: white;
433 z-index: 9999;
434}
435.demo-blog .section-spacer {
436 -webkit-flex-grow: 1;
437 -ms-flex-positive: 1;
438 flex-grow: 1;
439}
440.demo-blog .something-else {
441 overflow: visible;
442 z-index: 10;
443}
444.demo-blog .amazing .mdl-card__title {
445 background-color: #263238;
446}
447.demo-blog .minilogo {
448 width: 44px;
449 height: 44px;
450 background-image: url('images/avatar.png');
451 background-position: center;
452 background-repeat: no-repeat;
453 background-size: 50%;
454 border-radius: 22px;
455 background-color: #F5F5F5;
456}
457
458/* Fixes for IE 10 */
459.mdl-grid {
460 display: -webkit-flex !important;
461 display: -ms-flexbox !important;
462 display: flex !important;
463}
464
465.social-btn {
466 background-position: center;
467 background-size: contain;
468 background-repeat: no-repeat;
469 background-color: transparent;
470 margin: 0 16px;
471 width: 24px;
472 height: 24px;
473 cursor: pointer;
474 opacity: 0.46;
475 border-radius: 2px;
476}
477.social-btn__twitter {
478 background-image: url('https://www.gstatic.com/images/icons/material/system/2x/post_twitter_black_24dp.png');
479}
480.social-btn__blogger {
481 background-image: url('https://www.gstatic.com/images/icons/material/system/2x/post_facebook_black_24dp.png');
482}
483.social-btn__gplus {
484 background-image: url('https://www.gstatic.com/images/icons/material/system/2x/post_gplus_black_24dp.png');
485}
486.social-btn__share {
487 color: rgba(0, 0, 0, 0.54);
488 background: transparent;
489}
490
491.demo-blog .mdl-mini-footer {
492 margin-top: 80px;
493 height: 120px;
494 padding: 40px;
495 -webkit-align-items: center;
496 -ms-flex-align: center;
497 align-items: center;
498 background-color: white;
499 box-sizing: border-box;
500}