]>
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 | width: 20%; | |
385 | height: 20px; | |
386 | color: $dark-grey; | |
387 | } | |
388 | ||
389 | .subheader-form { | |
390 | display: block; | |
391 | position: fixed; | |
392 | visibility: hidden; | |
393 | z-index: 999; | |
394 | background: $main-green; | |
395 | padding: 5px 0; | |
396 | width: 100%; | |
397 | height: 30px; | |
398 | text-align: center; | |
399 | ||
400 | input { | |
401 | &[type='text'], | |
402 | &[type='password'] { | |
403 | @extend %subheader-form-input; | |
404 | ||
405 | &::-webkit-input-placeholder { | |
406 | color: $dark-grey; | |
407 | } | |
408 | } | |
409 | } | |
410 | ||
411 | &[type='submit'] { | |
412 | display: inline-block; | |
413 | margin: 0 0 5px; | |
414 | border: 1px solid $almost-white; | |
415 | border-radius: 2px; | |
416 | background: $main-green; | |
417 | padding: 4px 0; | |
418 | width: 100px; | |
419 | height: 28px; | |
420 | color: $almost-white; | |
421 | ||
422 | &:hover { | |
423 | background: $almost-white; | |
424 | color: $main-green; | |
425 | } | |
426 | } | |
427 | ||
428 | .remember-me { | |
429 | @extend %subheader-form-input; | |
430 | ||
431 | display: inline-block; | |
432 | cursor: pointer; | |
433 | padding: 5px 20px 3px; | |
434 | width: auto; | |
435 | ||
436 | label, | |
437 | input { | |
438 | cursor: pointer; | |
439 | } | |
440 | } | |
441 | ||
442 | a { | |
443 | &.button { | |
444 | border: 2px solid $almost-white; | |
445 | border-radius: 5px; | |
446 | padding: 3px 10px; | |
447 | text-decoration: none; | |
448 | color: $almost-white; | |
449 | font-weight: bold; | |
450 | } | |
451 | } | |
452 | } | |
453 | ||
454 | .header-login-form { | |
455 | input { | |
456 | &[type='text'], | |
457 | &[type='password'] { | |
458 | width: 200px; | |
459 | ||
460 | // because chrome | |
461 | &::-webkit-input-placeholder { | |
462 | color: $light-grey; | |
463 | } | |
464 | } | |
465 | } | |
466 | } | |
467 | ||
468 | @media screen and (min-width: 64em) { | |
469 | .subheader-form { | |
470 | &.open { | |
471 | visibility: visible; | |
472 | ||
473 | * { | |
474 | visibility: visible; | |
475 | } | |
476 | } | |
477 | } | |
478 | } | |
479 | ||
480 | .new-version-message { | |
481 | text-align: center; | |
482 | ||
483 | a { | |
484 | color: $warning-text; | |
485 | font-weight: bold; | |
486 | } | |
487 | } | |
488 | ||
489 | // CONTENT - GENERAL | |
490 | .container { | |
491 | position: relative; | |
492 | z-index: 2; | |
493 | margin-top: 45px; | |
494 | } | |
495 | ||
496 | // Plugins additional forms | |
497 | .toolbar-plugin { | |
498 | margin: 5px 0; | |
499 | text-align: center; | |
500 | ||
501 | input { | |
502 | &[type='text'] { | |
503 | border: medium none currentColor; | |
504 | border-radius: 2px; | |
505 | box-shadow: 0 1px 0 $light-shadow, 0 1px 1px $dark-shadow inset; | |
506 | background: $almost-white; | |
507 | padding: 0 5px; | |
508 | width: 300px; | |
509 | height: 30px; | |
510 | color: $dark-grey; | |
511 | ||
512 | &::-webkit-input-placeholder { | |
513 | color: $light-grey; | |
514 | } | |
515 | } | |
516 | ||
517 | &[type='submit'] { | |
518 | border: medium none currentColor; | |
519 | border-radius: 2px; | |
520 | background: $almost-white; | |
521 | padding: 0 10px; | |
522 | height: 30px; | |
523 | color: $dark-grey; | |
524 | ||
525 | &:hover { | |
526 | background: $white; | |
527 | } | |
528 | } | |
529 | } | |
530 | } | |
531 | ||
532 | @media screen and (max-width: 64em) { | |
533 | .toolbar-plugin { | |
534 | input { | |
535 | &[type='text'] { | |
536 | width: 70%; | |
537 | } | |
538 | } | |
539 | } | |
540 | } | |
541 | ||
542 | // CONTENT - LINKLIST PAGING | |
543 | // 64em -> lg | |
544 | .linklist-filters { | |
545 | margin: 5px 0; | |
546 | color: $dark-grey; | |
547 | font-size: .9em; | |
548 | ||
549 | a { | |
550 | padding: 5px 8px; | |
551 | text-decoration: none; | |
552 | } | |
553 | ||
554 | .filter-off { | |
555 | background: $almost-white; | |
556 | color: $dark-grey; | |
557 | } | |
558 | ||
559 | .filter-on { | |
560 | background: $main-green; | |
561 | color: $light-green; | |
562 | } | |
563 | ||
564 | .filter-block { | |
565 | background: $red; | |
566 | color: $almost-white; | |
567 | } | |
568 | } | |
569 | ||
570 | .linklist-pages { | |
571 | margin: 5px 0; | |
572 | text-align: center; | |
573 | color: $dark-grey; | |
574 | ||
575 | a { | |
576 | text-decoration: none; | |
577 | color: $dark-grey; | |
578 | ||
579 | &:hover { | |
580 | color: $white; | |
581 | } | |
582 | } | |
583 | } | |
584 | ||
585 | %linksperpage-button { | |
586 | display: inline-block; | |
587 | width: 20px; | |
588 | text-align: center; | |
589 | } | |
590 | ||
591 | .linksperpage { | |
592 | margin: 5px 0; | |
593 | text-align: right; | |
594 | color: $dark-grey; | |
595 | font-size: .9em; | |
596 | ||
597 | form { | |
598 | display: inline; | |
599 | } | |
600 | ||
601 | a { | |
602 | @extend %linksperpage-button; | |
603 | ||
604 | background: $almost-white; | |
605 | padding: 5px; | |
606 | text-decoration: none; | |
607 | color: $dark-grey; | |
608 | } | |
609 | ||
610 | input { | |
611 | &[type='text'] { | |
612 | @extend %linksperpage-button; | |
613 | ||
614 | margin: 0; | |
615 | border: medium none currentColor; | |
616 | background: $almost-white; | |
617 | padding: 4px 5px 3px 8px; | |
618 | height: 20px; | |
619 | color: $dark-grey; | |
620 | font-size: .8em; | |
621 | } | |
622 | } | |
623 | } | |
624 | ||
625 | // CONTENT - LINKLIST ITEMS | |
626 | %private-border { | |
627 | display: block; | |
628 | position: absolute; | |
629 | top: 0; | |
630 | left: 3px; | |
631 | z-index: 1; | |
632 | background: $orange; | |
633 | width: 2px; | |
634 | height: 96%; | |
635 | content: ''; | |
636 | } | |
637 | ||
638 | .linklist-item { | |
639 | margin: 0 0 10px; | |
640 | box-shadow: 1px 1px 3px $light-grey; | |
641 | background: $almost-white; | |
642 | ||
643 | &.private { | |
644 | .linklist-item-title { | |
645 | &::before { | |
646 | @extend %private-border; | |
647 | margin-top: 3px; | |
648 | } | |
649 | } | |
650 | ||
651 | .linklist-item-description { | |
652 | &::before { | |
653 | @extend %private-border; | |
654 | height: 100%; | |
655 | } | |
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 | .delete-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 | .linklist-item-description { | |
762 | position: relative; | |
763 | padding: 0 10px; | |
764 | line-height: 1.3em; | |
765 | color: $dark-grey; | |
766 | word-wrap: break-word; | |
767 | ||
768 | a { | |
769 | text-decoration: none; | |
770 | color: $main-green; | |
771 | ||
772 | &:hover { | |
773 | color: $dark-grey; | |
774 | } | |
775 | ||
776 | &:visited { | |
777 | color: $dark-green; | |
778 | } | |
779 | } | |
780 | } | |
781 | ||
782 | .linklist-item-thumbnail { | |
783 | position: relative; | |
784 | float: right; | |
785 | z-index: 50; | |
786 | margin: 0; | |
787 | padding: 0 0 0 5px; | |
788 | height: 90px; | |
789 | } | |
790 | ||
791 | .linklist-item-infos { | |
792 | background: $background-linklist-info; | |
793 | padding: 4px 8px; | |
794 | color: $dark-grey; | |
795 | ||
796 | a { | |
797 | text-decoration: none; | |
798 | color: $dark-grey; | |
799 | ||
800 | &:hover { | |
801 | color: $black; | |
802 | } | |
803 | } | |
804 | ||
805 | .linklist-item-tags { | |
806 | font-size: .8em; | |
807 | } | |
808 | ||
809 | .label-tag { | |
810 | font-size: 1em; | |
811 | } | |
812 | ||
813 | .mobile-buttons { | |
814 | text-align: right; | |
815 | } | |
816 | ||
817 | .linklist-plugin-icon { | |
818 | display: inline-block; | |
819 | margin: 0 2px; | |
820 | width: 16px; | |
821 | height: 16px; | |
822 | } | |
823 | } | |
824 | ||
825 | .linklist-item-infos-dateblock { | |
826 | font-size: .9em; | |
827 | } | |
828 | ||
829 | .linklist-plugin-icon { | |
830 | width: 13px; | |
831 | height: 13px; | |
832 | } | |
833 | ||
834 | .linklist-item-infos-url { | |
835 | height: 23px; | |
836 | overflow: hidden; | |
837 | text-align: right; | |
838 | text-overflow: ellipsis; | |
839 | line-height: 23px; | |
840 | white-space: nowrap; | |
841 | font-size: .8em; | |
842 | } | |
843 | ||
844 | .linklist-item-infos-controls-group { | |
845 | display: inline-block; | |
846 | border-right: 1px solid $light-grey; | |
847 | padding-right: 6px; | |
848 | } | |
849 | ||
850 | .ctrl-edit { | |
851 | margin: 0 7px; | |
852 | } | |
853 | ||
854 | // 64em -> lg | |
855 | @media screen and (max-width: 64em) { | |
856 | .linklist-item-infos-url { | |
857 | text-align: left; | |
858 | } | |
859 | } | |
860 | ||
861 | // Footer | |
862 | .footer-container { | |
863 | margin: 20px 0; | |
864 | padding: 5px; | |
865 | text-align: center; | |
866 | color: $dark-grey; | |
867 | ||
868 | &::before { | |
869 | display: block; | |
870 | margin: 10px auto; | |
871 | background: linear-gradient(to right, $background-color, $dark-grey, $background-color); | |
872 | width: 80%; | |
873 | height: 1px; | |
874 | content: ''; | |
875 | } | |
876 | ||
877 | a { | |
878 | color: $dark-grey; | |
879 | } | |
880 | } | |
881 | ||
882 | // PAGE FORM | |
883 | %page-form-input { | |
884 | margin: 10px 0; | |
885 | border: solid 1px $form-input-border; | |
886 | border-radius: 2px; | |
887 | background: $form-input-background; | |
888 | padding: 5px 5px 3px 15px; | |
889 | width: 90%; | |
890 | height: 35px; | |
891 | color: $dark-grey; | |
892 | box-sizing: border-box; | |
893 | } | |
894 | ||
895 | %page-form-button { | |
896 | display: inline-block; | |
897 | margin: 15px 5px; | |
898 | border: 0; | |
899 | 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; | |
900 | background: $main-green; | |
901 | min-width: 150px; | |
902 | height: 35px; | |
903 | vertical-align: center; | |
904 | text-decoration: none; | |
905 | line-height: 35px; | |
906 | color: $almost-white; | |
907 | font-size: 1.2em; | |
908 | font-weight: normal; | |
909 | } | |
910 | ||
911 | .page-form { | |
912 | margin: 20px 0 0; | |
913 | box-shadow: 1px 1px 2px $light-grey; | |
914 | background: $almost-white; | |
915 | overflow: hidden; | |
916 | color: $dark-grey; | |
917 | ||
918 | .window-title { | |
919 | margin: 0 0 10px; | |
920 | background: $almost-white; | |
921 | padding: 10px 0; | |
922 | width: 100%; | |
923 | text-align: center; | |
924 | color: $main-green; | |
925 | } | |
926 | ||
927 | .window-subtitle { | |
928 | text-align: center; | |
929 | } | |
930 | ||
931 | a { | |
932 | text-decoration: none; | |
933 | color: $main-green; | |
934 | font-weight: bold; | |
935 | ||
936 | &.button { | |
937 | @extend %page-form-button; | |
938 | } | |
939 | } | |
940 | ||
941 | p { | |
942 | margin: 0; | |
943 | padding: 5px 10px; | |
944 | } | |
945 | ||
946 | input { | |
947 | &[type='text'] { | |
948 | @extend %page-form-input; | |
949 | ||
950 | &::-webkit-input-placeholder { | |
951 | color: $light-grey; | |
952 | } | |
953 | } | |
954 | ||
955 | &[type='password'] { | |
956 | @extend %page-form-input; | |
957 | ||
958 | &::-webkit-input-placeholder { | |
959 | color: $light-grey; | |
960 | } | |
961 | } | |
962 | ||
963 | &[type='submit'] { | |
964 | @extend %page-form-button; | |
965 | } | |
966 | } | |
967 | ||
968 | textarea { | |
969 | @extend %page-form-input; | |
970 | ||
971 | padding: 15px 5px 3px 15px; | |
972 | min-height: 240px; | |
973 | resize: vertical; | |
974 | overflow-y: auto; | |
975 | word-wrap: break-word; | |
976 | } | |
977 | ||
978 | select { | |
979 | color: $dark-grey; | |
980 | } | |
981 | ||
982 | .button { | |
983 | &.button-red { | |
984 | background: $red; | |
985 | } | |
986 | } | |
987 | ||
988 | .submit-buttons { | |
989 | margin-bottom: 10px; | |
990 | } | |
991 | ||
992 | section { | |
993 | margin: 10px 0 25px; | |
994 | } | |
995 | ||
996 | table, | |
997 | th, | |
998 | td { | |
999 | border-width: 1px 0; | |
1000 | border-style: solid; | |
1001 | border-color: $light-grey; | |
1002 | } | |
1003 | ||
1004 | th, | |
1005 | td { | |
1006 | padding: 5px; | |
1007 | } | |
1008 | ||
1009 | table { | |
1010 | margin: auto; | |
1011 | width: 90%; | |
1012 | ||
1013 | .order { | |
1014 | text-decoration: none; | |
1015 | color: $dark-grey; | |
1016 | } | |
1017 | } | |
1018 | ||
1019 | .awesomplete { | |
1020 | width: 90%; | |
1021 | ||
1022 | input { | |
1023 | width: 100%; | |
1024 | } | |
1025 | } | |
1026 | ||
1027 | div { | |
1028 | .awesomplete { | |
1029 | > ul { | |
1030 | color: $black; | |
1031 | } | |
1032 | } | |
1033 | } | |
1034 | } | |
1035 | ||
1036 | @media screen and (min-width: 64em) { | |
1037 | .page-form { | |
1038 | .submit-buttons { | |
1039 | position: relative; | |
1040 | ||
1041 | .button { | |
1042 | &.button-red { | |
1043 | position: absolute; | |
1044 | right: 5%; | |
1045 | } | |
1046 | } | |
1047 | } | |
1048 | } | |
1049 | } | |
1050 | ||
1051 | @media screen and (max-width: 64em) { | |
1052 | .page-form { | |
1053 | .submit-buttons { | |
1054 | .button { | |
1055 | display: block; | |
1056 | margin: auto; | |
1057 | } | |
1058 | } | |
1059 | } | |
1060 | } | |
1061 | ||
1062 | // PAGE FORM - LIGHT | |
1063 | .page-form-light { | |
1064 | div, | |
1065 | p { | |
1066 | text-align: center; | |
1067 | } | |
1068 | } | |
1069 | ||
1070 | // PAGE FORM - COMPLETE | |
1071 | %page-form-valign { | |
1072 | position: absolute; | |
1073 | top: 50%; | |
1074 | transform: translateY(-50%); | |
1075 | } | |
1076 | ||
1077 | .page-form-complete { | |
1078 | div, | |
1079 | p { | |
1080 | color: $dark-grey; | |
1081 | } | |
1082 | ||
1083 | .form-label, | |
1084 | .form-input { | |
1085 | position: relative; | |
1086 | height: 60px; | |
1087 | } | |
1088 | ||
1089 | .form-label { | |
1090 | label { | |
1091 | @extend %page-form-valign; | |
1092 | ||
1093 | right: 0; | |
1094 | padding: 0 20px; | |
1095 | text-align: right; | |
1096 | } | |
1097 | } | |
1098 | ||
1099 | .label-name { | |
1100 | font-weight: bold; | |
1101 | } | |
1102 | ||
1103 | .label-desc { | |
1104 | font-size: .8em; | |
1105 | } | |
1106 | ||
1107 | .form-input { | |
1108 | input { | |
1109 | @extend %page-form-valign; | |
1110 | ||
1111 | &[type='text'], | |
1112 | &[type='password'] { | |
1113 | margin: 0; | |
1114 | } | |
1115 | } | |
1116 | ||
1117 | select { | |
1118 | &.align { | |
1119 | @extend %page-form-valign; | |
1120 | } | |
1121 | } | |
1122 | } | |
1123 | ||
1124 | textarea { | |
1125 | margin: 0; | |
1126 | } | |
1127 | ||
1128 | .timezone { | |
1129 | @extend %page-form-valign; | |
1130 | } | |
1131 | } | |
1132 | ||
1133 | // Awesomeplete fix | |
1134 | div { | |
1135 | &.awesomplete { | |
1136 | width: inherit; | |
1137 | ||
1138 | > input { | |
1139 | display: inherit; | |
1140 | } | |
1141 | ||
1142 | > ul { | |
1143 | z-index: 9999; | |
1144 | } | |
1145 | } | |
1146 | } | |
1147 | ||
1148 | form { | |
1149 | &[name='linkform'] { | |
1150 | &.page-form { | |
1151 | overflow: visible; | |
1152 | } | |
1153 | } | |
1154 | } | |
1155 | ||
1156 | @media screen and (max-width: 64em) { | |
1157 | %page-form-valign-mobile { | |
1158 | position: inherit; | |
1159 | top: inherit; | |
1160 | transform: translateY(0); | |
1161 | } | |
1162 | ||
1163 | .page-form-complete { | |
1164 | .form-label { | |
1165 | height: inherit; | |
1166 | ||
1167 | label { | |
1168 | @extend %page-form-valign-mobile; | |
1169 | ||
1170 | display: block; | |
1171 | margin: 10px 0 0; | |
1172 | text-align: left; | |
1173 | } | |
1174 | } | |
1175 | ||
1176 | .form-input { | |
1177 | text-align: center; | |
1178 | ||
1179 | input { | |
1180 | @extend %page-form-valign-mobile; | |
1181 | ||
1182 | &[type='checkbox'] { | |
1183 | position: absolute; | |
1184 | top: 50%; | |
1185 | right: 50%; | |
1186 | transform: translateY(-50%); | |
1187 | } | |
1188 | } | |
1189 | } | |
1190 | ||
1191 | .timezone { | |
1192 | @extend %page-form-valign-mobile; | |
1193 | } | |
1194 | ||
1195 | .radio-buttons { | |
1196 | padding: 5px 15px; | |
1197 | text-align: left; | |
1198 | } | |
1199 | } | |
1200 | ||
1201 | .timezone-continent { | |
1202 | &::after { | |
1203 | white-space: pre; | |
1204 | content: '\a\a'; | |
1205 | } | |
1206 | } | |
1207 | } | |
1208 | ||
1209 | // Page visitor (page form extended) | |
1210 | .page-visitor { | |
1211 | color: $dark-grey; | |
1212 | } | |
1213 | ||
1214 | .page404-container { | |
1215 | color: $dark-grey; | |
1216 | } | |
1217 | ||
1218 | // EDIT LINK | |
1219 | .edit-link-container { | |
1220 | .created-date { | |
1221 | margin-bottom: 10px; | |
1222 | color: $light-grey; | |
1223 | } | |
1224 | } | |
1225 | ||
1226 | // LOGIN | |
1227 | .login-form-container { | |
1228 | .remember-me { | |
1229 | margin: 5px 0; | |
1230 | } | |
1231 | } | |
1232 | ||
1233 | // Search results | |
1234 | .search-result { | |
1235 | a { | |
1236 | text-decoration: none; | |
1237 | color: $white; | |
1238 | } | |
1239 | ||
1240 | .label-tag { | |
1241 | border-color: $white; | |
1242 | ||
1243 | .remove { | |
1244 | margin: 0 0 0 5px; | |
1245 | border-left: $white 1px solid; | |
1246 | padding: 0 0 0 5px; | |
1247 | } | |
1248 | } | |
1249 | ||
1250 | .label-private { | |
1251 | border: 1px solid $white; | |
1252 | } | |
1253 | } | |
1254 | ||
1255 | // TOOLS | |
1256 | .tools-item { | |
1257 | margin: 10px 0; | |
1258 | ||
1259 | .pure-button { | |
1260 | &:hover { | |
1261 | background-color: $main-green; | |
1262 | background-image: none; | |
1263 | color: $almost-white; | |
1264 | } | |
1265 | } | |
1266 | } | |
1267 | ||
1268 | // PLUGIN ADMIN | |
1269 | .pluginform-container { | |
1270 | .mobile-row { | |
1271 | font-size: .9em; | |
1272 | } | |
1273 | ||
1274 | .more { | |
1275 | margin-top: 10px; | |
1276 | } | |
1277 | } | |
1278 | ||
1279 | @media screen and (max-width: 64em) { | |
1280 | .pluginform-container { | |
1281 | .main-row { | |
1282 | border-top-style: none; | |
1283 | border-bottom-style: none; | |
1284 | ||
1285 | td { | |
1286 | border-top-style: none; | |
1287 | border-bottom-style: none; | |
1288 | } | |
1289 | } | |
1290 | } | |
1291 | } | |
1292 | ||
1293 | // IMPORT | |
1294 | .import-field-container { | |
1295 | margin: 15px 0; | |
1296 | } | |
1297 | ||
1298 | // TAG CLOUD | |
1299 | .cloudtag-container { | |
1300 | padding: 10px; | |
1301 | text-align: center; | |
1302 | text-decoration: none; | |
1303 | color: $dark-grey; | |
1304 | ||
1305 | a { | |
1306 | text-decoration: none; | |
1307 | color: $dark-grey; | |
1308 | } | |
1309 | ||
1310 | .count { | |
1311 | color: $light-grey; | |
1312 | } | |
1313 | } | |
1314 | ||
1315 | // TAG LIST | |
1316 | .taglist-container { | |
1317 | padding: 0 10px; | |
1318 | ||
1319 | a { | |
1320 | text-decoration: none; | |
1321 | color: $dark-grey; | |
1322 | } | |
1323 | ||
1324 | .count { | |
1325 | display: inline-block; | |
1326 | width: 35px; | |
1327 | text-align: right; | |
1328 | color: $light-grey; | |
1329 | } | |
1330 | ||
1331 | .rename-tag-form { | |
1332 | display: none; | |
1333 | } | |
1334 | ||
1335 | .delete-tag { | |
1336 | display: none; | |
1337 | color: $red; | |
1338 | } | |
1339 | ||
1340 | .rename-tag { | |
1341 | color: $blue; | |
1342 | } | |
1343 | ||
1344 | .validate-rename-tag { | |
1345 | color: $main-green; | |
1346 | } | |
1347 | } | |
1348 | ||
1349 | // Picture wall CSS | |
1350 | .picwall-container { | |
1351 | clear: both; | |
1352 | margin: 0 10px 10px; | |
1353 | background-color: $almost-white; | |
1354 | color: $dark-grey; | |
1355 | } | |
1356 | ||
1357 | .picwall-pictureframe { | |
1358 | display: table-cell; | |
1359 | position: relative; | |
1360 | float: left; | |
1361 | z-index: 5; | |
1362 | margin: 2px; | |
1363 | background-color: $almost-white; | |
1364 | width: 90px; | |
1365 | height: 90px; | |
1366 | overflow: hidden; | |
1367 | vertical-align: middle; | |
1368 | text-align: center; | |
1369 | ||
1370 | // Adapt the width of the image | |
1371 | img { | |
1372 | max-width: 100%; | |
1373 | height: auto; | |
1374 | color: transparent; | |
1375 | } | |
1376 | ||
1377 | a { | |
1378 | text-decoration: none; | |
1379 | } | |
1380 | ||
1381 | span { | |
1382 | &.info { | |
1383 | display: none; | |
1384 | font-family: Arial, sans-serif; | |
1385 | } | |
1386 | } | |
1387 | ||
1388 | // CSS to show title when hovering an image - no javascript required. | |
1389 | &:hover { | |
1390 | span { | |
1391 | &.info { | |
1392 | display: block; | |
1393 | position: absolute; | |
1394 | top: 0; | |
1395 | left: 0; | |
1396 | background-color: $dark-shadow; | |
1397 | width: 90px; | |
1398 | height: 90px; | |
1399 | text-align: left; | |
1400 | color: $almost-white; | |
1401 | font-size: 9pt; | |
1402 | font-weight: bold; | |
1403 | } | |
1404 | } | |
1405 | } | |
1406 | } | |
1407 | ||
1408 | .b-lazy { | |
1409 | transition: opacity 500ms ease-in-out; | |
1410 | opacity: 0; | |
1411 | -webkit-transition: opacity 500ms ease-in-out; | |
1412 | -moz-transition: opacity 500ms ease-in-out; | |
1413 | -o-transition: opacity 500ms ease-in-out; | |
1414 | ||
1415 | &.b-loaded { | |
1416 | opacity: 1; | |
1417 | } | |
1418 | } | |
1419 | ||
1420 | // DAILY | |
1421 | .daily-desc { | |
1422 | color: $light-grey; | |
1423 | font-size: .8em; | |
1424 | ||
1425 | a { | |
1426 | text-decoration: none; | |
1427 | color: $dark-grey; | |
1428 | ||
1429 | &:hover { | |
1430 | color: $light-grey; | |
1431 | } | |
1432 | } | |
1433 | } | |
1434 | ||
1435 | .daily-about { | |
1436 | h3 { | |
1437 | &::before, | |
1438 | &::after { | |
1439 | display: block; | |
1440 | margin: 10px auto; | |
1441 | background: linear-gradient(to right, $background-color, $dark-grey, $background-color); | |
1442 | width: 90%; | |
1443 | height: 1px; | |
1444 | content: ''; | |
1445 | } | |
1446 | } | |
1447 | } | |
1448 | ||
1449 | .daily-entry { | |
1450 | padding: 0 10px; | |
1451 | ||
1452 | .daily-entry-title { | |
1453 | margin: 10px 0 0; | |
1454 | ||
1455 | a { | |
1456 | text-decoration: none; | |
1457 | color: $black; | |
1458 | } | |
1459 | ||
1460 | &::after { | |
1461 | display: block; | |
1462 | margin: 5px auto; | |
1463 | background: linear-gradient(to right, $white, $light-grey, $white); | |
1464 | width: 70%; | |
1465 | height: 1px; | |
1466 | content: ''; | |
1467 | } | |
1468 | } | |
1469 | ||
1470 | .daily-entry-description { | |
1471 | padding: 5px 5px 0; | |
1472 | text-align: justify; | |
1473 | font-size: .9em; | |
1474 | word-wrap: break-word; | |
1475 | } | |
1476 | ||
1477 | .daily-entry-tags { | |
1478 | padding: 0 5px 5px; | |
1479 | font-size: .8em; | |
1480 | } | |
1481 | } | |
1482 | ||
1483 | .daily-entry-thumbnail { | |
1484 | float: left; | |
1485 | margin: 15px 5px 5px 15px; | |
1486 | } | |
1487 | ||
1488 | .daily-entry-description { | |
1489 | a { | |
1490 | text-decoration: none; | |
1491 | color: $main-green; | |
1492 | ||
1493 | &:hover { | |
1494 | text-shadow: 1px 1px $background-linklist-info; | |
1495 | } | |
1496 | ||
1497 | &:visited { | |
1498 | color: $dark-green; | |
1499 | } | |
1500 | } | |
1501 | } | |
1502 | ||
1503 | // Fix empty bookmarklet name in Firefox | |
1504 | .pure-button { | |
1505 | -moz-user-select: auto; | |
1506 | } | |
1507 | ||
1508 | .tag-sort { | |
1509 | margin-top: 30px; | |
1510 | text-align: center; | |
1511 | ||
1512 | a { | |
1513 | display: inline-block; | |
1514 | margin: 0 15px; | |
1515 | text-decoration: none; | |
1516 | color: $white; | |
1517 | font-weight: bold; | |
1518 | } | |
1519 | } | |
1520 | ||
1521 | // Markdown | |
1522 | .markdown { | |
1523 | p { | |
1524 | margin: 0 !important; | |
1525 | } | |
1526 | ||
1527 | p + p { | |
1528 | margin: .5em 0 0 !important; | |
1529 | } | |
1530 | ||
1531 | * { | |
1532 | &:first-child { | |
1533 | margin-top: 0 !important; | |
1534 | } | |
1535 | ||
1536 | &:last-child { | |
1537 | margin-bottom: 5px !important; | |
1538 | } | |
1539 | } | |
1540 | } | |
1541 | ||
1542 | // Pure Button | |
1543 | .pure-button-success, | |
1544 | .pure-button-error, | |
1545 | .pure-button-warning, | |
1546 | .pure-button-primary, | |
1547 | .pure-button-shaarli, | |
1548 | .pure-button-secondary { | |
1549 | border-radius: 4px; | |
1550 | text-shadow: 0 1px 1px $dark-shadow; | |
1551 | color: $white !important; | |
1552 | } | |
1553 | ||
1554 | .pure-button-shaarli { | |
1555 | background-color: $main-green; | |
1556 | } | |
1557 | ||
1558 | .progressbar { | |
1559 | border-radius: 6px; | |
1560 | background-color: $main-green; | |
1561 | padding: 1px; | |
1562 | ||
1563 | > div { | |
1564 | border-radius: 10px; | |
1565 | background: repeating-linear-gradient( | |
1566 | -45deg, | |
1567 | $almost-white, | |
1568 | $almost-white 6px, | |
1569 | $background-color 6px, | |
1570 | $background-color 12px | |
1571 | ); | |
1572 | width: 0%; | |
1573 | height: 10px; | |
1574 | } | |
1575 | } | |
1576 | ||
1577 | .thumbnails-page-container { | |
1578 | .progress-counter { | |
1579 | padding: 10px 0 20px; | |
1580 | } | |
1581 | ||
1582 | .thumbnail-placeholder { | |
1583 | margin: 10px auto; | |
1584 | background-color: $light-grey; | |
1585 | } | |
1586 | ||
1587 | .thumbnail-link-title { | |
1588 | padding-bottom: 20px; | |
1589 | overflow: hidden; | |
1590 | text-overflow: ellipsis; | |
1591 | white-space: nowrap; | |
1592 | } | |
1593 | } |