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