]> git.immae.eu Git - github/wallabag/wallabag.git/blame - app/Resources/static/themes/material/css/main.css
Material: update style of ul in article
[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
858430c0
KD
658#article article a {
659 border-bottom: 1px dotted #03a9f4;
660 text-decoration: none;
661}
662
663#article article a:hover {
664 border-bottom-style: solid;
665}
666
59cfd63c
KD
667#article article ul {
668 padding-left: 30px;
669}
670
671#article article ul,
672#article article ul li {
673 list-style-type: disc;
674}
675
a15022db 676#article > header > h1 {
34aa06a9
TC
677 font-size: 2em;
678 margin: 2.1rem 0 0.68rem;
a15022db
TC
679}
680
5ecdfcd0
TC
681.reader-mode {
682 width: 95px !important;
683 transition: width 0.2s ease;
684}
685
686.reader-mode:hover {
687 width: 240px !important;
688}
689
690.reader-mode .collapsible-body {
691 height: 0;
692 overflow: hidden;
693}
694
695.reader-mode:hover .collapsible-body {
696 height: auto;
697}
698
699.reader-mode span {
700 opacity: 0;
701 transition: opacity 0.2s ease;
702}
703
704.reader-mode:hover span {
705 opacity: 1;
706}
707
708.progress {
709 position: fixed;
710 top: 0;
711 width: 100%;
712 height: 3px;
713 margin: 0;
714 z-index: 9999;
715}
716
34aa06a9 717#article aside .tools {
5ecdfcd0 718 font-size: 0.8em;
34aa06a9
TC
719 display: flex;
720 flex-flow: row wrap;
721 margin: 0 auto;
722}
723
80302e5a 724article aside .tools li {
34aa06a9
TC
725 display: inline-flex;
726 vertical-align: middle;
34aa06a9
TC
727}
728
729#article aside .tools a {
730 color: #000;
5ecdfcd0
TC
731 text-decoration: none;
732}
733
734#article aside #list {
735 float: right;
eef833d6 736 margin: 0 15px 10px;
5ecdfcd0
TC
737}
738
739#article aside .chip {
1d4d9aaf 740 background-color: rgba(0, 151, 167, 0.85);
eef833d6 741 padding: 0 15px 0 10px;
34aa06a9 742 margin: auto 2px;
5ecdfcd0
TC
743}
744
34aa06a9 745#article aside .chip a,
5ecdfcd0
TC
746#article aside .chip i {
747 color: #fff;
748}
749
750/* ==========================================================================
751 6 = Media queries
752 ========================================================================== */
753
754@media only screen and (max-width: 992px) {
755 header,
756 main,
757 footer {
758 padding-left: 0;
759 }
c146f694 760
5ecdfcd0
TC
761 nav,
762 main,
763 footer {
764 padding-left: 0;
765 }
c146f694 766
5ecdfcd0
TC
767 .pagination {
768 width: auto;
1d4d9aaf 769 }
c146f694 770
38dc91be 771 #article {
38dc91be
AD
772 max-width: 35em;
773 margin-left: auto;
774 margin-right: auto;
775 font-size: 18px;
776 }
777
778 #article > header > h1 {
779 font-size: 1.33em;
780 }
781
5ecdfcd0
TC
782 .reader-mode {
783 width: 240px !important;
784 }
c146f694 785
5ecdfcd0
TC
786 .reader-mode span {
787 opacity: 1;
788 }
c146f694 789
5ecdfcd0
TC
790 .tabs {
791 display: inline-block;
792 height: auto;
793 }
c146f694 794
5ecdfcd0
TC
795 .tab {
796 min-width: 100%;
797 }
c146f694 798
5ecdfcd0
TC
799 .indicator {
800 display: none;
801 }
c146f694 802
1d4d9aaf
TC
803 .pagination li.prev,
804 .pagination li.next {
5ecdfcd0
TC
805 width: auto;
806 }
807}
808
809@media only screen and (min-width: 400px) {
810 .nav-panel-buttom {
811 float: right;
812 }
813}
814
3221b2e4
TC
815@media only screen and (min-width: 1200px) and (max-width: 1650px) {
816 .row .col.l3 {
817 width: 33.33333%;
818 margin-left: 0;
819 }
820}
821
822@media only screen and (min-width: 993px) and (max-width: 1200px) {
5ecdfcd0
TC
823 .row .col.l1 {
824 width: 25%;
825 margin-left: 0;
826 }
c146f694 827
5ecdfcd0
TC
828 .row .col.l2 {
829 width: 33.33333%;
830 margin-left: 0;
831 }
c146f694 832
5ecdfcd0
TC
833 .row .col.l3 {
834 width: 41.66667%;
835 margin-left: 0;
836 }
c146f694 837
5ecdfcd0
TC
838 .row .col.l4 {
839 width: 50%;
840 margin-left: 0;
841 }
c146f694 842
5ecdfcd0
TC
843 .row .col.l5 {
844 width: 58.33333%;
845 margin-left: 0;
846 }
c146f694 847
5ecdfcd0
TC
848 .row .col.l6 {
849 width: 66.66667%;
850 margin-left: 0;
851 }
c146f694 852
5ecdfcd0
TC
853 .row .col.l7 {
854 width: 75%;
855 margin-left: 0;
856 }
c146f694 857
5ecdfcd0
TC
858 .row .col.l8 {
859 width: 83.33333%;
860 margin-left: 0;
861 }
c146f694 862
5ecdfcd0
TC
863 .row .col.l9 {
864 width: 91.66667%;
865 margin-left: 0;
866 }
c146f694 867
5ecdfcd0
TC
868 .row .col.l10 {
869 width: 100%;
870 margin-left: 0;
871 }
872}
873
874@media only screen and (max-width: 350px) {
875 .nb-results {
876 display: none;
877 }
34aa06a9
TC
878
879 main ul.row {
880 padding: 0;
881 }
882
883 .row .col {
884 padding: 0;
885 }
5ecdfcd0
TC
886}
887
888/* ==========================================================================
889 7 = Font
890 ========================================================================== */
891
892.icon-google-plus2::before {
893 content: "\ea89";
894}
895
896.icon-facebook2::before {
897 content: "\ea8d";
898}
899
900.icon-twitter::before {
a494c33e 901 content: "\ea96";
5ecdfcd0
TC
902}
903
904.icon-apple::before {
905 content: "\eabf";
906}
907
908.icon-android::before {
909 content: "\eac1";
910}
911
912.icon-chrome::before {
913 content: "\eae5";
914}
915
916.icon-firefox::before {
917 content: "\eae6";
918}
919
8e06720f 920.icon-link::before {
c146f694 921 content: "\e9cb";
8e06720f
NL
922}
923
5ecdfcd0
TC
924footer [class^="icon-"],
925footer [class*=" icon-"] {
926 font-size: 2em;
927 transition: text-shadow 0.2s ease;
928 padding-right: 10px;
929}
930
1d4d9aaf
TC
931footer [class^="icon-"]:hover,
932footer [class*=" icon-"]:hover {
5ecdfcd0
TC
933 text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
934}
935
936/* ==========================================================================
937 8 = Others
938 ========================================================================== */
939
940/* force height on non-input field in the settings page */
941div.settings div.input-field div,
942div.settings div.input-field ul {
943 margin-top: 40px;
944}
945
946/* but avoid to kill all file input */
947div.settings div.file-field div {
948 margin-top: inherit;
949}
b1e0a586
NL
950
951.input-field label.active {
c146f694 952 font-size: 1rem;
b1e0a586 953}
38dc91be
AD
954
955nav .input-field input {
956 margin: 0;
957}