]> git.immae.eu Git - github/wallabag/wallabag.git/blame - app/Resources/static/themes/material/css/main.css
Display a bigger image in case of image content
[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
7005b425
JB
510.card .card-entry-labels-hidden li:first-child {
511 margin-left: 0;
512}
513
15f1352e
TC
514.card-entry-tags a,
515.card-entry-labels a,
28bb4890 516.card-tag-labels a,
15f1352e
TC
517.card-entry-labels-hidden a,
518#list .chip a {
519 text-decoration: none;
520 font-weight: normal;
521 color: #fff;
522}
523
5ecdfcd0
TC
524.card .card-content .estimatedTime {
525 margin-bottom: 10px;
526}
527
34aa06a9
TC
528.card .card-action {
529 padding: 10px 5px 10px 15px;
5ecdfcd0
TC
530}
531
532.card .card-action ul.links {
533 margin: 0;
534 font-size: 24px;
535 line-height: 24px;
536}
537
538.card .card-action a {
0f70abd6 539 color: #fff;
5ecdfcd0
TC
540 margin: 0;
541}
542
543.card .card-action a:hover {
0f70abd6
NL
544 color: #fff;
545}
546
34aa06a9
TC
547.card .card-action .reading-time {
548 display: inline-flex;
549 vertical-align: middle;
550}
551
9f7d154e
TC
552.quickstart .card .card-action a,
553.quickstart .card .card-action a:hover {
554 color: #fff !important;
5ecdfcd0
TC
555}
556
557.settings .div_tabs {
558 padding-bottom: 15px;
559}
560
561.card.sw {
562 max-width: 370px;
563 margin-left: auto;
564 margin-right: auto;
565}
566
567.card .card-image {
34aa06a9 568 height: 10em;
5ecdfcd0
TC
569}
570
8d7b4f0e
JB
571.card .card-fullimage {
572 height: 13.5em;
573}
574
575.card .card-image .preview,
576.card .card-fullimage .preview {
5ecdfcd0
TC
577 height: 14em;
578 background-size: cover;
579 background-repeat: no-repeat;
580 background-position: 50%;
581}
582
583/* ==========================================================================
584 5 = Article
585 ========================================================================== */
586
587#article {
588 font-size: 20px;
589 margin: 0 auto;
590 max-width: 40em;
591}
592
79efca1e
JB
593#article img,
594#article figure {
5ecdfcd0
TC
595 max-width: 100%;
596 height: auto;
597}
598
a15022db 599#article > header > h1 {
34aa06a9
TC
600 font-size: 2em;
601 margin: 2.1rem 0 0.68rem;
a15022db
TC
602}
603
5ecdfcd0
TC
604.reader-mode {
605 width: 95px !important;
606 transition: width 0.2s ease;
607}
608
609.reader-mode:hover {
610 width: 240px !important;
611}
612
613.reader-mode .collapsible-body {
614 height: 0;
615 overflow: hidden;
616}
617
618.reader-mode:hover .collapsible-body {
619 height: auto;
620}
621
622.reader-mode span {
623 opacity: 0;
624 transition: opacity 0.2s ease;
625}
626
627.reader-mode:hover span {
628 opacity: 1;
629}
630
631.progress {
632 position: fixed;
633 top: 0;
634 width: 100%;
635 height: 3px;
636 margin: 0;
637 z-index: 9999;
638}
639
34aa06a9 640#article aside .tools {
5ecdfcd0 641 font-size: 0.8em;
34aa06a9
TC
642 display: flex;
643 flex-flow: row wrap;
644 margin: 0 auto;
645}
646
647#article aside .tools li {
648 display: inline-flex;
649 vertical-align: middle;
650 margin: auto 10px;
651}
652
653#article aside .tools a {
654 color: #000;
5ecdfcd0
TC
655 text-decoration: none;
656}
657
658#article aside #list {
659 float: right;
eef833d6 660 margin: 0 15px 10px;
5ecdfcd0
TC
661}
662
663#article aside .chip {
1d4d9aaf 664 background-color: rgba(0, 151, 167, 0.85);
eef833d6 665 padding: 0 15px 0 10px;
34aa06a9 666 margin: auto 2px;
5ecdfcd0
TC
667}
668
34aa06a9 669#article aside .chip a,
5ecdfcd0
TC
670#article aside .chip i {
671 color: #fff;
672}
673
674/* ==========================================================================
675 6 = Media queries
676 ========================================================================== */
677
678@media only screen and (max-width: 992px) {
679 header,
680 main,
681 footer {
682 padding-left: 0;
683 }
c146f694 684
5ecdfcd0
TC
685 nav,
686 main,
687 footer {
688 padding-left: 0;
689 }
c146f694 690
5ecdfcd0
TC
691 .pagination {
692 width: auto;
1d4d9aaf 693 }
c146f694 694
38dc91be 695 #article {
38dc91be
AD
696 max-width: 35em;
697 margin-left: auto;
698 margin-right: auto;
699 font-size: 18px;
700 }
701
702 #article > header > h1 {
703 font-size: 1.33em;
704 }
705
5ecdfcd0
TC
706 .reader-mode {
707 width: 240px !important;
708 }
c146f694 709
5ecdfcd0
TC
710 .reader-mode span {
711 opacity: 1;
712 }
c146f694 713
5ecdfcd0
TC
714 .tabs {
715 display: inline-block;
716 height: auto;
717 }
c146f694 718
5ecdfcd0
TC
719 .tab {
720 min-width: 100%;
721 }
c146f694 722
5ecdfcd0
TC
723 .indicator {
724 display: none;
725 }
c146f694 726
1d4d9aaf
TC
727 .pagination li.prev,
728 .pagination li.next {
5ecdfcd0
TC
729 width: auto;
730 }
731}
732
733@media only screen and (min-width: 400px) {
734 .nav-panel-buttom {
735 float: right;
736 }
737}
738
3221b2e4
TC
739@media only screen and (min-width: 1200px) and (max-width: 1650px) {
740 .row .col.l3 {
741 width: 33.33333%;
742 margin-left: 0;
743 }
744}
745
746@media only screen and (min-width: 993px) and (max-width: 1200px) {
5ecdfcd0
TC
747 .row .col.l1 {
748 width: 25%;
749 margin-left: 0;
750 }
c146f694 751
5ecdfcd0
TC
752 .row .col.l2 {
753 width: 33.33333%;
754 margin-left: 0;
755 }
c146f694 756
5ecdfcd0
TC
757 .row .col.l3 {
758 width: 41.66667%;
759 margin-left: 0;
760 }
c146f694 761
5ecdfcd0
TC
762 .row .col.l4 {
763 width: 50%;
764 margin-left: 0;
765 }
c146f694 766
5ecdfcd0
TC
767 .row .col.l5 {
768 width: 58.33333%;
769 margin-left: 0;
770 }
c146f694 771
5ecdfcd0
TC
772 .row .col.l6 {
773 width: 66.66667%;
774 margin-left: 0;
775 }
c146f694 776
5ecdfcd0
TC
777 .row .col.l7 {
778 width: 75%;
779 margin-left: 0;
780 }
c146f694 781
5ecdfcd0
TC
782 .row .col.l8 {
783 width: 83.33333%;
784 margin-left: 0;
785 }
c146f694 786
5ecdfcd0
TC
787 .row .col.l9 {
788 width: 91.66667%;
789 margin-left: 0;
790 }
c146f694 791
5ecdfcd0
TC
792 .row .col.l10 {
793 width: 100%;
794 margin-left: 0;
795 }
796}
797
798@media only screen and (max-width: 350px) {
799 .nb-results {
800 display: none;
801 }
34aa06a9
TC
802
803 main ul.row {
804 padding: 0;
805 }
806
807 .row .col {
808 padding: 0;
809 }
5ecdfcd0
TC
810}
811
812/* ==========================================================================
813 7 = Font
814 ========================================================================== */
815
816.icon-google-plus2::before {
817 content: "\ea89";
818}
819
820.icon-facebook2::before {
821 content: "\ea8d";
822}
823
824.icon-twitter::before {
a494c33e 825 content: "\ea96";
5ecdfcd0
TC
826}
827
828.icon-apple::before {
829 content: "\eabf";
830}
831
832.icon-android::before {
833 content: "\eac1";
834}
835
836.icon-chrome::before {
837 content: "\eae5";
838}
839
840.icon-firefox::before {
841 content: "\eae6";
842}
843
8e06720f 844.icon-link::before {
c146f694 845 content: "\e9cb";
8e06720f
NL
846}
847
5ecdfcd0
TC
848footer [class^="icon-"],
849footer [class*=" icon-"] {
850 font-size: 2em;
851 transition: text-shadow 0.2s ease;
852 padding-right: 10px;
853}
854
1d4d9aaf
TC
855footer [class^="icon-"]:hover,
856footer [class*=" icon-"]:hover {
5ecdfcd0
TC
857 text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
858}
859
860/* ==========================================================================
861 8 = Others
862 ========================================================================== */
863
864/* force height on non-input field in the settings page */
865div.settings div.input-field div,
866div.settings div.input-field ul {
867 margin-top: 40px;
868}
869
870/* but avoid to kill all file input */
871div.settings div.file-field div {
872 margin-top: inherit;
873}
b1e0a586
NL
874
875.input-field label.active {
c146f694 876 font-size: 1rem;
b1e0a586 877}
38dc91be
AD
878
879nav .input-field input {
880 margin: 0;
881}