]> git.immae.eu Git - github/wallabag/wallabag.git/blame - app/Resources/static/themes/material/css/main.css
Material: increase max width of article on large screens
[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
8a9604aa
NL
153/* Unmark.it */
154.icon-image--unmark {
155 background-image: url("../../_global/img/icons/unmark-icon--black.png");
156}
157
a494c33e
TC
158/* Shaarli */
159.icon-image--shaarli {
160 background-image: url("../../_global/img/icons/shaarli.png");
161}
162
5ecdfcd0
TC
163body {
164 display: flex;
165 min-height: 100vh;
166 flex-direction: column;
5b69e03e 167 background: #fafafa;
5ecdfcd0
TC
168}
169
170body.login main {
171 padding: 0;
cdd3010b 172 min-height: 100vh;
5ecdfcd0
TC
173}
174
175.border-bottom {
176 border-bottom: 1px solid #ddd;
177}
178
179nav,
180main,
181footer {
182 padding-left: 240px;
183}
184
185main,
186#content,
187.valign-wrapper {
188 height: 100%;
189}
190
191#main {
192 flex: 1 0 auto;
193}
194
195.results {
196 height: 1em;
197 line-height: 30px;
198}
199
200.results .nb-results,
201.results .pagination {
202 margin: 15px;
203 margin-bottom: 0;
204}
205
206.pagination {
1d4d9aaf 207 float: right;
5ecdfcd0
TC
208}
209
210.pagination ul {
1d4d9aaf 211 margin: 0 !important;
5ecdfcd0
TC
212}
213
214.pagination li {
215 padding: 0;
216}
217
218.pagination a {
219 padding: 0 10px;
220 height: 30px;
221 display: block;
222}
223
224.pagination .disabled {
1d4d9aaf
TC
225 margin-right: 10px;
226 margin-left: 10px;
5ecdfcd0
TC
227}
228
229div.pagination ul .prev.disabled,
230div.pagination ul .next.disabled {
231 display: none;
232}
233
234.pagination li.active span {
1d4d9aaf
TC
235 padding: 0 10px;
236 height: 30px;
237 display: block;
238 color: #fff;
5ecdfcd0
TC
239}
240
d56d416d
TC
241.page-footer .footer-copyright {
242 min-width: 50px;
243 height: auto !important;
244 line-height: 1em !important;
245}
246
5ecdfcd0 247.page-footer .footer-copyright p {
d56d416d
TC
248 text-overflow: ellipsis;
249 white-space: nowrap;
250 overflow: hidden;
251 display: block;
5ecdfcd0
TC
252}
253
254.hidden {
255 display: none;
256}
257
258.picker__date-display {
259 display: none;
260}
261
262footer.page-footer {
263 margin-top: 10px;
c146f694 264 padding-top: 0;
5ecdfcd0
TC
265}
266
267footer .row {
268 margin-bottom: 10px;
269}
270
271/* ==========================================================================
272 1 = Nav
273 ========================================================================== */
274
275nav input {
276 color: #aaa;
277}
278
279.nav-wrapper .button-collapse {
280 padding: 0 15px;
281}
282
283.nav-input {
284 display: none;
285}
286
287.nav-panels {
288 overflow: hidden;
289}
290
291.nav-panel-buttom li {
292 max-height: 64px;
293}
294
295.nav-panels {
296 transition: background 0.2s ease;
297}
298
299.nav-panel-add .add,
300.nav-panel-search .search,
301.nav-panels .close {
302 color: #444 !important;
303}
304
305.nav-panels .action {
306 padding-left: 0.75rem;
307 font-size: 2.1rem;
308 white-space: nowrap;
309}
310
311.nav-panels .input-field input {
312 display: block;
313 line-height: inherit;
314 padding-left: 4rem !important;
315 width: calc(100% - 8rem);
316}
317
318.nav-panels .input-field input:focus {
319 background-color: #fff;
320 border: 0;
321 box-shadow: none;
322 color: #444;
323}
324
ee122a75
NL
325.input-field.nav-panel-add label,
326.input-field.nav-panel-search label {
5ecdfcd0
TC
327 left: 1rem;
328}
329
ee122a75
NL
330.input-field.nav-panel-add .close,
331.input-field.nav-panel-search .close {
5ecdfcd0
TC
332 position: absolute;
333 top: 0;
334 right: 1rem;
335 color: transparent;
336 cursor: pointer;
337 font-size: 2rem;
338 transition: 0.3s color;
339}
340
341#button_filters {
342 display: none;
343}
344
345#button_export {
346 display: none;
347}
348
c146f694 349.input-field.nav-panel-add,
ee122a75
NL
350.input-field.nav-panel-add form,
351.input-field.nav-panel-search,
32f455c1 352.input-field.nav-panel-search form {
c146f694 353 height: 100%;
cdd3010b
JB
354}
355
5ecdfcd0
TC
356/* ==========================================================================
357 2 = Side-nav
358 ========================================================================== */
359
360.side-nav.fixed a {
361 font-size: 13px;
362 line-height: 44px;
363 height: 44px;
364}
365
366.side-nav .collapsible-header,
367.side-nav.fixed .collapsible-header {
1d4d9aaf
TC
368 height: 45px;
369 line-height: 44px;
370 padding: 0 20px;
5ecdfcd0
TC
371}
372
373.bold > a {
374 font-weight: bold;
375}
376
377.side-nav > li.logo {
378 line-height: 0;
379 text-align: center;
380}
381
382#main .logo a {
383 height: 100pt;
384}
385
386#main .logo img {
387 height: 100pt;
388 width: 100pt;
389}
390
391#main .logo:hover {
392 background: transparent;
393}
394
395.side-nav li {
396 padding: 0;
397}
398
399.side-nav a {
400 margin: 0 1rem;
401}
402
8315130a
NL
403span.numberItems {
404 float: right;
405}
406
38dc91be 407nav ul a:hover {
08f5a5b6 408 background-color: initial;
38dc91be
AD
409}
410
5ecdfcd0
TC
411/* ==========================================================================
412 * 3 = Filters slider
413 * ========================================================================== */
414
415#filters button {
416 padding: 0;
417 width: 100%;
418}
419
420.side-nav.fixed.right-aligned {
421 right: -250px;
422 left: auto !important;
423 overflow-y: visible;
424}
425
426#filters div.with-checkbox {
427 height: 3rem;
428 margin-top: 0;
429}
430
431/* ==========================================================================
432 4 = Cards
433 ========================================================================== */
434
435main #content {
436 padding: 0 0.5rem;
437}
438
439main ul.row {
440 padding: 0 0.75rem;
441}
442
443.data .card .card-body {
34aa06a9 444 height: 19em;
5ecdfcd0
TC
445 overflow: hidden;
446}
447
34aa06a9
TC
448.card .card-content .card-title,
449.card .card-reveal .card-title {
450 line-height: 22.8px;
3221b2e4 451 max-height: 80px;
34aa06a9
TC
452 font-size: 19px;
453 font-family: roberto, "Helvetica Neue", Helvetica, Arial, sans-serif;
454 color: #313131;
455}
456
457.card .card-content .activator,
458.card .card-reveal .activator {
459 cursor: pointer;
460 font-family: "Material Icons";
cdd3010b
JB
461}
462
c146f694
TC
463.card .card-content i.right,
464.card .card-reveal i.right {
465 margin-left: 0;
5ecdfcd0
TC
466}
467
34aa06a9
TC
468.card .card-content .original {
469 line-height: 24px;
470 font-size: 15px;
471}
472
d56d416d
TC
473a.original {
474 text-overflow: ellipsis;
475 white-space: nowrap;
476 overflow: hidden;
477 display: block;
478}
479
25dc07d3 480.card .card-entry-labels {
1d4d9aaf
TC
481 position: absolute;
482 top: 10px;
483 z-index: 90;
484 max-width: 50%;
25dc07d3
TC
485}
486
e0847780
JB
487.card .card-entry-labels li,
488.card-tag-labels li {
1d4d9aaf 489 margin: 10px 10px 10px auto;
28bb4890 490 padding: 5px 12px 5px 16px !important;
1d4d9aaf
TC
491 background-color: rgba(0, 151, 167, 0.85);
492 border-radius: 0 3px 3px 0;
493 color: #fff;
494 cursor: default;
495 max-height: 2em;
496 overflow: hidden;
497 text-overflow: ellipsis;
498 white-space: nowrap;
25dc07d3
TC
499}
500
501.card .card-entry-labels-hidden {
34aa06a9 502 margin: 2.5px auto;
25dc07d3
TC
503}
504
505.card .card-entry-labels-hidden li {
1d4d9aaf
TC
506 display: inline-block;
507 background-color: rgba(0, 151, 167, 0.85);
508 margin: 0 5px;
509 padding: 5px 12px;
510 border-radius: 3px;
511 color: #fff;
512 max-height: 2em;
513 max-width: calc(100% - 15px);
514 overflow: hidden;
515 text-overflow: ellipsis;
516 white-space: nowrap;
25dc07d3
TC
517}
518
7005b425
JB
519.card .card-entry-labels-hidden li:first-child {
520 margin-left: 0;
521}
522
15f1352e
TC
523.card-entry-tags a,
524.card-entry-labels a,
28bb4890 525.card-tag-labels a,
15f1352e
TC
526.card-entry-labels-hidden a,
527#list .chip a {
528 text-decoration: none;
529 font-weight: normal;
530 color: #fff;
531}
532
5ecdfcd0
TC
533.card .card-content .estimatedTime {
534 margin-bottom: 10px;
535}
536
34aa06a9
TC
537.card .card-action {
538 padding: 10px 5px 10px 15px;
5ecdfcd0
TC
539}
540
541.card .card-action ul.links {
542 margin: 0;
543 font-size: 24px;
544 line-height: 24px;
545}
546
77e2898a
JB
547.card .card-action ul.tools li a.tool {
548 margin-right: 5px !important;
549}
550
5ecdfcd0 551.card .card-action a {
0f70abd6 552 color: #fff;
5ecdfcd0
TC
553 margin: 0;
554}
555
556.card .card-action a:hover {
0f70abd6
NL
557 color: #fff;
558}
559
34aa06a9
TC
560.card .card-action .reading-time {
561 display: inline-flex;
562 vertical-align: middle;
563}
564
9f7d154e
TC
565.quickstart .card .card-action a,
566.quickstart .card .card-action a:hover {
567 color: #fff !important;
5ecdfcd0
TC
568}
569
570.settings .div_tabs {
571 padding-bottom: 15px;
572}
573
574.card.sw {
575 max-width: 370px;
576 margin-left: auto;
577 margin-right: auto;
578}
579
580.card .card-image {
34aa06a9 581 height: 10em;
5ecdfcd0
TC
582}
583
8d7b4f0e
JB
584.card .card-fullimage {
585 height: 13.5em;
5ecdfcd0
TC
586}
587
8d7b4f0e
JB
588.card .card-image .preview,
589.card .card-fullimage .preview {
5ecdfcd0
TC
590 height: 14em;
591 background-size: cover;
592 background-repeat: no-repeat;
593 background-position: 50%;
594}
595
596/* ==========================================================================
597 5 = Article
598 ========================================================================== */
599
600#article {
601 font-size: 20px;
602 margin: 0 auto;
5ea90fa8 603 max-width: 45em;
5ecdfcd0
TC
604}
605
5b69e03e
KD
606#article article {
607 color: #424242;
608}
609
610#article article h1,
611#article article h2,
612#article article h3,
613#article article h4,
614#article article h5,
615#article article h6 {
616 color: #212121;
617}
618
7470a2f3
KD
619#article article h1 strong,
620#article article h2 strong,
621#article article h3 strong,
622#article article h4 strong,
623#article article h5 strong,
624#article article h6 strong {
625 font-weight: 500;
626}
627
628#article article h6 {
629 font-size: 1.2rem;
630}
631
632#article article h5 {
633 font-size: 1.6rem;
634}
635
636#article article h4 {
637 font-size: 1.9rem;
638}
639
640#article article h3 {
641 font-size: 2.2rem;
642}
643
644#article article h2 {
645 font-size: 2.5rem;
646}
647
648#article article h1 {
649 font-size: 2.7rem;
650}
651
79efca1e
JB
652#article img,
653#article figure {
5ecdfcd0
TC
654 max-width: 100%;
655 height: auto;
656}
657
a15022db 658#article > header > h1 {
34aa06a9
TC
659 font-size: 2em;
660 margin: 2.1rem 0 0.68rem;
a15022db
TC
661}
662
5ecdfcd0
TC
663.reader-mode {
664 width: 95px !important;
665 transition: width 0.2s ease;
666}
667
668.reader-mode:hover {
669 width: 240px !important;
670}
671
672.reader-mode .collapsible-body {
673 height: 0;
674 overflow: hidden;
675}
676
677.reader-mode:hover .collapsible-body {
678 height: auto;
679}
680
681.reader-mode span {
682 opacity: 0;
683 transition: opacity 0.2s ease;
684}
685
686.reader-mode:hover span {
687 opacity: 1;
688}
689
690.progress {
691 position: fixed;
692 top: 0;
693 width: 100%;
694 height: 3px;
695 margin: 0;
696 z-index: 9999;
697}
698
34aa06a9 699#article aside .tools {
5ecdfcd0 700 font-size: 0.8em;
34aa06a9
TC
701 display: flex;
702 flex-flow: row wrap;
703 margin: 0 auto;
704}
705
80302e5a 706article aside .tools li {
34aa06a9
TC
707 display: inline-flex;
708 vertical-align: middle;
34aa06a9
TC
709}
710
711#article aside .tools a {
712 color: #000;
5ecdfcd0
TC
713 text-decoration: none;
714}
715
716#article aside #list {
717 float: right;
eef833d6 718 margin: 0 15px 10px;
5ecdfcd0
TC
719}
720
721#article aside .chip {
1d4d9aaf 722 background-color: rgba(0, 151, 167, 0.85);
eef833d6 723 padding: 0 15px 0 10px;
34aa06a9 724 margin: auto 2px;
5ecdfcd0
TC
725}
726
34aa06a9 727#article aside .chip a,
5ecdfcd0
TC
728#article aside .chip i {
729 color: #fff;
730}
731
732/* ==========================================================================
733 6 = Media queries
734 ========================================================================== */
735
736@media only screen and (max-width: 992px) {
737 header,
738 main,
739 footer {
740 padding-left: 0;
741 }
c146f694 742
5ecdfcd0
TC
743 nav,
744 main,
745 footer {
746 padding-left: 0;
747 }
c146f694 748
5ecdfcd0
TC
749 .pagination {
750 width: auto;
1d4d9aaf 751 }
c146f694 752
38dc91be 753 #article {
38dc91be
AD
754 max-width: 35em;
755 margin-left: auto;
756 margin-right: auto;
757 font-size: 18px;
758 }
759
760 #article > header > h1 {
761 font-size: 1.33em;
762 }
763
5ecdfcd0
TC
764 .reader-mode {
765 width: 240px !important;
766 }
c146f694 767
5ecdfcd0
TC
768 .reader-mode span {
769 opacity: 1;
770 }
c146f694 771
5ecdfcd0
TC
772 .tabs {
773 display: inline-block;
774 height: auto;
775 }
c146f694 776
5ecdfcd0
TC
777 .tab {
778 min-width: 100%;
779 }
c146f694 780
5ecdfcd0
TC
781 .indicator {
782 display: none;
783 }
c146f694 784
1d4d9aaf
TC
785 .pagination li.prev,
786 .pagination li.next {
5ecdfcd0
TC
787 width: auto;
788 }
789}
790
791@media only screen and (min-width: 400px) {
792 .nav-panel-buttom {
793 float: right;
794 }
795}
796
3221b2e4
TC
797@media only screen and (min-width: 1200px) and (max-width: 1650px) {
798 .row .col.l3 {
799 width: 33.33333%;
800 margin-left: 0;
801 }
802}
803
804@media only screen and (min-width: 993px) and (max-width: 1200px) {
5ecdfcd0
TC
805 .row .col.l1 {
806 width: 25%;
807 margin-left: 0;
808 }
c146f694 809
5ecdfcd0
TC
810 .row .col.l2 {
811 width: 33.33333%;
812 margin-left: 0;
813 }
c146f694 814
5ecdfcd0
TC
815 .row .col.l3 {
816 width: 41.66667%;
817 margin-left: 0;
818 }
c146f694 819
5ecdfcd0
TC
820 .row .col.l4 {
821 width: 50%;
822 margin-left: 0;
823 }
c146f694 824
5ecdfcd0
TC
825 .row .col.l5 {
826 width: 58.33333%;
827 margin-left: 0;
828 }
c146f694 829
5ecdfcd0
TC
830 .row .col.l6 {
831 width: 66.66667%;
832 margin-left: 0;
833 }
c146f694 834
5ecdfcd0
TC
835 .row .col.l7 {
836 width: 75%;
837 margin-left: 0;
838 }
c146f694 839
5ecdfcd0
TC
840 .row .col.l8 {
841 width: 83.33333%;
842 margin-left: 0;
843 }
c146f694 844
5ecdfcd0
TC
845 .row .col.l9 {
846 width: 91.66667%;
847 margin-left: 0;
848 }
c146f694 849
5ecdfcd0
TC
850 .row .col.l10 {
851 width: 100%;
852 margin-left: 0;
853 }
854}
855
856@media only screen and (max-width: 350px) {
857 .nb-results {
858 display: none;
859 }
34aa06a9
TC
860
861 main ul.row {
862 padding: 0;
863 }
864
865 .row .col {
866 padding: 0;
867 }
5ecdfcd0
TC
868}
869
870/* ==========================================================================
871 7 = Font
872 ========================================================================== */
873
874.icon-google-plus2::before {
875 content: "\ea89";
876}
877
878.icon-facebook2::before {
879 content: "\ea8d";
880}
881
882.icon-twitter::before {
a494c33e 883 content: "\ea96";
5ecdfcd0
TC
884}
885
886.icon-apple::before {
887 content: "\eabf";
888}
889
890.icon-android::before {
891 content: "\eac1";
892}
893
894.icon-chrome::before {
895 content: "\eae5";
896}
897
898.icon-firefox::before {
899 content: "\eae6";
900}
901
8e06720f 902.icon-link::before {
c146f694 903 content: "\e9cb";
8e06720f
NL
904}
905
5ecdfcd0
TC
906footer [class^="icon-"],
907footer [class*=" icon-"] {
908 font-size: 2em;
909 transition: text-shadow 0.2s ease;
910 padding-right: 10px;
911}
912
1d4d9aaf
TC
913footer [class^="icon-"]:hover,
914footer [class*=" icon-"]:hover {
5ecdfcd0
TC
915 text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
916}
917
918/* ==========================================================================
919 8 = Others
920 ========================================================================== */
921
922/* force height on non-input field in the settings page */
923div.settings div.input-field div,
924div.settings div.input-field ul {
925 margin-top: 40px;
926}
927
928/* but avoid to kill all file input */
929div.settings div.file-field div {
930 margin-top: inherit;
931}
b1e0a586
NL
932
933.input-field label.active {
c146f694 934 font-size: 1rem;
b1e0a586 935}
38dc91be
AD
936
937nav .input-field input {
938 margin: 0;
939}