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