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