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