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