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