]> git.immae.eu Git - github/wallabag/wallabag.git/blob - themes/baggy/css/main.css
Making visual styling of search and bag it popup forms more consistent
[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 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 .inline .row {
108 display: inline-block;
109 margin-right: 0.5em;
110 }
111
112 .inline label {
113 min-width: 6em;
114 }
115
116 fieldset label {
117 display: inline-block;
118 min-width: 12.5em;
119 color: #666;
120 }
121
122 label {
123 margin-right: 0.5em;
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: 15;
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 > li > 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 > li > a:hover, #links > li > 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 .list-entries + .results {
331 margin-bottom: 2em;
332 }
333
334 .estimatedTime a {
335 color: #999;
336 font-style: italic;
337 font-weight: normal;
338 font-size: 0.9em;
339 }
340
341 .estimatedTime small {
342 position: relative;
343 top: -1px;
344 }
345
346 .entrie {
347 background: #FFF;
348 letter-spacing:normal;
349 box-shadow: 0 3px 7px rgba(0,0,0,0.3);
350 display: inline-block;
351 width: 32%;
352 margin-bottom: 1.5em;
353 vertical-align: top;
354 margin-left: 1.5%;
355 position: relative;
356 overflow: hidden;
357 padding: 1.5em 1.5em 3em 1.5em;
358
359 /* Removing CSS transitions because they make the switch from list view to
360 * table view jerky
361 */
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
428 .entrie h2 a {
429 display: block;
430 text-decoration: none;
431 color: #000;
432 word-wrap: break-word;
433 -webkit-transition: all 0.5s ease;
434 -moz-transition: all 0.5s ease;
435 -ms-transition: all 0.5s ease;
436 -o-transition: all 0.5s ease;
437 transition: all 0.5s ease;
438 }
439 /*
440 .entrie h2 a:after {
441 content: "";
442 position: absolute;
443 top: 0;
444 width: 100%;
445 height: 100%;
446 left: 0;
447 }
448 */
449
450 .entrie p {
451 color: #666;
452 font-size: 0.9em;
453 line-height: 1.7;
454 }
455
456 .entrie h2 a:first-letter {
457 text-transform: uppercase;
458 }
459
460 .entrie:hover .tools {
461 bottom: 0;
462 }
463
464 .entrie .tools {
465 position: absolute;
466 bottom: -50px;
467 left: 0;
468 width: 100%;
469 z-index: 10;
470 padding-right: 0.5em;
471 text-align: right;
472 -webkit-transition: all 0.5s ease;
473 -moz-transition: all 0.5s ease;
474 -ms-transition: all 0.5s ease;
475 -o-transition: all 0.5s ease;
476 transition: all 0.5s ease;
477 }
478
479 .entrie .tools a {
480 color: #666;
481 text-decoration: none;
482 display: block;
483 padding: 0.4em;
484 }
485
486 .entrie .tools a:hover {
487 color: #FFF;
488 }
489
490 .entrie .tools li {
491 display: inline-block;
492 }
493
494 .entrie:nth-child(3n+1) {
495 margin-left: 0;
496 }
497
498 .results {
499 letter-spacing: -5px;
500 padding: 0 0 0.5em;
501 }
502
503 .results > * {
504 display: inline-block;
505 vertical-align: top;
506 letter-spacing: normal;
507 width: 50%;
508 }
509
510 .pagination {
511 text-align: right;
512 margin-bottom:50px;
513 }
514
515 .nb-results {
516 text-align: left;
517 font-style: italic;
518 color: #999;
519 }
520
521 .pagination > * {
522 display: inline-block;
523 margin-left: 0.5em;
524 }
525
526 .pagination a {
527 color: #999;
528 text-decoration: none;
529 }
530
531 .pagination a:hover, .pagination a:focus {
532 text-decoration: underline;
533 }
534
535 .pagination .disabled {
536 display: none;
537 }
538
539 /* ==========================================================================
540 2.1 = "save a link" related styles
541 ========================================================================== */
542
543 .popup-form {
544 background: rgba(0,0,0,0.5);
545 position: absolute;
546 top: 0;
547 left: 10em;
548 z-index: 20;
549 height: 100%;
550 width: 100%;
551 margin: 0;
552 margin-top: -30% !important; /* TODO: get rid of !important here; overridden by .messages selector */
553 padding: 2em;
554 display: none;
555 border-left: 1px #EEE solid;
556 }
557
558 .popup-form form {
559 background: #FFF;
560 position: absolute;
561 top: 0;
562 left: 0;
563 z-index: 20;
564 border: 10px solid #000;
565 width: 400px;
566 height: 200px;
567 padding: 2em;
568 }
569
570 #bagit-form-form .addurl {
571 margin-left: 0;
572 }
573
574 .popup-close {
575 background: #000;
576 color: #FFF;
577 font-size: 1.4em;
578 line-height: 1.6em;
579 width: 1.6em;
580 height: 1.6em;
581 text-align: center;
582 text-decoration: none;
583 display: inline-block;
584 position: absolute;
585 top: 0;
586 right: 0;
587 }
588 .popup-close:hover {
589 background: #999;
590 color: #000;
591 }
592
593 .active-current {
594 background-color: #999;
595 }
596
597 .active-current:after {
598 content: "";
599 width: 0;
600 height: 0;
601 position: absolute;
602 border-style: solid;
603 border-width: 10px;
604 border-color: transparent #EEE transparent transparent;
605 right: 0;
606 top: 50%;
607 margin-top: -10px;
608 }
609
610 .opacity03 {
611 opacity: 0.3;
612 }
613
614 .add-to-wallabag-link-after {
615 background-color: #000;
616 color: #fff;
617 padding: 0 3px 2px 3px;
618 }
619
620 a.add-to-wallabag-link-after {
621 visibility: hidden;
622 position: absolute;
623 opacity: 0;
624 transition-duration: 2s;
625 transition-timing-function: ease-out;
626 }
627
628 #article article a:hover + a.add-to-wallabag-link-after, a.add-to-wallabag-link-after:hover {
629 opacity: 1;
630 visibility: visible;
631 transition-duration: .3s;
632 transition-timing-function: ease-in;
633 }
634
635 a.add-to-wallabag-link-after:after {
636 content: "w";
637 }
638
639 #add-link-result {
640 font-weight: bold;
641 font-size: 0.9em;
642 }
643
644 /* ==========================================================================
645 3 = Pictos
646 ========================================================================== */
647
648 @font-face {
649 font-family: 'icomoon';
650 src:url('../fonts/icomoon.eot?-s0mcsx');
651 src:url('../fonts/icomoon.eot?#iefix-s0mcsx') format('embedded-opentype'),
652 url('../fonts/icomoon.woff?-s0mcsx') format('woff'),
653 url('../fonts/icomoon.ttf?-s0mcsx') format('truetype'),
654 url('../fonts/icomoon.svg?-s0mcsx#icomoon') format('svg');
655 font-weight: normal;
656 font-style: normal;
657 }
658
659 .icon span {
660 position: absolute;
661 top: -9999px;
662 }
663
664 [class^="icon-"]:before, [class*=" icon-"]:before {
665 font-family: 'icomoon';
666 speak: none;
667 font-style: normal;
668 font-weight: normal;
669 font-variant: normal;
670 text-transform: none;
671 line-height: 1;
672
673 /* Better Font Rendering =========== */
674 -webkit-font-smoothing: antialiased;
675 -moz-osx-font-smoothing: grayscale;
676 }
677
678 .icon-flattr:before {
679 content: "\e800";
680 }
681 .icon-mail:before {
682 content: "\e80a";
683 }
684 .icon-up-open:before {
685 content: "\e80b";
686 }
687 .icon-star:before {
688 content: "\e805";
689 }
690 .icon-check:before {
691 content: "\e804";
692 }
693 .icon-link:before {
694 content: "\e801";
695 }
696 .icon-reply:before {
697 content: "\e806";
698 }
699 .icon-menu:before {
700 content: "\e802";
701 }
702 .icon-clock:before {
703 content: "\e803";
704 }
705 .icon-twitter:before {
706 content: "\e807";
707 }
708 .icon-down-open:before {
709 content: "\e809";
710 }
711 .icon-trash:before {
712 content: "\e80c";
713 }
714 .icon-delete:before {
715 content: "\e600";
716 }
717 .icon-power:before {
718 content: "\e601";
719 }
720 .icon-arrow-up-thick:before {
721 content: "\e602";
722 }
723 .icon-rss:before {
724 content: "\e808";
725 }
726 .icon-print:before {
727 content: "\e80d";
728 }
729
730 /* ==========================================================================
731 Icon selected
732 ========================================================================== */
733
734 .icon-star.fav:before {
735 color: #FFF;
736 }
737
738 .icon-check.archive:before {
739 color: #FFF;
740 }
741
742 /* ==========================================================================
743 4 = Messages
744 ========================================================================== */
745
746 .messages {
747 text-align: left;
748 margin-top: 1em;
749 }
750
751 .messages > * { display: inline-block;}
752
753 .closeMessage {
754 background: #000;
755 color: #FFF;
756 padding: 0.2em 0.5em;
757 text-decoration: none;
758 }
759
760 .closeMessage:hover, .closeMessage:focus {
761 background: #FFF;
762 color: #000;
763 }
764
765 .warning {
766 /* font-size: 3em;
767 color: #999;
768 font-style: italic;
769 position: absolute;
770 top: 50%;
771 left: 0;
772 width: 100%;
773 text-align: center;
774 padding-right: 5%;
775 margin-top: -2em;*/
776 font-weight: bold;
777 display: block;
778 width: 100%;
779 }
780
781 /* ==========================================================================
782 5 = Article
783 ========================================================================== */
784
785 #article {
786 width: 70%;
787 margin-bottom: 3em;
788 text-align: justify;
789 }
790
791 #article .tags {
792 margin-bottom: 1em;
793 }
794
795 #article i {
796 font-style: normal;
797 }
798
799 blockquote {
800 border:1px solid #999;
801 background: #FFF;
802 padding: 1em;
803 margin: 0;
804 }
805
806 #article h2, #article h3, #article h4 {
807 text-transform: none;
808 }
809
810 #article h2:after {
811 content: none;
812 }
813
814 .topPosF {
815 position: fixed;
816 right: 20%;
817 bottom: 2em;
818 font-size: 1.5em;
819 }
820
821 #article_toolbar {
822 margin-bottom: 1em;
823 }
824
825 #article_toolbar li {
826 display: inline-block;
827 }
828
829 #article_toolbar a {
830 background: #000;
831 padding: 0.3em 0.5em 0.2em;
832 color: #FFF;
833 text-decoration: none;
834 }
835
836 #article_toolbar a:hover, #article_toolbar a:focus {
837 background: #999;
838 }
839
840 .shaarli:before {
841 content: "*";
842 }
843
844 .return {
845 text-decoration: none;
846 margin-top: 1em;
847 display: block;
848 }
849
850 .return:before {
851 margin-right: 0.5em;
852 }
853
854 .notags {
855 font-style: italic;
856 color: #999;
857 }
858
859 .icon-rss {
860 background: #000;
861 color: #FFF;
862 padding: 0.2em 0.5em;
863 }
864
865 .icon-rss:before {
866 position: relative;
867 top: 2px;
868 }
869
870 .list-tags li {
871 margin-bottom: 0.5em;
872 }
873
874 .list-tags .icon-rss:hover, .list-tags .icon-rss:focus {
875 background: #FFF;
876 color: #000;
877 text-decoration: none;
878 }
879
880 .list-tags a {
881 text-decoration: none;
882 }
883
884 .list-tags a:hover, .list-tags a:focus {
885 text-decoration: underline;
886 }
887
888 pre code {
889 font-family: "Courier New", Courier, monospace;
890 border: 1px solid #ccc;
891 font-size: 0.96em;
892 }
893
894
895 /* ==========================================================================
896 6 = Media Queries
897 ========================================================================== */
898
899 @media screen and (max-width: 1050px) {
900 .entrie {
901 width: 49%;
902 }
903 .entrie:nth-child(3n+1) {
904 margin-left: 1.5%;
905 }
906 .entrie:nth-child(2n+1) {
907 margin-left: 0;
908 }
909 }
910
911 @media screen and (max-width: 900px) {
912 #article {
913 width: 80%;
914 }
915 .topPosF {
916 right: 2.5em;
917 }
918 }
919
920 @media screen and (max-width: 700px) {
921 .entrie {
922 width: 100%;
923 margin-left: 0;
924 }
925 #display-mode {
926 display: none;
927 }
928 }
929
930 @media screen and (max-width: 500px) {
931 .entrie {
932 width: 100%;
933 margin-left: 0;
934 }
935 body > header {
936 background: #333;
937 position: fixed;
938 top: 0;
939 width: 100%;
940 height: 3em;
941 z-index: 11;
942 }
943 #links li:last-child {
944 position: static;
945 width: auto;
946 }
947 #links li:last-child a:before {
948 content: none;
949 }
950 .logo {
951 width: 1.25em;
952 height: 1.25em;
953 left: 0;
954 top: 0;
955 }
956 .login > header {
957 position: static;
958 }
959 .login form {
960 width: 100%;
961 position: static;
962 margin-left: 0;
963 }
964 .login .logo {
965 width: auto;
966 height: auto;
967 top: 0.5em;
968 width: 75px;
969 height: 75px;
970 margin-left: -37.5px;
971 }
972 .desktopHide {
973 display: block;
974 position: fixed;
975 z-index: 20;
976 top: 0;
977 right: 0;
978 border:0;
979 width: 2.5em;
980 height: 2.5em;
981 cursor: pointer;
982 background: #999;
983 font-size: 1.2em;
984 }
985 .desktopHide:hover, .desktopHide:focus {
986 background: #FFF;
987 }
988 #links {
989 display: none;
990 width: 100%;
991 height: auto;
992 padding-top: 3em;
993 }
994 footer {
995 position: static;
996 margin-right: 3em;
997 }
998 #main {
999 margin-left: 1.5em;
1000 padding-right: 1.5em;
1001 position: static;
1002 margin-top: 3em;
1003 }
1004 #article_toolbar .topPosF {
1005 display: none;
1006 }
1007
1008 #article {
1009 width: 100%;
1010 }
1011
1012 #article h1 {
1013 font-size: 1.5em;
1014 }
1015 #article_toolbar a {
1016 padding: 0.3em 0.4em 0.2em;
1017 }
1018
1019 #display-mode {
1020 display: none;
1021 }
1022
1023 .popup-form {
1024 left: 0;
1025 }
1026 }
1027