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