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