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