]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - assets/default/scss/shaarli.scss
Process manage tags page through Slim controller
[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
621 input {
622 &[type='text'] {
623 @extend %linksperpage-button;
624
625 margin: 0;
626 border: medium none currentColor;
627 background: $almost-white;
628 padding: 4px 5px 3px 8px;
629 height: 20px;
630 color: $dark-grey;
631 font-size: .8em;
632 }
633 }
634 }
635
636 // CONTENT - LINKLIST ITEMS
637 %private-border {
638 display: block;
639 position: absolute;
640 top: 0;
641 left: 3px;
642 z-index: 1;
643 background: $orange;
644 width: 2px;
645 height: 96%;
646 content: '';
647 }
648
649 .linklist-item {
650 position: relative;
651 margin: 0 0 10px;
652 box-shadow: 1px 1px 3px $light-grey;
653 background: $almost-white;
654
655 &.private {
656 &::before {
657 display: block;
658 position: absolute;
659 top: 0;
660 left: 0;
661 z-index: 1;
662 background: $orange;
663 width: 2px;
664 height: 100%;
665 content: '';
666 }
667 }
668 }
669
670 .linklist-item-buttons {
671 position: relative;
672 z-index: 99;
673 background: transparent;
674 width: 23px;
675 }
676
677 .linklist-item-buttons-right {
678 float: right;
679 margin-right: -25px;
680 }
681
682 .linklist-item-buttons * {
683 display: block;
684 float: left;
685 margin: auto;
686 width: 100%;
687 text-align: center;
688 }
689
690 .linklist-item-title {
691 position: relative;
692 margin: 0;
693 background: $almost-white;
694 word-wrap: break-word;
695
696 h2 {
697 margin: 0;
698 padding: 3px 10px 0;
699 line-height: 30px;
700 word-wrap: break-word;
701
702 a {
703 vertical-align: middle;
704 text-decoration: none;
705 color: $dark-grey;
706 font-size: .7em;
707
708 &:visited {
709 .linklist-link {
710 color: var(--dark-main-color);
711 }
712 }
713
714 &:hover {
715 color: $dark-grey;
716 }
717 }
718 }
719
720 .linklist-link {
721 color: var(--main-color);
722 font-size: 1.1em;
723
724 &:hover {
725 color: $dark-grey;
726 }
727 }
728
729 .label {
730 font-family: Arial, sans-serif;
731 font-size: .65em;
732 }
733
734 .label-private {
735 border: solid 1px $orange;
736 color: $orange;
737 }
738
739 .label-sticky {
740 border: solid 1px $blue;
741 color: $blue;
742 }
743 }
744
745 .fold-button {
746 display: none;
747 color: $dark-grey;
748 }
749
750 .linklist-item-editbuttons {
751 float: right;
752 padding: 8px 5px;
753
754 * {
755 display: block;
756 float: left;
757 margin: 0 1px;
758 }
759
760 a {
761 font-size: 1em;
762 }
763
764 .link-checkbox {
765 display: none;
766 }
767 }
768
769 .edit-link {
770 color: $blue;
771 font-size: 1.2em;
772 }
773
774 .delete-link {
775 color: $red !important;
776 font-size: 1.3em;
777 }
778
779 .pin-link {
780 font-size: 1.3em;
781 }
782
783 .pinned-link {
784 color: $blue !important;
785 }
786
787 .linklist-item-description {
788 position: relative;
789 padding: 0 10px;
790 line-height: 1.3em;
791 color: $dark-grey;
792 word-wrap: break-word;
793
794 a {
795 text-decoration: none;
796 color: var(--main-color);
797
798 &:hover {
799 color: $dark-grey;
800 }
801
802 &:visited {
803 color: var(--dark-main-color);
804 }
805 }
806 }
807
808 .linklist-item-thumbnail {
809 position: relative;
810 float: right;
811 z-index: 50;
812 margin: 0;
813 padding: 0 0 0 5px;
814 height: 90px;
815 }
816
817 .linklist-item-infos {
818 background: $background-linklist-info;
819 padding: 4px 8px;
820 color: $dark-grey;
821
822 a {
823 text-decoration: none;
824 color: $dark-grey;
825
826 &:hover {
827 color: $black;
828 }
829 }
830
831 .linklist-item-tags {
832 font-size: .8em;
833 }
834
835 .label-tag {
836 font-size: 1em;
837 }
838
839 .mobile-buttons {
840 text-align: right;
841 }
842
843 .linklist-plugin-icon {
844 display: inline-block;
845 margin: 0 2px;
846 width: 16px;
847 height: 16px;
848 }
849 }
850
851 .linklist-item-infos-dateblock {
852 font-size: .9em;
853 }
854
855 .linklist-plugin-icon {
856 width: 13px;
857 height: 13px;
858 }
859
860 .linklist-item-infos-url {
861 height: 23px;
862 overflow: hidden;
863 text-align: right;
864 text-overflow: ellipsis;
865 line-height: 23px;
866 white-space: nowrap;
867 font-size: .8em;
868 }
869
870 .linklist-item-infos-controls-group {
871 display: inline-block;
872 border-right: 1px solid $light-grey;
873 padding-right: 6px;
874 }
875
876 .ctrl-edit {
877 margin: 0 7px;
878 }
879
880 .ctrl-delete {
881 margin: 0 7px 0 0;
882 }
883
884 // 64em -> lg
885 @media screen and (max-width: 64em) {
886 .linklist-item-infos-url {
887 text-align: left;
888 }
889 }
890
891 // Footer
892 .footer-container {
893 margin: 20px 0;
894 padding: 5px;
895 text-align: center;
896 color: $dark-grey;
897
898 &::before {
899 display: block;
900 margin: 10px auto;
901 background: linear-gradient(to right, var(--background-color), $dark-grey, var(--background-color));
902 width: 80%;
903 height: 1px;
904 content: '';
905 }
906
907 a {
908 color: $dark-grey;
909 }
910 }
911
912 // PAGE FORM
913 %page-form-input {
914 margin: 10px 0;
915 border: solid 1px $form-input-border;
916 border-radius: 2px;
917 background: $form-input-background;
918 padding: 5px 5px 3px 15px;
919 width: 90%;
920 height: 35px;
921 color: $dark-grey;
922 box-sizing: border-box;
923 }
924
925 %page-form-button {
926 display: inline-block;
927 margin: 15px 5px;
928 border: 0;
929 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;
930 background: var(--main-color);
931 min-width: 150px;
932 height: 35px;
933 vertical-align: center;
934 text-decoration: none;
935 line-height: 35px;
936 color: $almost-white;
937 font-size: 1.2em;
938 font-weight: normal;
939 }
940
941 .page-form {
942 margin: 20px 0 0;
943 box-shadow: 1px 1px 2px $light-grey;
944 background: $almost-white;
945 overflow: hidden;
946 color: $dark-grey;
947
948 .window-title {
949 margin: 0 0 10px;
950 background: $almost-white;
951 padding: 10px 0;
952 width: 100%;
953 text-align: center;
954 color: var(--main-color);
955 }
956
957 .window-subtitle {
958 text-align: center;
959 }
960
961 a {
962 text-decoration: none;
963 color: var(--main-color);
964 font-weight: bold;
965
966 &.button {
967 @extend %page-form-button;
968 }
969 }
970
971 p {
972 margin: 0;
973 padding: 5px 10px;
974 }
975
976 input {
977 &[type='text'] {
978 @extend %page-form-input;
979
980 &::-webkit-input-placeholder {
981 color: $light-grey;
982 }
983 }
984
985 &[type='password'] {
986 @extend %page-form-input;
987
988 &::-webkit-input-placeholder {
989 color: $light-grey;
990 }
991 }
992
993 &[type='submit'] {
994 @extend %page-form-button;
995 }
996 }
997
998 textarea {
999 @extend %page-form-input;
1000
1001 padding: 15px 5px 3px 15px;
1002 min-height: 240px;
1003 resize: vertical;
1004 overflow-y: auto;
1005 word-wrap: break-word;
1006 }
1007
1008 select {
1009 color: $dark-grey;
1010 }
1011
1012 .button {
1013 &.button-red {
1014 background: $red;
1015 }
1016 }
1017
1018 .submit-buttons {
1019 margin-bottom: 10px;
1020 }
1021
1022 section {
1023 margin: 10px 0 25px;
1024 }
1025
1026 table,
1027 th,
1028 td {
1029 border-width: 1px 0;
1030 border-style: solid;
1031 border-color: $light-grey;
1032 }
1033
1034 th,
1035 td {
1036 padding: 5px;
1037 }
1038
1039 table {
1040 margin: auto;
1041 width: 90%;
1042
1043 .order {
1044 text-decoration: none;
1045 color: $dark-grey;
1046 }
1047 }
1048
1049 .awesomplete {
1050 width: 90%;
1051
1052 input {
1053 width: 100%;
1054 }
1055 }
1056
1057 div {
1058 .awesomplete {
1059 > ul {
1060 color: $black;
1061 }
1062 }
1063 }
1064 }
1065
1066 @media screen and (min-width: 64em) {
1067 .page-form {
1068 .submit-buttons {
1069 position: relative;
1070
1071 .button {
1072 &.button-red {
1073 position: absolute;
1074 right: 5%;
1075 }
1076 }
1077 }
1078 }
1079 }
1080
1081 @media screen and (max-width: 64em) {
1082 .page-form {
1083 .submit-buttons {
1084 .button {
1085 margin: auto;
1086 }
1087 }
1088 }
1089 }
1090
1091 // PAGE FORM - LIGHT
1092 .page-form-light {
1093 div,
1094 p {
1095 text-align: center;
1096 }
1097 }
1098
1099 // PAGE FORM - COMPLETE
1100 %page-form-valign {
1101 position: absolute;
1102 top: 50%;
1103 transform: translateY(-50%);
1104 }
1105
1106 .page-form-complete {
1107 div,
1108 p {
1109 color: $dark-grey;
1110 }
1111
1112 .form-label,
1113 .form-input {
1114 position: relative;
1115 height: 60px;
1116 }
1117
1118 .form-label {
1119 label {
1120 @extend %page-form-valign;
1121
1122 right: 0;
1123 padding: 0 20px;
1124 text-align: right;
1125 }
1126 }
1127
1128 .label-name {
1129 font-weight: bold;
1130 }
1131
1132 .label-desc {
1133 font-size: .8em;
1134 }
1135
1136 .form-input {
1137 input {
1138 @extend %page-form-valign;
1139
1140 &[type='text'],
1141 &[type='password'] {
1142 margin: 0;
1143 }
1144 }
1145
1146 select {
1147 &.align {
1148 @extend %page-form-valign;
1149 }
1150 }
1151 }
1152
1153 textarea {
1154 margin: 0;
1155 }
1156
1157 .timezone {
1158 @extend %page-form-valign;
1159 }
1160 }
1161
1162 // Awesomeplete fix
1163 div {
1164 &.awesomplete {
1165 width: inherit;
1166
1167 > input {
1168 display: inherit;
1169 }
1170
1171 > ul {
1172 z-index: 9999;
1173 }
1174 }
1175 }
1176
1177 form {
1178 &[name='linkform'] {
1179 &.page-form {
1180 overflow: visible;
1181 }
1182 }
1183 }
1184
1185 @media screen and (max-width: 64em) {
1186 %page-form-valign-mobile {
1187 position: inherit;
1188 top: inherit;
1189 transform: translateY(0);
1190 }
1191
1192 .page-form-complete {
1193 .form-label {
1194 height: inherit;
1195
1196 label {
1197 @extend %page-form-valign-mobile;
1198
1199 display: block;
1200 margin: 10px 0 0;
1201 text-align: left;
1202 }
1203 }
1204
1205 .form-input {
1206 text-align: center;
1207
1208 input {
1209 @extend %page-form-valign-mobile;
1210
1211 &[type='checkbox'] {
1212 position: absolute;
1213 top: 50%;
1214 right: 50%;
1215 transform: translateY(-50%);
1216 }
1217 }
1218 }
1219
1220 .timezone {
1221 @extend %page-form-valign-mobile;
1222 }
1223
1224 .radio-buttons {
1225 padding: 5px 15px;
1226 text-align: left;
1227 }
1228 }
1229
1230 .timezone-continent {
1231 &::after {
1232 white-space: pre;
1233 content: '\a\a';
1234 }
1235 }
1236 }
1237
1238 // Page visitor (page form extended)
1239 .page-visitor {
1240 color: $dark-grey;
1241 }
1242
1243 .page-error-container {
1244 color: $dark-grey;
1245
1246 h2 {
1247 margin: 70px 0 25px;
1248 }
1249
1250 pre {
1251 margin: 0 20%;
1252 padding: 20px 0;
1253 text-align: left;
1254 line-height: .7em;
1255 }
1256 }
1257
1258 // EDIT LINK
1259 .edit-link-container {
1260 .created-date {
1261 margin-bottom: 10px;
1262 color: $light-grey;
1263 }
1264 }
1265
1266 // LOGIN
1267 .login-form-container {
1268 .remember-me {
1269 margin: 5px 0;
1270 }
1271 }
1272
1273 // Search results
1274 .search-result {
1275 a {
1276 text-decoration: none;
1277 color: $white;
1278 }
1279
1280 .label-tag {
1281 border-color: $white;
1282
1283 .remove {
1284 margin: 0 0 0 5px;
1285 border-left: $white 1px solid;
1286 padding: 0 0 0 5px;
1287 }
1288 }
1289
1290 .label-private {
1291 border: 1px solid $white;
1292 }
1293 }
1294
1295 // TOOLS
1296 .tools-item {
1297 margin: 10px 0;
1298
1299 .pure-button {
1300 &:hover {
1301 background-color: var(--main-color);
1302 background-image: none;
1303 color: $almost-white;
1304 }
1305 }
1306 }
1307
1308 // PLUGIN ADMIN
1309 .pluginform-container {
1310 .mobile-row {
1311 font-size: .9em;
1312 }
1313
1314 .more {
1315 margin-top: 10px;
1316 }
1317 }
1318
1319 @media screen and (max-width: 64em) {
1320 .pluginform-container {
1321 .main-row {
1322 border-top-style: none;
1323 border-bottom-style: none;
1324
1325 td {
1326 border-top-style: none;
1327 border-bottom-style: none;
1328 }
1329 }
1330 }
1331 }
1332
1333 // IMPORT
1334 .import-field-container {
1335 margin: 15px 0;
1336 }
1337
1338 // TAG CLOUD
1339 .cloudtag-container {
1340 padding: 10px;
1341 text-align: center;
1342 text-decoration: none;
1343 color: $dark-grey;
1344
1345 a {
1346 text-decoration: none;
1347 color: $dark-grey;
1348 }
1349
1350 .count {
1351 color: $light-grey;
1352 }
1353 }
1354
1355 // TAG LIST
1356 .taglist-container {
1357 padding: 0 10px;
1358
1359 a {
1360 text-decoration: none;
1361 color: $dark-grey;
1362 }
1363
1364 .count {
1365 display: inline-block;
1366 width: 35px;
1367 text-align: right;
1368 color: $light-grey;
1369 }
1370
1371 .rename-tag-form {
1372 display: none;
1373 }
1374
1375 .delete-tag {
1376 display: none;
1377 color: $red;
1378 }
1379
1380 .rename-tag {
1381 color: $blue;
1382 }
1383
1384 .validate-rename-tag {
1385 color: var(--main-color);
1386 }
1387 }
1388
1389 // Picture wall CSS
1390 .picwall-container {
1391 clear: both;
1392 margin: 0 10px 10px;
1393 background-color: $almost-white;
1394 color: $dark-grey;
1395 }
1396
1397 .picwall-pictureframe {
1398 display: table-cell;
1399 position: relative;
1400 float: left;
1401 z-index: 5;
1402 margin: 2px;
1403 background-color: $almost-white;
1404 width: 90px;
1405 height: 90px;
1406 overflow: hidden;
1407 vertical-align: middle;
1408 text-align: center;
1409
1410 // Adapt the width of the image
1411 img {
1412 max-width: 100%;
1413 height: auto;
1414 color: transparent;
1415 }
1416
1417 a {
1418 text-decoration: none;
1419 }
1420
1421 span {
1422 &.info {
1423 display: none;
1424 font-family: Arial, sans-serif;
1425 }
1426 }
1427
1428 // CSS to show title when hovering an image - no javascript required.
1429 &:hover {
1430 span {
1431 &.info {
1432 display: block;
1433 position: absolute;
1434 top: 0;
1435 left: 0;
1436 background-color: $dark-shadow;
1437 width: 90px;
1438 height: 90px;
1439 text-align: left;
1440 color: $almost-white;
1441 font-size: 9pt;
1442 font-weight: bold;
1443 }
1444 }
1445 }
1446 }
1447
1448 .b-lazy {
1449 transition: opacity 500ms ease-in-out;
1450 opacity: 0;
1451 -webkit-transition: opacity 500ms ease-in-out;
1452 -moz-transition: opacity 500ms ease-in-out;
1453 -o-transition: opacity 500ms ease-in-out;
1454 min-width: 1px;
1455 min-height: 1px;
1456
1457 &.b-loaded {
1458 opacity: 1;
1459 }
1460 }
1461
1462 // DAILY
1463 .daily-desc {
1464 color: $light-grey;
1465 font-size: .8em;
1466
1467 a {
1468 text-decoration: none;
1469 color: $dark-grey;
1470
1471 &:hover {
1472 color: $light-grey;
1473 }
1474 }
1475 }
1476
1477 .daily-about {
1478 h3 {
1479 &::before,
1480 &::after {
1481 display: block;
1482 margin: 10px auto;
1483 background: linear-gradient(to right, var(--background-color), $dark-grey, var(--background-color));
1484 width: 90%;
1485 height: 1px;
1486 content: '';
1487 }
1488 }
1489 }
1490
1491 .daily-entry {
1492 padding: 0 10px;
1493
1494 .daily-entry-title {
1495 margin: 10px 0 0;
1496
1497 a {
1498 text-decoration: none;
1499 color: $black;
1500 }
1501
1502 &::after {
1503 display: block;
1504 margin: 5px auto;
1505 background: linear-gradient(to right, $white, $light-grey, $white);
1506 width: 70%;
1507 height: 1px;
1508 content: '';
1509 }
1510 }
1511
1512 .daily-entry-description {
1513 padding: 5px 5px 0;
1514 text-align: justify;
1515 font-size: .9em;
1516 word-wrap: break-word;
1517 }
1518
1519 .daily-entry-tags {
1520 padding: 0 5px 5px;
1521 font-size: .8em;
1522 }
1523 }
1524
1525 .daily-entry-thumbnail {
1526 float: left;
1527 margin: 15px 5px 5px 15px;
1528 }
1529
1530 .daily-entry-description {
1531 a {
1532 text-decoration: none;
1533 color: var(--main-color);
1534
1535 &:hover {
1536 text-shadow: 1px 1px $background-linklist-info;
1537 }
1538
1539 &:visited {
1540 color: var(--dark-main-color);
1541 }
1542 }
1543 }
1544
1545 // Fix empty bookmarklet name in Firefox
1546 .pure-button {
1547 -moz-user-select: auto;
1548 }
1549
1550 .tag-sort {
1551 margin-top: 30px;
1552 text-align: center;
1553
1554 a {
1555 display: inline-block;
1556 margin: 0 15px;
1557 text-decoration: none;
1558 color: $white;
1559 font-weight: bold;
1560 }
1561 }
1562
1563 // Markdown
1564 .markdown {
1565 p {
1566 margin: 0 !important;
1567 }
1568
1569 p + p {
1570 margin: .5em 0 0 !important;
1571 }
1572
1573 * {
1574 &:first-child {
1575 margin-top: 0 !important;
1576 }
1577
1578 &:last-child {
1579 margin-bottom: 5px !important;
1580 }
1581 }
1582 }
1583
1584 // Pure Button
1585 .pure-button-success,
1586 .pure-button-error,
1587 .pure-button-warning,
1588 .pure-button-primary,
1589 .pure-button-shaarli,
1590 .pure-button-secondary {
1591 border-radius: 4px;
1592 text-shadow: 0 1px 1px $dark-shadow;
1593 color: $white !important;
1594 }
1595
1596 .pure-button-shaarli {
1597 background-color: var(--main-color);
1598 }
1599
1600 .progressbar {
1601 border-radius: 6px;
1602 background-color: var(--main-color);
1603 padding: 1px;
1604
1605 > div {
1606 border-radius: 10px;
1607 background: repeating-linear-gradient(
1608 -45deg,
1609 $almost-white,
1610 $almost-white 6px,
1611 var(--background-color) 6px,
1612 var(--background-color) 12px
1613 );
1614 width: 0%;
1615 height: 10px;
1616 }
1617 }
1618
1619 .thumbnails-page-container {
1620 .progress-counter {
1621 padding: 10px 0 20px;
1622 }
1623
1624 .thumbnail-placeholder {
1625 margin: 10px auto;
1626 background-color: $light-grey;
1627 }
1628
1629 .thumbnail-link-title {
1630 padding-bottom: 20px;
1631 overflow: hidden;
1632 text-overflow: ellipsis;
1633 white-space: nowrap;
1634 }
1635 }
1636
1637 // Print rules
1638 @media print {
1639 .shaarli-menu {
1640 position: absolute;
1641 }
1642
1643 .search-linklist,
1644 .link-count-block,
1645 .linklist-item-infos-controls-group,
1646 .mobile-buttons {
1647 display: none;
1648 }
1649 }