]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - assets/default/scss/shaarli.scss
7ab09d3f2e313657f6682bf211b7d9462c6a88e7
[github/shaarli/Shaarli.git] / assets / default / scss / shaarli.scss
1 $fa-font-path: '~fork-awesome/fonts';
2
3 @import '~fork-awesome/scss/fork-awesome';
4 @import '~purecss/build/pure.css';
5 @import '~purecss/build/grids-responsive.css';
6 @import '~pure-extras/css/pure-extras.css';
7 @import '~awesomplete/awesomplete.css';
8
9 $white: #fff;
10 $black: #000;
11 $almost-white: #f5f5f5;
12 $dark-grey: #252525;
13 $light-grey: #797979;
14 $main-green: #1b926c;
15 $light-green: #b0ddce;
16 $dark-green: #186446;
17 $red: #ac2925;
18 $orange: #f89406;
19 $blue: #0b5ea6;
20 $background-color: #d0d0d0;
21 $background-linklist-info: #ddd;
22 $light-shadow: rgba(255, 255, 255, .078);
23 $dark-shadow: rgba(0, 0, 0, .298);
24 $warning-text: #97600d;
25 $form-input-border: #d8d8d8;
26 $form-input-background: #eee;
27
28 :root {
29 --main-color: #{$main-green};
30 --background-color: #{$background-color};
31 --dark-main-color: #{$dark-green};
32 }
33
34 // General
35 body {
36 background: var(--background-color);
37 }
38
39 .strong {
40 font-weight: bold;
41 }
42
43 .clear {
44 clear: both;
45 }
46
47 .center {
48 margin: auto;
49 text-align: center;
50 }
51
52 .label {
53 display: inline-block;
54 border-radius: .25rem;
55 padding: .25em .4em;
56 vertical-align: baseline;
57 text-align: center;
58 line-height: 1;
59 white-space: nowrap;
60 font-size: 75%;
61 font-weight: 700;
62 }
63
64 pre {
65 max-width: 100%;
66 }
67
68 @font-face {
69 font-family: 'Roboto';
70 font-weight: 400;
71 font-style: normal;
72 src: local('Roboto'),
73 local('Roboto-Regular'),
74 url('../fonts/Roboto-Regular.woff2') format('woff2'),
75 url('../fonts/Roboto-Regular.woff') format('woff');
76 }
77
78 @font-face {
79 font-family: 'Roboto';
80 font-weight: 700;
81 font-style: normal;
82 src: local('Roboto'),
83 local('Roboto-Bold'),
84 url('../fonts/Roboto-Bold.woff2') format('woff2'),
85 url('../fonts/Roboto-Bold.woff') format('woff');
86 }
87
88 body,
89 .pure-g [class*='pure-u'] {
90 font-family: Roboto, Arial, sans-serif;
91 }
92
93 // Extends Pure grids responsive to hide items.
94 // Use xx-0 to hide an item on xx screen.
95 // Display it at any level with xx-visible.
96 .pure-u-0 {
97 display: none !important;
98 }
99
100 @media screen and (min-width: 35.5em) {
101 .pure-u-sm-0 {
102 display: none !important;
103 }
104
105 .pure-u-sm-visible {
106 display: inline-block !important;
107 }
108 }
109
110 @media screen and (min-width: 48em) {
111 .pure-u-md-0 {
112 display: none !important;
113 }
114
115 .pure-u-md-visible {
116 display: inline-block !important;
117 }
118 }
119
120 @media screen and (min-width: 64em) {
121 .pure-u-lg-0 {
122 display: none !important;
123 }
124
125 .pure-u-lg-visible {
126 display: inline-block !important;
127 }
128 }
129
130 @media screen and (min-width: 80em) {
131 .pure-u-xl-0 {
132 display: none !important;
133 }
134
135 .pure-u-xl-visible {
136 display: inline-block !important;
137 }
138 }
139
140 // Make pure-extras alert closable.
141 .pure-alert-closable {
142 .fa-times {
143 float: right;
144 }
145 }
146
147 .pure-alert-close {
148 cursor: pointer;
149 }
150
151 .pure-alert-success {
152 background-color: var(--main-color);
153 }
154
155 .pure-alert-warning {
156 a {
157 color: $warning-text;
158 font-weight: bold;
159 }
160 }
161
162 .page-single-alert {
163 margin-top: 100px;
164 }
165
166 .anchor {
167 &:target {
168 padding-top: 40px;
169 }
170 }
171
172 // MENU
173 .shaarli-menu {
174 position: fixed;
175 top: 0;
176 transition: max-height .5s;
177 z-index: 999;
178 background: var(--main-color);
179 width: 100%;
180 // Hack to transition with auto height: http://stackoverflow.com/a/8331169/1484919
181 max-height: 45px;
182 overflow: hidden;
183 -webkit-font-smoothing: antialiased;
184
185 &.open {
186 transition: max-height .75s;
187 max-height: 500px;
188 }
189 }
190
191 .pure-menu-item {
192 // Chrome bugfix: with 100% height, it only displays the first element.
193 height: 45px;
194
195 &:hover {
196 &::after {
197 display: block;
198 margin: -4px auto 0;
199 background: $white;
200 width: 100%;
201 height: 4px;
202 content: '';
203 }
204 }
205 }
206
207 .head-logo {
208 float: left;
209 margin: 0 5px 0 0;
210 }
211
212 %menu-link {
213 padding: .8em 1em;
214 color: $almost-white;
215 }
216
217 %menu-link-hover {
218 background: transparent;
219 color: $white;
220 }
221
222 .pure-menu-link {
223 @extend %menu-link;
224
225 &:visited {
226 @extend %menu-link;
227 }
228
229 &:hover,
230 &:focus {
231 @extend %menu-link-hover;
232 }
233 }
234
235 .pure-menu-selected {
236 .pure-menu-link {
237 @extend %menu-link;
238
239 &:visited {
240 @extend %menu-link;
241 }
242
243 &:hover,
244 &:focus {
245 @extend %menu-link-hover;
246 }
247 }
248 }
249
250 .menu-toggle {
251 display: none;
252 position: absolute;
253 top: 5px;
254 right: 0;
255 width: 34px;
256 height: 45px;
257
258 .bar {
259 display: block;
260 position: absolute;
261 top: 18px;
262 right: 7px;
263 border-radius: 100px;
264 background-color: $light-green;
265 width: 20px;
266 height: 2px;
267 transition-duration: .5s;
268
269 &:first-child {
270 transform: translateY(-6px);
271 }
272 }
273
274 &.x {
275 .bar {
276 transform: rotate(45deg);
277
278 &:first-child {
279 transform: rotate(-45deg);
280 }
281 }
282 }
283 }
284
285 @media screen and (max-width: 64em) {
286 .menu-toggle {
287 display: block;
288 }
289 }
290
291 .header-buttons {
292 text-align: right;
293 }
294
295 .linkcount {
296 color: $dark-grey;
297 font-size: .8em;
298 }
299
300 @media screen and (min-width: 64em) {
301 .linkcount {
302 position: absolute;
303 right: 5px;
304 }
305 }
306
307 .searchform-block {
308 width: 100%;
309 text-align: center;
310
311 input {
312 &[type='text'] {
313 border: medium none currentColor;
314 border-radius: 2px;
315 box-shadow: 0 1px 0 $light-shadow, 0 1px 1px $dark-shadow inset;
316 background: $almost-white;
317 padding: 0 5px;
318 width: 260px;
319 height: 30px;
320 color: $dark-grey;
321
322 &::-webkit-input-placeholder {
323 color: $light-grey;
324 }
325 }
326 }
327
328 button {
329 border: 0;
330 border-radius: 2px;
331 background-color: var(--main-color);
332 padding: 4px 8px 6px;
333 color: $almost-white;
334 }
335 }
336
337 @media screen and (max-width: 64em) {
338 .searchform {
339 margin: 0 auto;
340 max-width: 260px;
341 }
342 }
343
344 .search-tagcloud {
345 button {
346 width: 90%;
347 }
348 }
349
350 @media screen and (max-width: 64em) {
351 .search-linklist {
352 button {
353 width: 100%;
354 }
355
356 .awesomplete {
357 margin: 5px 0;
358 }
359 }
360 }
361
362 .header-search,
363 .search-linklist,
364 .search-tagcloud {
365 button {
366 &:hover {
367 color: var(--background-color);
368 }
369 }
370 }
371
372 .header-search,
373 .search-linklist {
374 padding: 6px 0;
375 }
376
377 @media screen and (max-width: 64em) {
378 .header-search ,
379 .header-search * {
380 visibility: hidden;
381 }
382 }
383
384 %subheader-form-input {
385 border: medium none currentColor;
386 border-radius: 2px;
387 box-shadow: 0 1px 0 $light-shadow, 0 1px 4px $dark-shadow inset;
388 background: $almost-white;
389 padding: 5px 5px 3px 15px;
390 color: $dark-grey;
391 }
392
393 .subheader-form {
394 display: block;
395 position: fixed;
396 visibility: hidden;
397 z-index: 999;
398 background: var(--main-color);
399 padding: 5px 0;
400 width: 100%;
401 height: 30px;
402 text-align: center;
403
404 input {
405 &[type='text'],
406 &[type='password'] {
407 @extend %subheader-form-input;
408
409 &::-webkit-input-placeholder {
410 color: $dark-grey;
411 }
412 }
413 }
414
415 &[type='submit'] {
416 display: inline-block;
417 margin: 0 0 5px;
418 border: 1px solid $almost-white;
419 border-radius: 2px;
420 background: var(--main-color);
421 padding: 4px 0;
422 width: 100px;
423 height: 28px;
424 color: $almost-white;
425
426 &:hover {
427 background: $almost-white;
428 color: var(--main-color);
429 }
430 }
431
432 .remember-me {
433 @extend %subheader-form-input;
434
435 display: inline-block;
436 cursor: pointer;
437 padding: 5px 20px 3px;
438 width: auto;
439
440 label,
441 input {
442 cursor: pointer;
443 }
444 }
445
446 a {
447 &.button {
448 border: 2px solid $almost-white;
449 border-radius: 5px;
450 padding: 3px 10px;
451 text-decoration: none;
452 color: $almost-white;
453 font-weight: bold;
454 }
455 }
456 }
457
458 .header-login-form {
459 input {
460 &[type='text'],
461 &[type='password'] {
462 width: 200px;
463
464 // because chrome
465 &::-webkit-input-placeholder {
466 color: $light-grey;
467 }
468 }
469 }
470 }
471
472 @media screen and (min-width: 64em) {
473 .subheader-form {
474 &.open {
475 visibility: visible;
476
477 * {
478 visibility: visible;
479 }
480 }
481 }
482 }
483
484 .new-version-message {
485 text-align: center;
486
487 a {
488 color: $warning-text;
489 font-weight: bold;
490 }
491 }
492
493 .header-alert-message {
494 text-align: center;
495 }
496
497 // CONTENT - GENERAL
498 .container {
499 position: relative;
500 z-index: 2;
501 margin-top: 45px;
502 }
503
504 // Plugins additional forms
505 .toolbar-plugin {
506 margin: 5px 0;
507 text-align: center;
508
509 input {
510 &[type='text'] {
511 border: medium none currentColor;
512 border-radius: 2px;
513 box-shadow: 0 1px 0 $light-shadow, 0 1px 1px $dark-shadow inset;
514 background: $almost-white;
515 padding: 0 5px;
516 width: 300px;
517 height: 30px;
518 color: $dark-grey;
519
520 &::-webkit-input-placeholder {
521 color: $light-grey;
522 }
523 }
524
525 &[type='submit'] {
526 border: medium none currentColor;
527 border-radius: 2px;
528 background: $almost-white;
529 padding: 0 10px;
530 height: 30px;
531 color: $dark-grey;
532
533 &:hover {
534 background: $white;
535 }
536 }
537 }
538 }
539
540 @media screen and (max-width: 64em) {
541 .toolbar-plugin {
542 input {
543 &[type='text'] {
544 width: 70%;
545 }
546 }
547 }
548 }
549
550 // CONTENT - LINKLIST PAGING
551 // 64em -> lg
552 .linklist-filters {
553 margin: 5px 0;
554 color: $dark-grey;
555 font-size: .9em;
556
557
558 a {
559 display: inline-block;
560 margin: 3px 0;
561 padding: 5px 8px;
562 text-decoration: none;
563 }
564
565 .filter-off {
566 background: $almost-white;
567 color: $dark-grey;
568 }
569
570 .filter-on {
571 background: var(--main-color);
572 color: $light-green;
573 }
574
575 .filter-block {
576 background: $red;
577 color: $almost-white;
578 }
579 }
580
581 .linklist-pages {
582 margin: 5px 0;
583 text-align: center;
584 color: $dark-grey;
585
586 a {
587 text-decoration: none;
588 color: $dark-grey;
589
590 &:hover {
591 color: $white;
592 }
593 }
594 }
595
596 %linksperpage-button {
597 display: inline-block;
598 width: 20px;
599 text-align: center;
600 }
601
602 .linksperpage {
603 margin: 5px 0;
604 text-align: right;
605 color: $dark-grey;
606 font-size: .9em;
607
608 form {
609 display: inline;
610 }
611
612 a {
613 @extend %linksperpage-button;
614
615 background: $almost-white;
616 padding: 5px;
617 text-decoration: none;
618 color: $dark-grey;
619
620 &.selected {
621 background: var(--main-color);
622 color: $white;
623 }
624 }
625
626 input {
627 &[type='text'] {
628 @extend %linksperpage-button;
629
630 margin: 0;
631 border: medium none currentColor;
632 background: $almost-white;
633 padding: 4px 5px 3px 8px;
634 height: 20px;
635 color: $dark-grey;
636 font-size: .8em;
637 }
638 }
639 }
640
641 // CONTENT - LINKLIST ITEMS
642 %private-border {
643 display: block;
644 position: absolute;
645 top: 0;
646 left: 3px;
647 z-index: 1;
648 background: $orange;
649 width: 2px;
650 height: 96%;
651 content: '';
652 }
653
654 .linklist-item {
655 position: relative;
656 margin: 0 0 10px;
657 box-shadow: 1px 1px 3px $light-grey;
658 background: $almost-white;
659
660 &.private {
661 &::before {
662 display: block;
663 position: absolute;
664 top: 0;
665 left: 0;
666 z-index: 1;
667 background: $orange;
668 width: 2px;
669 height: 100%;
670 content: '';
671 }
672 }
673 }
674
675 .linklist-item-buttons {
676 position: relative;
677 z-index: 99;
678 background: transparent;
679 width: 23px;
680 }
681
682 .linklist-item-buttons-right {
683 float: right;
684 margin-right: -25px;
685 }
686
687 .linklist-item-buttons * {
688 display: block;
689 float: left;
690 margin: auto;
691 width: 100%;
692 text-align: center;
693 }
694
695 .linklist-item-title {
696 position: relative;
697 margin: 0;
698 background: $almost-white;
699 word-wrap: break-word;
700
701 h2 {
702 margin: 0;
703 padding: 3px 10px 0;
704 line-height: 30px;
705 word-wrap: break-word;
706
707 a {
708 vertical-align: middle;
709 text-decoration: none;
710 color: $dark-grey;
711 font-size: .7em;
712
713 &:visited {
714 .linklist-link {
715 color: var(--dark-main-color);
716 }
717 }
718
719 &:hover {
720 color: $dark-grey;
721 }
722 }
723 }
724
725 .linklist-link {
726 color: var(--main-color);
727 font-size: 1.1em;
728
729 &:hover {
730 color: $dark-grey;
731 }
732 }
733
734 .label {
735 font-family: Arial, sans-serif;
736 font-size: .65em;
737 }
738
739 .label-private {
740 border: solid 1px $orange;
741 color: $orange;
742 }
743
744 .label-sticky {
745 border: solid 1px $blue;
746 color: $blue;
747 }
748 }
749
750 .fold-button {
751 display: none;
752 color: $dark-grey;
753 }
754
755 .linklist-item-editbuttons {
756 float: right;
757 padding: 8px 5px;
758
759 * {
760 display: block;
761 float: left;
762 margin: 0 1px;
763 }
764
765 a {
766 font-size: 1em;
767 }
768
769 .link-checkbox {
770 display: none;
771 }
772 }
773
774 .edit-link {
775 color: $blue;
776 font-size: 1.2em;
777 }
778
779 .delete-link {
780 color: $red !important;
781 font-size: 1.3em;
782 }
783
784 .pin-link {
785 font-size: 1.3em;
786 }
787
788 .pinned-link {
789 color: $blue !important;
790 }
791
792 .linklist-item-description {
793 position: relative;
794 padding: 0 10px;
795 line-height: 1.3em;
796 color: $dark-grey;
797 word-wrap: break-word;
798
799 a {
800 text-decoration: none;
801 color: var(--main-color);
802
803 &:hover {
804 color: $dark-grey;
805 }
806
807 &:visited {
808 color: var(--dark-main-color);
809 }
810 }
811 }
812
813 .linklist-item-thumbnail {
814 position: relative;
815 float: right;
816 z-index: 50;
817 margin: 0;
818 padding: 0 0 0 5px;
819 height: 90px;
820 }
821
822 .linklist-item-infos {
823 background: $background-linklist-info;
824 padding: 4px 8px;
825 color: $dark-grey;
826
827 a {
828 text-decoration: none;
829 color: $dark-grey;
830
831 &:hover {
832 color: $black;
833 }
834 }
835
836 .linklist-item-tags {
837 font-size: .8em;
838 }
839
840 .label-tag {
841 font-size: 1em;
842 }
843
844 .mobile-buttons {
845 text-align: right;
846 }
847
848 .linklist-plugin-icon {
849 display: inline-block;
850 margin: 0 2px;
851 width: 16px;
852 height: 16px;
853 }
854 }
855
856 .linklist-item-infos-dateblock {
857 font-size: .9em;
858 }
859
860 .linklist-plugin-icon {
861 width: 13px;
862 height: 13px;
863 }
864
865 .linklist-item-infos-url {
866 height: 23px;
867 overflow: hidden;
868 text-align: right;
869 text-overflow: ellipsis;
870 line-height: 23px;
871 white-space: nowrap;
872 font-size: .8em;
873 }
874
875 .linklist-item-infos-controls-group {
876 display: inline-block;
877 border-right: 1px solid $light-grey;
878 padding-right: 6px;
879 }
880
881 .ctrl-edit {
882 margin: 0 7px;
883 }
884
885 .ctrl-delete {
886 margin: 0 7px 0 0;
887 }
888
889 // 64em -> lg
890 @media screen and (max-width: 64em) {
891 .linklist-item-infos-url {
892 text-align: left;
893 }
894 }
895
896 // Footer
897 .footer-container {
898 margin: 20px 0;
899 padding: 5px;
900 text-align: center;
901 color: $dark-grey;
902
903 &::before {
904 display: block;
905 margin: 10px auto;
906 background: linear-gradient(to right, var(--background-color), $dark-grey, var(--background-color));
907 width: 80%;
908 height: 1px;
909 content: '';
910 }
911
912 a {
913 color: $dark-grey;
914 }
915 }
916
917 // PAGE FORM
918 %page-form-input {
919 margin: 10px 0;
920 border: solid 1px $form-input-border;
921 border-radius: 2px;
922 background: $form-input-background;
923 padding: 5px 5px 3px 15px;
924 width: 90%;
925 height: 35px;
926 color: $dark-grey;
927 box-sizing: border-box;
928 }
929
930 %page-form-button {
931 display: inline-block;
932 margin: 15px 5px;
933 border: 0;
934 box-shadow: 1px 1px 1px $form-input-border, -1px -1px 6px $form-input-border, -1px 1px 2px $form-input-border, 1px -1px 2px $form-input-border;
935 background: var(--main-color);
936 min-width: 150px;
937 height: 35px;
938 vertical-align: center;
939 text-decoration: none;
940 line-height: 35px;
941 color: $almost-white;
942 font-size: 1.2em;
943 font-weight: normal;
944 }
945
946 .page-form {
947 margin: 20px 0 0;
948 box-shadow: 1px 1px 2px $light-grey;
949 background: $almost-white;
950 overflow: hidden;
951 color: $dark-grey;
952
953 .window-title {
954 margin: 0 0 10px;
955 background: $almost-white;
956 padding: 10px 0;
957 width: 100%;
958 text-align: center;
959 color: var(--main-color);
960 }
961
962 .window-subtitle {
963 text-align: center;
964 }
965
966 a {
967 text-decoration: none;
968 color: var(--main-color);
969 font-weight: bold;
970
971 &.button {
972 @extend %page-form-button;
973 }
974 }
975
976 p {
977 margin: 0;
978 padding: 5px 10px;
979 }
980
981 input {
982 &[type='text'] {
983 @extend %page-form-input;
984
985 &::-webkit-input-placeholder {
986 color: $light-grey;
987 }
988 }
989
990 &[type='password'] {
991 @extend %page-form-input;
992
993 &::-webkit-input-placeholder {
994 color: $light-grey;
995 }
996 }
997
998 &[type='submit'] {
999 @extend %page-form-button;
1000 }
1001 }
1002
1003 textarea {
1004 @extend %page-form-input;
1005
1006 padding: 15px 5px 3px 15px;
1007 min-height: 240px;
1008 resize: vertical;
1009 overflow-y: auto;
1010 word-wrap: break-word;
1011 }
1012
1013 select {
1014 color: $dark-grey;
1015 }
1016
1017 .button {
1018 &.button-red {
1019 background: $red;
1020 }
1021 }
1022
1023 .submit-buttons {
1024 margin-bottom: 10px;
1025 }
1026
1027 section {
1028 margin: 10px 0 25px;
1029 }
1030
1031 table,
1032 th,
1033 td {
1034 border-width: 1px 0;
1035 border-style: solid;
1036 border-color: $light-grey;
1037 }
1038
1039 th,
1040 td {
1041 padding: 5px;
1042 }
1043
1044 table {
1045 margin: auto;
1046 width: 90%;
1047
1048 .order {
1049 text-decoration: none;
1050 color: $dark-grey;
1051 }
1052 }
1053
1054 .awesomplete {
1055 width: 90%;
1056
1057 input {
1058 width: 100%;
1059 }
1060 }
1061
1062 div {
1063 .awesomplete {
1064 > ul {
1065 color: $black;
1066 }
1067 }
1068 }
1069 }
1070
1071 @media screen and (min-width: 64em) {
1072 .page-form {
1073 .submit-buttons {
1074 position: relative;
1075
1076 .button {
1077 &.button-red {
1078 position: absolute;
1079 right: 5%;
1080 }
1081 }
1082 }
1083 }
1084 }
1085
1086 @media screen and (max-width: 64em) {
1087 .page-form {
1088 .submit-buttons {
1089 .button {
1090 margin: auto;
1091 }
1092 }
1093 }
1094 }
1095
1096 // PAGE FORM - LIGHT
1097 .page-form-light {
1098 div,
1099 p {
1100 text-align: center;
1101 }
1102 }
1103
1104 // PAGE FORM - COMPLETE
1105 %page-form-valign {
1106 position: absolute;
1107 top: 50%;
1108 transform: translateY(-50%);
1109 }
1110
1111 .page-form-complete {
1112 div,
1113 p {
1114 color: $dark-grey;
1115 }
1116
1117 .form-label,
1118 .form-input {
1119 position: relative;
1120 height: 60px;
1121 }
1122
1123 .form-label {
1124 label {
1125 @extend %page-form-valign;
1126
1127 right: 0;
1128 padding: 0 20px;
1129 text-align: right;
1130 }
1131 }
1132
1133 .label-name {
1134 font-weight: bold;
1135 }
1136
1137 .label-desc {
1138 font-size: .8em;
1139 }
1140
1141 .form-input {
1142 input {
1143 @extend %page-form-valign;
1144
1145 &[type='text'],
1146 &[type='password'] {
1147 margin: 0;
1148 }
1149 }
1150
1151 select {
1152 &.align {
1153 @extend %page-form-valign;
1154 }
1155 }
1156 }
1157
1158 textarea {
1159 margin: 0;
1160 }
1161
1162 .timezone {
1163 @extend %page-form-valign;
1164 }
1165 }
1166
1167 // Awesomeplete fix
1168 div {
1169 &.awesomplete {
1170 width: inherit;
1171
1172 > input {
1173 display: inherit;
1174 }
1175
1176 > ul {
1177 z-index: 9999;
1178 }
1179 }
1180 }
1181
1182 form {
1183 &[name='linkform'] {
1184 &.page-form {
1185 overflow: visible;
1186 }
1187 }
1188 }
1189
1190 @media screen and (max-width: 64em) {
1191 %page-form-valign-mobile {
1192 position: inherit;
1193 top: inherit;
1194 transform: translateY(0);
1195 }
1196
1197 .page-form-complete {
1198 .form-label {
1199 height: inherit;
1200
1201 label {
1202 @extend %page-form-valign-mobile;
1203
1204 display: block;
1205 margin: 10px 0 0;
1206 text-align: left;
1207 }
1208 }
1209
1210 .form-input {
1211 text-align: center;
1212
1213 input {
1214 @extend %page-form-valign-mobile;
1215
1216 &[type='checkbox'] {
1217 position: absolute;
1218 top: 50%;
1219 right: 50%;
1220 transform: translateY(-50%);
1221 }
1222 }
1223 }
1224
1225 .timezone {
1226 @extend %page-form-valign-mobile;
1227 }
1228
1229 .radio-buttons {
1230 padding: 5px 15px;
1231 text-align: left;
1232 }
1233 }
1234
1235 .timezone-continent {
1236 &::after {
1237 white-space: pre;
1238 content: '\a\a';
1239 }
1240 }
1241 }
1242
1243 // Page visitor (page form extended)
1244 .page-visitor {
1245 color: $dark-grey;
1246 }
1247
1248 .page-error-container {
1249 color: $dark-grey;
1250
1251 h2 {
1252 margin: 70px 0 25px;
1253 }
1254
1255 pre {
1256 margin: 0 20%;
1257 padding: 20px 0;
1258 text-align: left;
1259 line-height: .7em;
1260 }
1261 }
1262
1263 // EDIT LINK
1264 .edit-link-container {
1265 .created-date {
1266 margin-bottom: 10px;
1267 color: $light-grey;
1268 }
1269 }
1270
1271 // LOGIN
1272 .login-form-container {
1273 .remember-me {
1274 margin: 5px 0;
1275 }
1276 }
1277
1278 // Search results
1279 .search-result {
1280 a {
1281 text-decoration: none;
1282 color: $white;
1283 }
1284
1285 .label-tag {
1286 border-color: $white;
1287
1288 .remove {
1289 margin: 0 0 0 5px;
1290 border-left: $white 1px solid;
1291 padding: 0 0 0 5px;
1292 }
1293 }
1294
1295 .label-private {
1296 border: 1px solid $white;
1297 }
1298 }
1299
1300 // TOOLS
1301 .tools-item {
1302 margin: 10px 0;
1303
1304 .pure-button {
1305 &:hover {
1306 background-color: var(--main-color);
1307 background-image: none;
1308 color: $almost-white;
1309 }
1310 }
1311 }
1312
1313 // PLUGIN ADMIN
1314 .pluginform-container {
1315 .mobile-row {
1316 font-size: .9em;
1317 }
1318
1319 .more {
1320 margin-top: 10px;
1321 }
1322 }
1323
1324 @media screen and (max-width: 64em) {
1325 .pluginform-container {
1326 .main-row {
1327 border-top-style: none;
1328 border-bottom-style: none;
1329
1330 td {
1331 border-top-style: none;
1332 border-bottom-style: none;
1333 }
1334 }
1335 }
1336 }
1337
1338 // IMPORT
1339 .import-field-container {
1340 margin: 15px 0;
1341 }
1342
1343 // TAG CLOUD
1344 .cloudtag-container {
1345 padding: 10px;
1346 text-align: center;
1347 text-decoration: none;
1348 color: $dark-grey;
1349
1350 a {
1351 text-decoration: none;
1352 color: $dark-grey;
1353 }
1354
1355 .count {
1356 color: $light-grey;
1357 }
1358 }
1359
1360 // TAG LIST
1361 .taglist-container {
1362 padding: 0 10px;
1363
1364 a {
1365 text-decoration: none;
1366 color: $dark-grey;
1367 }
1368
1369 .count {
1370 display: inline-block;
1371 width: 35px;
1372 text-align: right;
1373 color: $light-grey;
1374 }
1375
1376 .rename-tag-form {
1377 display: none;
1378 }
1379
1380 .delete-tag {
1381 display: none;
1382 color: $red;
1383 }
1384
1385 .rename-tag {
1386 color: $blue;
1387 }
1388
1389 .validate-rename-tag {
1390 color: var(--main-color);
1391 }
1392 }
1393
1394 // Picture wall CSS
1395 .picwall-container {
1396 clear: both;
1397 margin: 0 10px 10px;
1398 background-color: $almost-white;
1399 color: $dark-grey;
1400 }
1401
1402 .picwall-pictureframe {
1403 display: table-cell;
1404 position: relative;
1405 float: left;
1406 z-index: 5;
1407 margin: 2px;
1408 background-color: $almost-white;
1409 width: 90px;
1410 height: 90px;
1411 overflow: hidden;
1412 vertical-align: middle;
1413 text-align: center;
1414
1415 // Adapt the width of the image
1416 img {
1417 max-width: 100%;
1418 height: auto;
1419 color: transparent;
1420 }
1421
1422 a {
1423 text-decoration: none;
1424 }
1425
1426 span {
1427 &.info {
1428 display: none;
1429 font-family: Arial, sans-serif;
1430 }
1431 }
1432
1433 // CSS to show title when hovering an image - no javascript required.
1434 &:hover {
1435 span {
1436 &.info {
1437 display: block;
1438 position: absolute;
1439 top: 0;
1440 left: 0;
1441 background-color: $dark-shadow;
1442 width: 90px;
1443 height: 90px;
1444 text-align: left;
1445 color: $almost-white;
1446 font-size: 9pt;
1447 font-weight: bold;
1448 }
1449 }
1450 }
1451 }
1452
1453 .b-lazy {
1454 transition: opacity 500ms ease-in-out;
1455 opacity: 0;
1456 -webkit-transition: opacity 500ms ease-in-out;
1457 -moz-transition: opacity 500ms ease-in-out;
1458 -o-transition: opacity 500ms ease-in-out;
1459 min-width: 1px;
1460 min-height: 1px;
1461
1462 &.b-loaded {
1463 opacity: 1;
1464 }
1465 }
1466
1467 // DAILY
1468 .daily-desc {
1469 color: $light-grey;
1470 font-size: .8em;
1471
1472 a {
1473 text-decoration: none;
1474 color: $dark-grey;
1475
1476 &:hover {
1477 color: $light-grey;
1478 }
1479 }
1480 }
1481
1482 .daily-about {
1483 h3 {
1484 &::before,
1485 &::after {
1486 display: block;
1487 margin: 10px auto;
1488 background: linear-gradient(to right, var(--background-color), $dark-grey, var(--background-color));
1489 width: 90%;
1490 height: 1px;
1491 content: '';
1492 }
1493 }
1494 }
1495
1496 .daily-entry {
1497 padding: 0 10px;
1498
1499 .daily-entry-title {
1500 margin: 10px 0 0;
1501
1502 a {
1503 text-decoration: none;
1504 color: $black;
1505 }
1506
1507 &::after {
1508 display: block;
1509 margin: 5px auto;
1510 background: linear-gradient(to right, $white, $light-grey, $white);
1511 width: 70%;
1512 height: 1px;
1513 content: '';
1514 }
1515 }
1516
1517 .daily-entry-description {
1518 padding: 5px 5px 0;
1519 text-align: justify;
1520 font-size: .9em;
1521 word-wrap: break-word;
1522 }
1523
1524 .daily-entry-tags {
1525 padding: 0 5px 5px;
1526 font-size: .8em;
1527 }
1528 }
1529
1530 .daily-entry-thumbnail {
1531 float: left;
1532 margin: 15px 5px 5px 15px;
1533 }
1534
1535 .daily-entry-description {
1536 a {
1537 text-decoration: none;
1538 color: var(--main-color);
1539
1540 &:hover {
1541 text-shadow: 1px 1px $background-linklist-info;
1542 }
1543
1544 &:visited {
1545 color: var(--dark-main-color);
1546 }
1547 }
1548 }
1549
1550 // Fix empty bookmarklet name in Firefox
1551 .pure-button {
1552 -moz-user-select: auto;
1553 }
1554
1555 .tag-sort {
1556 margin-top: 30px;
1557 text-align: center;
1558
1559 a {
1560 display: inline-block;
1561 margin: 0 15px;
1562 text-decoration: none;
1563 color: $white;
1564 font-weight: bold;
1565 }
1566 }
1567
1568 // Markdown
1569 .markdown {
1570 p {
1571 margin: 0 !important;
1572 }
1573
1574 p + p {
1575 margin: .5em 0 0 !important;
1576 }
1577
1578 * {
1579 &:first-child {
1580 margin-top: 0 !important;
1581 }
1582
1583 &:last-child {
1584 margin-bottom: 5px !important;
1585 }
1586 }
1587 }
1588
1589 // Pure Button
1590 .pure-button-success,
1591 .pure-button-error,
1592 .pure-button-warning,
1593 .pure-button-primary,
1594 .pure-button-shaarli,
1595 .pure-button-secondary {
1596 border-radius: 4px;
1597 text-shadow: 0 1px 1px $dark-shadow;
1598 color: $white !important;
1599 }
1600
1601 .pure-button-shaarli {
1602 background-color: var(--main-color);
1603 }
1604
1605 .progressbar {
1606 border-radius: 6px;
1607 background-color: var(--main-color);
1608 padding: 1px;
1609
1610 > div {
1611 border-radius: 10px;
1612 background: repeating-linear-gradient(
1613 -45deg,
1614 $almost-white,
1615 $almost-white 6px,
1616 var(--background-color) 6px,
1617 var(--background-color) 12px
1618 );
1619 width: 0%;
1620 height: 10px;
1621 }
1622 }
1623
1624 .thumbnails-page-container {
1625 .progress-counter {
1626 padding: 10px 0 20px;
1627 }
1628
1629 .thumbnail-placeholder {
1630 margin: 10px auto;
1631 background-color: $light-grey;
1632 }
1633
1634 .thumbnail-link-title {
1635 padding-bottom: 20px;
1636 overflow: hidden;
1637 text-overflow: ellipsis;
1638 white-space: nowrap;
1639 }
1640 }
1641
1642 // Print rules
1643 @media print {
1644 .shaarli-menu {
1645 position: absolute;
1646 }
1647
1648 .search-linklist,
1649 .link-count-block,
1650 .linklist-item-infos-controls-group,
1651 .mobile-buttons {
1652 display: none;
1653 }
1654 }