]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/Resources/static/themes/material/css/main.css
20d1ddede55b489a453c9d095ce5f2dc80e122bf
[github/wallabag/wallabag.git] / app / Resources / static / themes / material / css / main.css
1 /* ==========================================================================
2 Sommaire
3
4 0 = Common
5 1 = Nav
6 2 = Side-nav
7 3 = Filters slider
8 4 = Cards
9 5 = Article
10 6 = Media queries
11 7 = Font
12 8 = Others
13
14 ========================================================================== */
15
16 /* ==========================================================================
17 0 = Common
18 ========================================================================== */
19
20 @font-face {
21 font-family: icomoon;
22 src: url("../fonts/IcoMoon-Free.ttf");
23 font-weight: normal;
24 font-style: normal;
25 }
26
27 @font-face {
28 font-family: 'Material Icons';
29 font-style: normal;
30 font-weight: 400;
31 src: url(../fonts/MaterialIcons-Regular.eot);
32
33 /* For IE6-8 */
34 src: local("Material Icons"), local("MaterialIcons-Regular"), url(../fonts/MaterialIcons-Regular.woff2) format("woff2"), url(../fonts/MaterialIcons-Regular.woff) format("woff"), url(../fonts/MaterialIcons-Regular.ttf) format("truetype");
35 }
36
37 .material-icons {
38 font-family: 'Material Icons';
39 font-weight: normal;
40 font-style: normal;
41 font-size: 24px; /* Preferred icon size */
42 width: 1em;
43 height: 1em;
44 display: inline-block;
45 line-height: 1;
46 text-transform: none;
47 letter-spacing: normal;
48 word-wrap: normal;
49 white-space: nowrap;
50 direction: ltr;
51
52 /* Support for all WebKit browsers. */
53 -webkit-font-smoothing: antialiased;
54
55 /* Support for Safari and Chrome. */
56 text-rendering: optimizeLegibility;
57
58 /* Support for Firefox. */
59 -moz-osx-font-smoothing: grayscale;
60
61 /* Support for IE. */
62 font-feature-settings: 'liga';
63 }
64
65 [class^="icon-"]::before,
66 [class*=" icon-"]::before {
67 font-family: icomoon;
68 speak: none;
69 font-style: normal;
70 font-weight: normal;
71 font-variant: normal;
72 text-transform: none;
73 line-height: 1;
74
75 /* Enable Ligatures ================ */
76 letter-spacing: 0;
77 -webkit-font-feature-settings: "liga";
78 -moz-font-feature-settings: "liga=1";
79 -moz-font-feature-settings: "liga";
80 -ms-font-feature-settings: "liga" 1;
81 -o-font-feature-settings: "liga";
82 font-feature-settings: "liga";
83
84 /* Better Font Rendering =========== */
85 -webkit-font-smoothing: antialiased;
86 -moz-osx-font-smoothing: grayscale;
87 }
88
89 .icon-image {
90 background-size: 16px 16px;
91 background: no-repeat center;
92 padding-right: 1em !important;
93 padding-left: 1em !important;
94 }
95
96 .icon-eye::before {
97 content: "\e9ce";
98 }
99
100 .icon-no-eye::before {
101 content: "\e9d1";
102 }
103
104 .icon-calendar::before {
105 content: "\e953";
106 }
107
108 .icon-time::before {
109 content: "\e952";
110 }
111
112 /* Carrot (http://carrot.org) */
113 .icon-image--carrot {
114 background-image: url("../../_global/img/icons/carrot-icon--black.png");
115 }
116
117 /* Diaspora */
118 .icon-image--diaspora {
119 background-image: url("../../_global/img/icons/diaspora-icon--black.png");
120 }
121
122 /* Shaarli */
123 .icon-image--shaarli {
124 background-image: url("../../_global/img/icons/shaarli.png");
125 }
126
127
128 body {
129 display: flex;
130 min-height: 100vh;
131 flex-direction: column;
132 background: #f0f0f0;
133 }
134
135 body.login main {
136 padding: 0;
137 min-height: 100vh;
138 }
139
140 .border-bottom {
141 border-bottom: 1px solid #ddd;
142 }
143
144 nav,
145 main,
146 footer {
147 padding-left: 240px;
148 }
149
150 main,
151 #content,
152 .valign-wrapper {
153 height: 100%;
154 }
155
156 #main {
157 flex: 1 0 auto;
158 }
159
160 .results {
161 height: 1em;
162 line-height: 30px;
163 }
164
165 .results .nb-results,
166 .results .pagination {
167 margin: 15px;
168 margin-bottom: 0;
169 }
170
171 .pagination {
172 float: right;
173 }
174
175 .pagination ul {
176 margin: 0 !important;
177 }
178
179 .pagination li {
180 padding: 0;
181 }
182
183 .pagination a {
184 padding: 0 10px;
185 height: 30px;
186 display: block;
187 }
188
189 .pagination .disabled {
190 margin-right: 10px;
191 margin-left: 10px;
192 }
193
194 div.pagination ul .prev.disabled,
195 div.pagination ul .next.disabled {
196 display: none;
197 }
198
199 .pagination li.active span {
200 padding: 0 10px;
201 height: 30px;
202 display: block;
203 color: #fff;
204 }
205
206 .page-footer .footer-copyright p {
207 display: inline;
208 }
209
210 .hidden {
211 display: none;
212 }
213
214 .picker__date-display {
215 display: none;
216 }
217
218 footer.page-footer {
219 margin-top: 10px;
220 padding-top: 0;
221 }
222
223 footer .row {
224 margin-bottom: 10px;
225 }
226
227 /* ==========================================================================
228 1 = Nav
229 ========================================================================== */
230
231 nav input {
232 color: #aaa;
233 }
234
235 .nav-wrapper .button-collapse {
236 padding: 0 15px;
237 }
238
239 .nav-input {
240 display: none;
241 }
242
243 .nav-panels {
244 overflow: hidden;
245 }
246
247 .nav-panel-buttom li {
248 max-height: 64px;
249 }
250
251 .nav-panels {
252 transition: background 0.2s ease;
253 }
254
255 .nav-panel-add .add,
256 .nav-panel-search .search,
257 .nav-panels .close {
258 color: #444 !important;
259 }
260
261 .nav-panels .action {
262 padding-left: 0.75rem;
263 font-size: 2.1rem;
264 white-space: nowrap;
265 }
266
267 .nav-panels .input-field input {
268 display: block;
269 line-height: inherit;
270 padding-left: 4rem !important;
271 width: calc(100% - 8rem);
272 }
273
274 .nav-panels .input-field input:focus {
275 background-color: #fff;
276 border: 0;
277 box-shadow: none;
278 color: #444;
279 }
280
281 .input-field.nav-panel-add label {
282 left: 1rem;
283 }
284
285 .input-field.nav-panel-add .close {
286 position: absolute;
287 top: 0;
288 right: 1rem;
289 color: transparent;
290 cursor: pointer;
291 font-size: 2rem;
292 transition: 0.3s color;
293 }
294
295 #button_filters {
296 display: none;
297 }
298
299 #button_export {
300 display: none;
301 }
302
303 .input-field.nav-panel-add,
304 .input-field.nav-panel-add form {
305 height: 100%;
306 }
307
308 /* ==========================================================================
309 2 = Side-nav
310 ========================================================================== */
311
312 .side-nav.fixed a {
313 font-size: 13px;
314 line-height: 44px;
315 height: 44px;
316 }
317
318 .side-nav .collapsible-header,
319 .side-nav.fixed .collapsible-header {
320 height: 45px;
321 line-height: 44px;
322 padding: 0 20px;
323 }
324
325 .bold > a {
326 font-weight: bold;
327 }
328
329 .side-nav > li.logo {
330 line-height: 0;
331 text-align: center;
332 }
333
334 #main .logo a {
335 height: 100pt;
336 }
337
338 #main .logo img {
339 height: 100pt;
340 width: 100pt;
341 }
342
343 #main .logo:hover {
344 background: transparent;
345 }
346
347 .side-nav li {
348 padding: 0;
349 }
350
351 .side-nav a {
352 margin: 0 1rem;
353 }
354
355 span.numberItems {
356 float: right;
357 }
358
359 /* ==========================================================================
360 * 3 = Filters slider
361 * ========================================================================== */
362
363 #filters button {
364 padding: 0;
365 width: 100%;
366 }
367
368 .side-nav.fixed.right-aligned {
369 right: -250px;
370 left: auto !important;
371 overflow-y: visible;
372 }
373
374 #filters div.with-checkbox {
375 height: 3rem;
376 margin-top: 0;
377 }
378
379 /* ==========================================================================
380 4 = Cards
381 ========================================================================== */
382
383 main #content {
384 padding: 0 0.5rem;
385 }
386
387 main ul.row {
388 padding: 0 0.75rem;
389 }
390
391 .data .card .card-body {
392 height: 22em;
393 overflow: hidden;
394 }
395
396 .card .card-content .card-title {
397 line-height: 32px;
398 max-height: 64px;
399 }
400
401 .card .card-content i.right,
402 .card .card-reveal i.right {
403 margin-left: 0;
404 }
405
406 .card .card-entry-labels {
407 position: absolute;
408 top: 10px;
409 z-index: 90;
410 max-width: 50%;
411 }
412
413 .card .card-entry-labels li {
414 margin: 10px 10px 10px auto;
415 padding: 5px 12px 5px 16px;
416 background-color: rgba(0, 151, 167, 0.85);
417 border-radius: 0 3px 3px 0;
418 color: #fff;
419 cursor: default;
420 max-height: 2em;
421 overflow: hidden;
422 text-overflow: ellipsis;
423 white-space: nowrap;
424 }
425
426 .card .card-entry-labels-hidden {
427 margin-top: 5px;
428 }
429
430 .card .card-entry-labels-hidden li {
431 display: inline-block;
432 background-color: rgba(0, 151, 167, 0.85);
433 margin: 0 5px;
434 padding: 5px 12px;
435 border-radius: 3px;
436 color: #fff;
437 max-height: 2em;
438 max-width: calc(100% - 15px);
439 overflow: hidden;
440 text-overflow: ellipsis;
441 white-space: nowrap;
442 }
443
444 .card .card-content .estimatedTime {
445 margin-bottom: 10px;
446 }
447
448 .card .card-action .original {
449 line-height: 24px;
450 }
451
452 .card .card-action ul.links {
453 margin: 0;
454 font-size: 24px;
455 line-height: 24px;
456 }
457
458 .card .card-action a {
459 color: #fff;
460 margin: 0;
461 }
462
463 .card .card-action a:hover {
464 color: #fff;
465 }
466
467 .quickstart .card .card-action a, .quickstart .card .card-action a:hover {
468 color: #fff !important;
469 }
470
471 .settings .div_tabs {
472 padding-bottom: 15px;
473 }
474
475 .card.sw {
476 max-width: 370px;
477 margin-left: auto;
478 margin-right: auto;
479 }
480
481 .card .card-image {
482 height: 14em;
483 }
484
485 .card .card-image .preview {
486 height: 14em;
487 background-size: cover;
488 background-repeat: no-repeat;
489 background-position: 50%;
490 }
491
492 /* ==========================================================================
493 5 = Article
494 ========================================================================== */
495
496 #article {
497 font-size: 20px;
498 margin: 0 auto;
499 max-width: 40em;
500 }
501
502 #article img,
503 #article figure {
504 max-width: 100%;
505 height: auto;
506 }
507
508 #article > header > h1 {
509 font-size: 2em;
510 }
511
512 .reader-mode {
513 width: 95px !important;
514 transition: width 0.2s ease;
515 }
516
517 .reader-mode:hover {
518 width: 240px !important;
519 }
520
521 .reader-mode .collapsible-body {
522 height: 0;
523 overflow: hidden;
524 }
525
526 .reader-mode:hover .collapsible-body {
527 height: auto;
528 }
529
530 .reader-mode span {
531 opacity: 0;
532 transition: opacity 0.2s ease;
533 }
534
535 .reader-mode:hover span {
536 opacity: 1;
537 }
538
539 .progress {
540 position: fixed;
541 top: 0;
542 width: 100%;
543 height: 3px;
544 margin: 0;
545 z-index: 9999;
546 }
547
548 #article aside .link {
549 color: #000;
550 font-size: 0.8em;
551 text-decoration: none;
552 }
553
554 #article aside #list {
555 float: right;
556 margin: 0 15px 10px;
557 }
558
559 #article aside .chip {
560 background-color: rgba(0, 151, 167, 0.85);
561 color: #fff;
562 padding: 0 15px 0 10px;
563 }
564
565 #article aside .chip i {
566 color: #fff;
567 }
568
569 /* ==========================================================================
570 6 = Media queries
571 ========================================================================== */
572
573 @media only screen and (max-width: 992px) {
574 header,
575 main,
576 footer {
577 padding-left: 0;
578 }
579
580 nav,
581 main,
582 footer {
583 padding-left: 0;
584 }
585
586 .pagination {
587 width: auto;
588 }
589
590 .reader-mode {
591 width: 240px !important;
592 }
593
594 .reader-mode span {
595 opacity: 1;
596 }
597
598 .tabs {
599 display: inline-block;
600 height: auto;
601 }
602
603 .tab {
604 min-width: 100%;
605 }
606
607 .indicator {
608 display: none;
609 }
610
611 .pagination li.prev,
612 .pagination li.next {
613 width: auto;
614 }
615 }
616
617 @media only screen and (min-width: 400px) {
618 .nav-panel-buttom {
619 float: right;
620 }
621 }
622
623 @media only screen and (min-width: 993px) and (max-width: 1180px) {
624 .row .col.l1 {
625 width: 25%;
626 margin-left: 0;
627 }
628
629 .row .col.l2 {
630 width: 33.33333%;
631 margin-left: 0;
632 }
633
634 .row .col.l3 {
635 width: 41.66667%;
636 margin-left: 0;
637 }
638
639 .row .col.l4 {
640 width: 50%;
641 margin-left: 0;
642 }
643
644 .row .col.l5 {
645 width: 58.33333%;
646 margin-left: 0;
647 }
648
649 .row .col.l6 {
650 width: 66.66667%;
651 margin-left: 0;
652 }
653
654 .row .col.l7 {
655 width: 75%;
656 margin-left: 0;
657 }
658
659 .row .col.l8 {
660 width: 83.33333%;
661 margin-left: 0;
662 }
663
664 .row .col.l9 {
665 width: 91.66667%;
666 margin-left: 0;
667 }
668
669 .row .col.l10 {
670 width: 100%;
671 margin-left: 0;
672 }
673 }
674
675 @media only screen and (max-width: 350px) {
676 .nb-results {
677 display: none;
678 }
679 }
680
681 /* ==========================================================================
682 7 = Font
683 ========================================================================== */
684
685 .icon-google-plus2::before {
686 content: "\ea89";
687 }
688
689 .icon-facebook2::before {
690 content: "\ea8d";
691 }
692
693 .icon-twitter::before {
694 content: "\ea96";
695 }
696
697 .icon-apple::before {
698 content: "\eabf";
699 }
700
701 .icon-android::before {
702 content: "\eac1";
703 }
704
705 .icon-chrome::before {
706 content: "\eae5";
707 }
708
709 .icon-firefox::before {
710 content: "\eae6";
711 }
712
713 .icon-link::before {
714 content: "\e9cb";
715 }
716
717 footer [class^="icon-"],
718 footer [class*=" icon-"] {
719 font-size: 2em;
720 transition: text-shadow 0.2s ease;
721 padding-right: 10px;
722 }
723
724 footer [class^="icon-"]:hover,
725 footer [class*=" icon-"]:hover {
726 text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
727 }
728
729 /* ==========================================================================
730 8 = Others
731 ========================================================================== */
732
733 /* force height on non-input field in the settings page */
734 div.settings div.input-field div,
735 div.settings div.input-field ul {
736 margin-top: 40px;
737 }
738
739 /* but avoid to kill all file input */
740 div.settings div.file-field div {
741 margin-top: inherit;
742 }
743
744 .input-field label.active {
745 font-size: 1rem;
746 }