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