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