]> git.immae.eu Git - github/wallabag/wallabag.git/blob - themes/baggy/css/main.css
586501b0611242bcf095adac5eeff939361fd772
[github/wallabag/wallabag.git] / themes / baggy / css / main.css
1 /* ==========================================================================
2 Sommaire
3
4 1 = Style Guide
5 2 = Layout
6 3 = Pictos
7 4 = Messages
8 5 = Article
9 6 = Media queries
10
11 ========================================================================== */
12
13 html {
14 min-height: 100%;
15 }
16
17 body {
18 background: #EEE;
19 }
20
21 .login {
22 background: #333;
23 }
24
25 .login #main {
26 padding: 0;
27 margin: 0;
28 }
29
30 .login form {
31 background: #FFF;
32 padding: 1.5em;
33 box-shadow: 0 1px 8px rgba(0,0,0,0.9);
34 width: 20em;
35 position: absolute;
36 top: 8em;
37 left: 50%;
38 margin-left: -10em;
39 }
40
41 .login .logo {
42 position: absolute;
43 top: 2em;
44 left: 50%;
45 margin-left: -55px;
46 }
47
48 /* ==========================================================================
49 1 = Style Guide
50 ========================================================================== */
51
52 ::selection {
53 color: #FFF;
54 background: #000;
55 }
56
57 .desktopHide {
58 display: none;
59 }
60
61 .logo {
62 position: fixed;
63 z-index: 20;
64 top: 0.4em;
65 left: 0.6em;
66 }
67
68 h2, h3, h4 {
69 font-family: 'PT Sans', sans-serif;
70 text-transform: uppercase;
71 }
72
73 p, li {
74 color: #666;
75 }
76
77 a {
78 color: #000;
79 font-weight: bold;
80 }
81
82 a:hover, a:focus {
83 text-decoration: none;
84 }
85
86 form fieldset {
87 border:0;
88 padding: 0;
89 margin: 0;
90 }
91
92 form input[type="text"], select, form input[type="password"], form input[type="url"] {
93 border: 1px solid #999;
94 padding: 0.5em 1em;
95 min-width: 12em;
96 color: #666;
97 }
98
99 @media screen and (-webkit-min-device-pixel-ratio:0){
100 select{
101 -webkit-appearance: none;
102 border-radius: 0;
103 background: #FFF url(../img/bg-select.png) no-repeat right center;
104 }
105 }
106
107 fieldset label {
108 min-width: 12.5em;
109 }
110
111 .inline .row {
112 display: inline-block;
113 margin-right: 0.5em;
114 }
115
116 .inline label {
117 min-width: 6em;
118 }
119
120 fieldset label {
121 display: inline-block;
122 margin-right: 0.5em;
123 color: #666;
124 }
125
126 form .row {
127 margin-bottom: 0.5em;
128 }
129
130 form button, input[type="submit"] {
131 cursor:pointer;
132 background: #000;
133 color: #FFF;
134 border:0;
135 padding: 0.5em 1em;
136 display: inline-block;
137 border:1px solid #000;
138 }
139
140 form button:hover, form button:focus, input[type="submit"]:hover, input[type="submit"]:focus {
141 background: #FFF;
142 color: #000;
143 -webkit-transition: all 0.5s ease;
144 -moz-transition: all 0.5s ease;
145 -ms-transition: all 0.5s ease;
146 -o-transition: all 0.5s ease;
147 transition: all 0.5s ease;
148 }
149
150 #bookmarklet {
151 cursor: move;
152 }
153
154 h2:after {
155 content: "";
156 height: 4px;
157 width: 70px;
158 background: #000;
159 display: block;
160 }
161
162 .links {
163 padding: 0;
164 margin: 0;
165 }
166 .links li {
167 list-style: none;
168 margin: 0;
169 padding: 0;
170 }
171
172
173 #links {
174 position: fixed;
175 top: 0;
176 width: 10em;
177 left: 0;
178 text-align: right;
179 background: #333;
180 padding-top: 9.5em;
181 height: 100%;
182 box-shadow:inset -4px 0 20px rgba(0,0,0,0.6);
183 z-index: 10;
184 }
185
186 #main {
187 margin-left: 13em;
188 position: relative;
189 z-index: 10;
190 padding-right: 5%;
191 padding-bottom: 1em;
192 }
193
194 #links a {
195 display: block;
196 padding: 0.5em 2em 0.5em 1em;
197 color: #FFF;
198 position: relative;
199 text-transform: uppercase;
200 text-decoration: none;
201 font-weight: normal;
202 font-family: 'PT Sans', sans-serif;
203 -webkit-transition: all 0.5s ease;
204 -moz-transition: all 0.5s ease;
205 -ms-transition: all 0.5s ease;
206 -o-transition: all 0.5s ease;
207 transition: all 0.5s ease;
208 }
209
210 #links a:hover, #links a:focus {
211 background: #999;
212 color: #000;
213 }
214
215 #links .current:after {
216 content: "";
217 width: 0;
218 height: 0;
219 position: absolute;
220 border-style: solid;
221 border-width: 10px;
222 border-color: transparent #EEE transparent transparent;
223 right: 0;
224 top: 50%;
225 margin-top: -10px;
226 }
227
228 #links li:last-child {
229 position: fixed;
230 bottom: 1em;
231 width: 10em;
232 }
233
234 #links li:last-child a:before {
235 font-size: 1.2em;
236 position: relative;
237 top: 2px;
238 }
239
240
241 #sort {
242 padding: 0;
243 list-style-type: none;
244 opacity: 0.5;
245 display: inline-block;
246 }
247
248 #sort li {
249 display: inline;
250 font-size: 0.9em;
251 }
252
253 #sort li + li {
254 margin-left: 10px;
255 }
256
257 #sort a {
258 padding: 2px 2px 0;
259 vertical-align: middle;
260 }
261
262 #sort img {
263 vertical-align: baseline;
264 }
265 #sort img:hover {
266 cursor: pointer;
267 }
268
269 #display-mode {
270 float: right;
271 vertical-align: middle;
272 margin-top: 10px;
273 margin-bottom: 10px;
274 opacity: 0.5;
275 }
276 #listmode {
277 width: 16px;
278 display: inline-block;
279 text-decoration: none;
280 }
281 #listmode a:hover {
282 opacity: 1;
283 }
284 .tablemode {
285 background-image: url("../img/baggy/table.png");
286 background-repeat: no-repeat;
287 background-position: bottom;
288 }
289 .listmode {
290 background-image: url("../img/baggy/list.png");
291 background-repeat: no-repeat;
292 background-position: bottom;
293 }
294
295
296 /* ==========================================================================
297 2 = Layout
298 ========================================================================== */
299
300 #content {
301 margin-top: 5em;
302 min-height: 30em;
303 }
304
305 footer {
306 text-align: right;
307 position: relative;
308 bottom: 0;
309 right: 5em;
310 color: #999;
311 font-size: 0.8em;
312 font-style: italic;
313 z-index: 20;
314 }
315
316 footer a {
317 color: #999;
318 font-weight: normal;
319 }
320
321 .list-entries {
322 letter-spacing:-5px;
323 }
324
325 .listmode .entrie {
326 width: 100%!important;
327 margin-left: 0!important;
328 }
329
330 .listmode .entrie p {
331 display: none;
332 }
333
334 .list-entries + .results {
335 margin-bottom: 2em;
336 }
337
338 .estimatedTime a {
339 color: #999;
340 font-style: italic;
341 font-weight: normal;
342 font-size: 0.9em;
343 }
344
345 .estimatedTime small {
346 position: relative;
347 top: -1px;
348 }
349
350 .entrie {
351 background: #FFF;
352 letter-spacing:normal;
353 box-shadow: 0 3px 7px rgba(0,0,0,0.3);
354 display: inline-block;
355 width: 32%!important;
356 margin-bottom: 1.5em;
357 vertical-align: top;
358 margin-left: 1.5%!important;
359 position: relative;
360 overflow: hidden;
361 padding: 1.5em 1.5em 3em 1.5em;
362 -webkit-transition: all 0.5s ease;
363 -moz-transition: all 0.5s ease;
364 -ms-transition: all 0.5s ease;
365 -o-transition: all 0.5s ease;
366 transition: all 0.5s ease;
367 }
368
369 .entrie:before {
370 content: "";
371 width: 0;
372 height: 0;
373 border-style:solid;
374 border-color: transparent transparent #000 transparent;
375 border-width: 10px;
376 position: absolute;
377 bottom: 0.3em;
378 z-index: 10;
379 right: 1.5em;
380 -webkit-transition: all 0.5s ease;
381 -moz-transition: all 0.5s ease;
382 -ms-transition: all 0.5s ease;
383 -o-transition: all 0.5s ease;
384 transition: all 0.5s ease;
385 }
386
387 .entrie:after {
388 content: "";
389 position: absolute;
390 height: 7px;
391 width: 100%;
392 bottom: 0;
393 left: 0;
394 background: #000;
395 -webkit-transition: all 0.5s ease;
396 -moz-transition: all 0.5s ease;
397 -ms-transition: all 0.5s ease;
398 -o-transition: all 0.5s ease;
399 transition: all 0.5s ease;
400 }
401
402 .entrie:hover {
403 box-shadow: 0 3px 10px rgba(0,0,0,1);
404 }
405
406 .entrie:hover:after {
407 height: 40px;
408 }
409
410 .entrie:hover:before {
411 bottom: 2.4em;
412 }
413
414 .entrie:hover h2 a {
415 color: #666;
416 }
417
418 .entrie h2 {
419 text-transform: none;
420 margin-bottom: 0;
421 }
422
423 .entrie h2:after {
424 content: none;
425 }
426
427 .entrie h2 a {
428 display: block;
429 text-decoration: none;
430 color: #000;
431 word-wrap: break-word;
432 -webkit-transition: all 0.5s ease;
433 -moz-transition: all 0.5s ease;
434 -ms-transition: all 0.5s ease;
435 -o-transition: all 0.5s ease;
436 transition: all 0.5s ease;
437 }
438
439 .entrie h2 a:after {
440 content: "";
441 position: absolute;
442 top: 0;
443 width: 100%;
444 height: 100%;
445 left: 0;
446 }
447
448 .entrie p {
449 color: #666;
450 font-size: 0.9em;
451 line-height: 1.7;
452 }
453
454 .entrie h2 a:first-letter {
455 text-transform: uppercase;
456 }
457
458 .entrie:hover .tools {
459 bottom: 0;
460 }
461
462 .entrie .tools {
463 position: absolute;
464 bottom: -50px;
465 left: 0;
466 width: 100%;
467 z-index: 10;
468 padding-right: 0.5em;
469 text-align: right;
470 -webkit-transition: all 0.5s ease;
471 -moz-transition: all 0.5s ease;
472 -ms-transition: all 0.5s ease;
473 -o-transition: all 0.5s ease;
474 transition: all 0.5s ease;
475 }
476
477 .entrie .tools a {
478 color: #666;
479 text-decoration: none;
480 display: block;
481 padding: 0.4em;
482 }
483
484 .entrie .tools a:hover {
485 color: #FFF;
486 }
487
488 .entrie .tools li {
489 display: inline-block;
490 }
491
492 .entrie:nth-child(3n+1) {
493 margin-left: 0!important;
494 }
495
496 .results {
497 letter-spacing: -5px;
498 padding: 0 0 0.5em;
499 }
500
501 .results > * {
502 display: inline-block;
503 vertical-align: top;
504 letter-spacing: normal;
505 width: 50%;
506 }
507
508 .pagination {
509 text-align: right;
510 margin-bottom:50px;
511 }
512
513 .nb-results {
514 text-align: left;
515 font-style: italic;
516 color: #999;
517 }
518
519 .pagination > * {
520 display: inline-block;
521 margin-left: 0.5em;
522 }
523
524 .pagination a {
525 color: #999;
526 text-decoration: none;
527 }
528
529 .pagination a:hover, .pagination a:focus {
530 text-decoration: underline;
531 }
532
533 .pagination .disabled {
534 display: none;
535 }
536
537 #bagit-form {
538 background: rgba(0,0,0,0.8);
539 position: fixed;
540 top: 0;
541 left: 10em;
542 z-index: 20;
543 height: 100%;
544 width: 100%;
545 margin: 0;
546 padding: 2em;
547 display: none;
548 }
549
550 #bagit-form form {
551 background: #FFF;
552 position: absolute;
553 top: 50%;
554 left: 50%;
555 z-index: 20;
556 border: 10px solid #000;
557 width: 600px;
558 height: 300px;
559 margin: -150px 0 0 -300px;
560 padding: 2em;
561 }
562
563
564 /* ==========================================================================
565 3 = Pictos
566 ========================================================================== */
567
568 @font-face {
569 font-family: 'icomoon';
570 src:url('../fonts/icomoon.eot?-s0mcsx');
571 src:url('../fonts/icomoon.eot?#iefix-s0mcsx') format('embedded-opentype'),
572 url('../fonts/icomoon.woff?-s0mcsx') format('woff'),
573 url('../fonts/icomoon.ttf?-s0mcsx') format('truetype'),
574 url('../fonts/icomoon.svg?-s0mcsx#icomoon') format('svg');
575 font-weight: normal;
576 font-style: normal;
577 }
578
579 .icon span {
580 position: absolute;
581 top: -9999px;
582 }
583
584 [class^="icon-"]:before, [class*=" icon-"]:before {
585 font-family: 'icomoon';
586 speak: none;
587 font-style: normal;
588 font-weight: normal;
589 font-variant: normal;
590 text-transform: none;
591 line-height: 1;
592
593 /* Better Font Rendering =========== */
594 -webkit-font-smoothing: antialiased;
595 -moz-osx-font-smoothing: grayscale;
596 }
597
598 .icon-flattr:before {
599 content: "\e800";
600 }
601 .icon-mail:before {
602 content: "\e80a";
603 }
604 .icon-up-open:before {
605 content: "\e80b";
606 }
607 .icon-star:before {
608 content: "\e805";
609 }
610 .icon-check:before {
611 content: "\e804";
612 }
613 .icon-link:before {
614 content: "\e801";
615 }
616 .icon-reply:before {
617 content: "\e806";
618 }
619 .icon-menu:before {
620 content: "\e802";
621 }
622 .icon-clock:before {
623 content: "\e803";
624 }
625 .icon-twitter:before {
626 content: "\e807";
627 }
628 .icon-down-open:before {
629 content: "\e809";
630 }
631 .icon-trash:before {
632 content: "\e80c";
633 }
634 .icon-delete:before {
635 content: "\e600";
636 }
637 .icon-power:before {
638 content: "\e601";
639 }
640 .icon-arrow-up-thick:before {
641 content: "\e602";
642 }
643 .icon-rss:before {
644 content: "\e808";
645 }
646
647 /* ==========================================================================
648 Icon selected
649 ========================================================================== */
650
651 .icon-star.fav:before {
652 color: #FFF;
653 }
654
655 /* ==========================================================================
656 4 = Messages
657 ========================================================================== */
658
659 .messages {
660 text-align: left;
661 margin-top: 1em;
662 }
663
664 .messages > * { display: inline-block;}
665
666 .closeMessage {
667 background: #000;
668 color: #FFF;
669 padding: 0.2em 0.5em;
670 text-decoration: none;
671 }
672
673 .closeMessage:hover, .closeMessage:focus {
674 background: #FFF;
675 color: #000;
676 }
677
678 .warning {
679 font-size: 3em;
680 color: #999;
681 font-style: italic;
682 position: absolute;
683 top: 50%;
684 left: 0;
685 width: 100%;
686 text-align: center;
687 padding-right: 5%;
688 margin-top: -2em;
689 }
690
691 /* ==========================================================================
692 5 = Article
693 ========================================================================== */
694
695 #article {
696 width: 70%;
697 margin-bottom: 3em;
698 }
699
700 #article .tags {
701 margin-bottom: 1em;
702 }
703
704 #article i {
705 font-style: normal;
706 }
707
708 blockquote {
709 border:1px solid #999;
710 background: #FFF;
711 padding: 1em;
712 margin: 0;
713 }
714
715 #article h2, #article h3, #article h4 {
716 text-transform: none;
717 }
718
719 #article h2:after {
720 content: none;
721 }
722
723 .topPosF {
724 position: fixed;
725 right: 20%;
726 bottom: 2em;
727 font-size: 1.5em;
728 }
729
730 #article_toolbar {
731 margin-bottom: 1em;
732 }
733
734 #article_toolbar li {
735 display: inline-block;
736 }
737
738 #article_toolbar a {
739 background: #000;
740 padding: 0.3em 0.5em 0.2em;
741 color: #FFF;
742 text-decoration: none;
743 }
744
745 #article_toolbar a:hover, #article_toolbar a:focus {
746 background: #999;
747 }
748
749 .shaarli:before {
750 content: "*";
751 }
752
753 .return {
754 text-decoration: none;
755 margin-top: 1em;
756 display: block;
757 }
758
759 .return:before {
760 margin-right: 0.5em;
761 }
762
763 .notags {
764 font-style: italic;
765 color: #999;
766 }
767
768 .icon-rss {
769 background: #000;
770 color: #FFF;
771 padding: 0.2em 0.5em;
772 }
773
774 .icon-rss:before {
775 position: relative;
776 top: 2px;
777 }
778
779 .list-tags li {
780 margin-bottom: 0.5em;
781 }
782
783 .list-tags .icon-rss:hover, .list-tags .icon-rss:focus {
784 background: #FFF;
785 color: #000;
786 text-decoration: none;
787 }
788
789 .list-tags a {
790 text-decoration: none;
791 }
792
793 .list-tags a:hover, .list-tags a:focus {
794 text-decoration: underline;
795 }
796
797 /* ==========================================================================
798 6 = Media Queries
799 ========================================================================== */
800
801 @media screen and (max-width: 1050px) {
802 .entrie {
803 width: 49%;
804 }
805 .entrie:nth-child(3n+1) {
806 margin-left: 1.5%;
807 }
808 .entrie:nth-child(2n+1) {
809 margin-left: 0;
810 }
811 }
812
813 @media screen and (max-width: 900px) {
814 #article {
815 width: 80%;
816 }
817 .topPosF {
818 right: 2.5em;
819 }
820 }
821
822 @media screen and (max-width: 700px) {
823 .entrie {
824 width: 100%;
825 margin-left: 0;
826 }
827 #display-mode {
828 display: none;
829 }
830 }
831
832 @media screen and (max-width: 500px) {
833 .entrie {
834 width: 100%;
835 margin-left: 0;
836 }
837 body > header {
838 background: #333;
839 position: fixed;
840 top: 0;
841 width: 100%;
842 height: 3em;
843 z-index: 11;
844 }
845 #links li:last-child {
846 position: static;
847 width: auto;
848 }
849 #links li:last-child a:before {
850 content: none;
851 }
852 .logo {
853 width: 1.5em;
854 height: 1.5em;
855 left: 0;
856 top: 0;
857 }
858 .login > header {
859 position: static;
860 }
861 .login form {
862 width: 100%;
863 position: static;
864 margin-left: 0;
865 }
866 .login .logo {
867 width: auto;
868 height: auto;
869 top: 0.5em;
870 width: 75px;
871 height: 75px;
872 margin-left: -37.5px;
873 }
874 .desktopHide {
875 display: block;
876 position: fixed;
877 z-index: 20;
878 top: 0;
879 right: 0;
880 border:0;
881 width: 2.5em;
882 height: 2.5em;
883 cursor: pointer;
884 background: #999;
885 font-size: 1.2em;
886 }
887 .desktopHide:hover, .desktopHide:focus {
888 background: #FFF;
889 }
890 #links {
891 display: none;
892 width: 100%;
893 height: auto;
894 padding-top: 3em;
895 }
896 footer {
897 position: static;
898 margin-right: 3em;
899 }
900 #main {
901 margin-left: 1.5em;
902 padding-right: 1.5em;
903 position: static;
904 }
905 #article_toolbar .topPosF {
906 display: none;
907 }
908
909 #article {
910 width: 100%;
911 }
912
913 #article h1 {
914 font-size: 1.5em;
915 }
916 #article_toolbar a {
917 padding: 0.3em 0.4em 0.2em;
918 }
919
920 #display-mode {
921 display: none;
922 }
923 }