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