]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Resources/views/themes/baggy/public/css/main.css
add preview pictures
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / baggy / public / css / main.css
CommitLineData
19f2f11e
NL
1/* ==========================================================================
2 Sommaire
3
4 1 = Style Guide
5 2 = Layout
6 3 = Pictos
7 4 = Messages
8 5 = Article
9 6 = Media queries
371ac69a 10
19f2f11e
NL
11 ========================================================================== */
12
13html {
14 min-height: 100%;
15}
16
17body {
18 background-color: #EEE;
19}
20
21.login {
22 background-color: #333;
23}
24
25.login #main {
26 padding: 0;
27 margin: 0;
28}
29
30.login form {
31 background-color: #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%;
371ac69a 45 margin-left: -55px;
19f2f11e
NL
46}
47
48/* ==========================================================================
49 1 = Style Guide
50 ========================================================================== */
51
371ac69a
J
52::selection {
53 color: #FFF;
19f2f11e 54 background-color: #000;
371ac69a 55}
19f2f11e
NL
56
57.desktopHide {
58 display: none;
59}
60
61.logo {
62 position: fixed;
63 z-index: 20;
64 top: 0.4em;
371ac69a 65 left: 0.6em;
19f2f11e
NL
66}
67
68h2, h3, h4 {
69 font-family: 'PT Sans', sans-serif;
70 text-transform: uppercase;
71}
72
73p, li, label {
74 color: #666;
75}
76
77a {
78 color: #000;
79 font-weight: bold;
80}
81
82a:hover, a:focus {
83 text-decoration: none;
84}
85
86form fieldset {
87 border:0;
88 padding: 0;
89 margin: 0;
90}
91
371ac69a 92form input[type="text"], form input[type="number"], select, form input[type="password"], form input[type="url"], form input[type="email"] {
19f2f11e
NL
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
116fieldset label {
117 display: inline-block;
118 min-width: 12.5em;
119 color: #666;
120}
121
122label {
123 margin-right: 0.5em;
124}
125
126form .row {
127 margin-bottom: 0.5em;
128}
129
130form button, input[type="submit"] {
131 cursor:pointer;
132 background-color: #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-color: #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;
371ac69a 152}
19f2f11e
NL
153
154h2:after {
155 content: "";
156 height: 4px;
157 width: 70px;
158 background-color: #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-color: #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-color: #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#listmode.tablemode {
285 background-image: url("../img/baggy/table.png");
286 background-repeat: no-repeat;
287 background-position: bottom;
288}
289#listmode.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 ========================================================================== */
371ac69a 299
19f2f11e
NL
300#content {
301 margin-top: 5em;
302 min-height: 30em;
303}
304
305footer {
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
316footer a {
317 color: #999;
318 font-weight: normal;
319}
320
321.list-entries {
322 letter-spacing:-5px;
323}
324
26864574 325.listmode .entry {
19f2f11e
NL
326 width: 100%!important;
327 margin-left: 0!important;
328}
329
330.list-entries + .results {
331 margin-bottom: 2em;
332}
333
334.estimatedTime .reading-time {
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
26864574 346.entry {
19f2f11e
NL
347 background-color: #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
26864574 369.entry:before {
19f2f11e
NL
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
26864574 387.entry:after {
19f2f11e
NL
388 content: "";
389 position: absolute;
390 height: 7px;
391 width: 100%;
392 bottom: 0;
393 left: 0;
394 background-color: #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
26864574 402.entry:hover {
19f2f11e
NL
403 box-shadow: 0 3px 10px rgba(0,0,0,1);
404}
405
26864574 406.entry:hover:after {
19f2f11e
NL
407 height: 40px;
408}
409
26864574 410.entry:hover:before {
19f2f11e
NL
411 bottom: 2.4em;
412}
413
26864574 414.entry:hover h2 a {
19f2f11e
NL
415 color: #666;
416}
417
26864574 418.entry h2 {
19f2f11e
NL
419 text-transform: none;
420 margin-bottom: 0;
421 line-height: 1.2;
422}
423
26864574 424 .entry h2:after {
19f2f11e
NL
425 content: none;
426 }
427
428
26864574 429.entry h2 a {
19f2f11e
NL
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/*
26864574 441.entry h2 a:after {
19f2f11e
NL
442 content: "";
443 position: absolute;
444 top: 0;
445 width: 100%;
446 height: 100%;
447 left: 0;
448}
449*/
450
26864574 451.entry p {
19f2f11e
NL
452 color: #666;
453 font-size: 0.9em;
454 line-height: 1.7;
455}
456
26864574 457 .entry h2 a:first-letter {
19f2f11e
NL
458 text-transform: uppercase;
459 }
460
26864574 461.entry:hover .tools {
19f2f11e
NL
462 bottom: 0;
463}
464
26864574 465.entry .tools {
19f2f11e
NL
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
26864574 480 .entry .tools a {
19f2f11e
NL
481 color: #666;
482 text-decoration: none;
483 display: block;
484 padding: 0.4em;
485 }
486
26864574 487 .entry .tools a:hover {
19f2f11e
NL
488 color: #FFF;
489 }
490
26864574 491 .entry .tools li {
19f2f11e
NL
492 display: inline-block;
493 }
494
26864574 495.entry:nth-child(3n+1) {
19f2f11e
NL
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
9fb6ac83
FG
540.pagination .current {
541 height: 25px;
542 padding: 4px 8px;
543 border: 1px solid #d5d5d5;
544 text-decoration: none;
545 font-weight: bold;
546 color: #000;
547 background-color: #ccc;
548}
549
19f2f11e
NL
550/* ==========================================================================
551 2.1 = "save a link" related styles
552 ========================================================================== */
553
554.popup-form {
555 background: rgba(0,0,0,0.5);
556 position: absolute;
557 top: 0;
558 left: 10em;
559 z-index: 20;
560 height: 100%;
561 width: 100%;
562 margin: 0;
563 margin-top: -30% !important; /* TODO: get rid of !important here; overridden by .messages selector */
564 padding: 2em;
565 display: none;
566 border-left: 1px #EEE solid;
567}
568
569 .popup-form form {
570 background-color: #FFF;
571 position: absolute;
572 top: 0;
573 left: 0;
574 z-index: 20;
575 border: 10px solid #000;
576 width: 400px;
577 height: 200px;
578 padding: 2em;
579 }
580
581#bagit-form-form .addurl {
582 margin-left: 0;
583}
584
585.closeMessage,
586.close-button {
587 background-color: #000;
588 color: #FFF;
589 font-size: 1.2em;
590 line-height: 1.6;
591 width: 1.6em;
592 height: 1.6em;
593 text-align: center;
594 text-decoration: none;
595}
596 .closeMessage:hover,
597 .closeMessage:focus,
598 .close-button:hover,
599 .close-button:focus {
600 background-color: #999;
601 color: #000;
602 }
603
604.close-button--popup {
605 display: inline-block;
606 position: absolute;
607 top: 0;
608 right: 0;
609 font-size: 1.4em;
610}
611
612.active-current {
613 background-color: #999;
614}
615
616.active-current:after {
617 content: "";
618 width: 0;
619 height: 0;
620 position: absolute;
621 border-style: solid;
622 border-width: 10px;
623 border-color: transparent #EEE transparent transparent;
624 right: 0;
625 top: 50%;
626 margin-top: -10px;
627}
628
629.opacity03 {
630 opacity: 0.3;
631}
632
633.add-to-wallabag-link-after {
634 background-color: #000;
635 color: #fff;
636 padding: 0 3px 2px 3px;
637}
638
639a.add-to-wallabag-link-after {
640 visibility: hidden;
641 position: absolute;
642 opacity: 0;
643 transition-duration: 2s;
644 transition-timing-function: ease-out;
645}
646
647#article article a:hover + a.add-to-wallabag-link-after, a.add-to-wallabag-link-after:hover {
648 opacity: 1;
649 visibility: visible;
650 transition-duration: .3s;
651 transition-timing-function: ease-in;
652}
653
654a.add-to-wallabag-link-after:after {
655 content: "w";
656}
657
658#add-link-result {
659 font-weight: bold;
660 font-size: 0.9em;
661}
662
663/* ==========================================================================
664 3 = Pictos
665 ========================================================================== */
371ac69a 666
19f2f11e
NL
667@font-face {
668 font-family: 'icomoon';
669 src:url('../fonts/icomoon.eot?-s0mcsx');
670 src:url('../fonts/icomoon.eot?#iefix-s0mcsx') format('embedded-opentype'),
671 url('../fonts/icomoon.woff?-s0mcsx') format('woff'),
672 url('../fonts/icomoon.ttf?-s0mcsx') format('truetype'),
673 url('../fonts/icomoon.svg?-s0mcsx#icomoon') format('svg');
674 font-weight: normal;
675 font-style: normal;
676}
677
678.icon span,
679.icon-image span {
680 position: absolute;
681 top: -9999px;
682}
683
684[class^="icon-"]:before, [class*=" icon-"]:before {
685 font-family: 'icomoon';
686 speak: none;
687 font-style: normal;
688 font-weight: normal;
689 font-variant: normal;
690 text-transform: none;
691 line-height: 1;
692
693 /* Better Font Rendering =========== */
694 -webkit-font-smoothing: antialiased;
695 -moz-osx-font-smoothing: grayscale;
696}
697
698.icon-flattr:before {
699 content: "\e800";
700}
701.icon-mail:before {
702 content: "\e80a";
703}
704.icon-up-open:before {
705 content: "\e80b";
706}
707.icon-star:before {
708 content: "\e805";
709}
710.icon-check:before {
711 content: "\e804";
712}
713.icon-link:before {
714 content: "\e801";
715}
716.icon-reply:before {
717 content: "\e806";
718}
719.icon-menu:before {
720 content: "\e802";
721}
722.icon-clock:before {
723 content: "\e803";
724}
725.icon-twitter:before {
726 content: "\e807";
727}
728.icon-down-open:before {
729 content: "\e809";
730}
731.icon-trash:before {
732 content: "\e80c";
733}
734.icon-delete:before {
735 content: "\e600";
736}
737.icon-power:before {
738 content: "\e601";
739}
740.icon-arrow-up-thick:before {
741 content: "\e602";
742}
743.icon-rss:before {
744 content: "\e808";
745}
746.icon-print:before {
747 content: "\e80d";
748}
749
750
751/* .icon-image class, for image-based icons
752 ========================================================================== */
753
754.icon-image {
755 background-size: 16px 16px;
756 background-repeat: no-repeat;
757 background-position: center;
758 padding-right: 1em !important;
759 padding-left: 1em !important;
760}
761
762/* Carrot (http://carrot.org) */
763.icon-image--carrot {
764 background-image: url('../../_global/img/icons/carrot-icon--white.png');
765}
766
767/* Diaspora */
768.icon-image--diaspora {
769 background-image: url('../../_global/img/icons/diaspora-icon--black.png');
770}}
771
772/* ==========================================================================
773 Icon selected
774 ========================================================================== */
775
776.icon-star.fav:before {
777 color: #FFF;
778}
779
780.icon-check.archive:before {
781 color: #FFF;
782}
783
784/* ==========================================================================
785 4 = Messages
786 ========================================================================== */
787
788.messages {
789 text-align: left;
790 margin-top: 1em;
791}
792
793.messages > * { display: inline-block;}
794
795.warning {
796 /* font-size: 3em;
797 color: #999;
798 font-style: italic;
799 position: absolute;
800 top: 50%;
801 left: 0;
802 width: 100%;
803 text-align: center;
804 padding-right: 5%;
805 margin-top: -2em;*/
806 font-weight: bold;
807 display: block;
808 width: 100%;
809}
810
811.more-info {
812 font-size: 0.85em;
813 line-height: 1.5;
814 color: #aaa;
815}
816
817 .more-info a {
818 color: #aaa;
819 }
820
821/* ==========================================================================
822 5 = Article
823 ========================================================================== */
824
825#article {
826 width: 70%;
827 margin-bottom: 3em;
828 text-align: justify;
829}
830
831#article .tags {
832 margin-bottom: 1em;
833}
834
835#article i {
836 font-style: normal;
837}
838
839blockquote {
840 border:1px solid #999;
841 background-color: #FFF;
842 padding: 1em;
843 margin: 0;
844}
845
846#article h1 {
847 text-align: left;
848}
849
850#article h2, #article h3, #article h4 {
851 text-transform: none;
852}
853
854#article h2:after {
855 content: none;
856}
857
858.topPosF {
859 position: fixed;
860 right: 20%;
861 bottom: 2em;
862 font-size: 1.5em;
863}
864
865#article_toolbar {
866 margin-bottom: 1em;
867}
868
869#article_toolbar li {
870 display: inline-block;
871}
872
873#article_toolbar a {
874 background-color: #000;
875 padding: 0.3em 0.5em 0.2em;
876 color: #FFF;
877 text-decoration: none;
878}
371ac69a 879
19f2f11e
NL
880 #article_toolbar a:hover, #article_toolbar a:focus {
881 background-color: #999;
882 }
883
884.shaarli:before {
885 content: "*";
886}
887
888.return {
889 text-decoration: none;
890 margin-top: 1em;
891 display: block;
892}
893
894.return:before {
895 margin-right: 0.5em;
896}
897
898.notags {
899 font-style: italic;
900 color: #999;
901}
902
903.icon-rss {
904 background-color: #000;
905 color: #FFF;
906 padding: 0.2em 0.5em;
907}
908
909.icon-rss:before {
910 position: relative;
911 top: 2px;
912}
913
914.list-tags li {
915 margin-bottom: 0.5em;
916}
917
918.list-tags .icon-rss:hover, .list-tags .icon-rss:focus {
919 background-color: #FFF;
920 color: #000;
921 text-decoration: none;
922}
923
924.list-tags a {
925 text-decoration: none;
926}
927
928.list-tags a:hover, .list-tags a:focus {
929 text-decoration: underline;
930}
931
932pre code {
933 font-family: "Courier New", Courier, monospace;
934 border: 1px solid #ccc;
935 font-size: 0.96em;
936}
937
938
939/* ==========================================================================
940 6 = Media Queries
941 ========================================================================== */
942
943@media screen and (max-width: 1050px) {
26864574 944 .entry {
19f2f11e
NL
945 width: 49%;
946 }
26864574 947 .entry:nth-child(3n+1) {
19f2f11e
NL
948 margin-left: 1.5%;
949 }
26864574 950 .entry:nth-child(2n+1) {
19f2f11e
NL
951 margin-left: 0;
952 }
953}
954
955@media screen and (max-width: 900px) {
956 #article {
957 width: 80%;
958 }
959 .topPosF {
960 right: 2.5em;
961 }
962}
963
964@media screen and (max-width: 700px) {
26864574 965 .entry {
19f2f11e
NL
966 width: 100%;
967 margin-left: 0;
968 }
969 #display-mode {
970 display: none;
971 }
972}
973
974@media screen and (max-width: 500px) {
26864574 975 .entry {
19f2f11e
NL
976 width: 100%;
977 margin-left: 0;
978 }
979 body > header {
980 background-color: #333;
981 position: fixed;
982 top: 0;
983 width: 100%;
984 height: 3em;
985 z-index: 11;
986 }
987 #links li:last-child {
988 position: static;
989 width: auto;
990 }
991 #links li:last-child a:before {
992 content: none;
993 }
994 .logo {
995 width: 1.25em;
996 height: 1.25em;
997 left: 0;
998 top: 0;
999 }
1000 .login > header {
1001 position: static;
1002 }
1003 .login form {
1004 width: 100%;
1005 position: static;
1006 margin-left: 0;
1007 }
1008 .login .logo {
1009 width: auto;
1010 height: auto;
1011 top: 0.5em;
1012 width: 75px;
1013 height: 75px;
1014 margin-left: -37.5px;
1015 }
1016 .desktopHide {
1017 display: block;
1018 position: fixed;
1019 z-index: 20;
1020 top: 0;
1021 right: 0;
1022 border:0;
1023 width: 2.5em;
1024 height: 2.5em;
1025 cursor: pointer;
1026 background-color: #999;
1027 font-size: 1.2em;
1028 }
1029 .desktopHide:hover, .desktopHide:focus {
1030 background-color: #FFF;
1031 }
1032 #links {
1033 display: none;
1034 width: 100%;
1035 height: auto;
1036 padding-top: 3em;
1037 }
1038 #links.menu--open {
1039 display: block;
1040 }
1041 footer {
1042 position: static;
1043 margin-right: 3em;
1044 }
1045 #main {
1046 margin-left: 1.5em;
1047 padding-right: 1.5em;
1048 position: static;
1049 margin-top: 3em;
1050 }
1051 #article_toolbar .topPosF {
1052 display: none;
1053 }
1054
1055 #article {
1056 width: 100%;
1057 }
1058
1059 #article h1 {
1060 font-size: 1.5em;
1061 }
1062 #article_toolbar a {
1063 padding: 0.3em 0.4em 0.2em;
1064 }
371ac69a 1065
19f2f11e
NL
1066 #display-mode {
1067 display: none;
1068 }
1069
1070 .popup-form, #bagit-form, #search-form {
1071 left: 0;
1072 width: 100%;
1073 border-left: none;
1074 }
1075
1076 .popup-form form,
1077 #bagit-form form,
1078 #search-form form {
1079 width: 100%;
1080 }
1081}