]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - tpl/default/css/shaarli.css
Bugfix: syntax error in header
[github/shaarli/Shaarli.git] / tpl / default / css / shaarli.css
CommitLineData
dfb058c6
A
1/**
2 * General
3 */
4ed6d1ba 4body {
fe1c9666 5 background: url(../img/noise.png) #979797;
4ed6d1ba
A
6}
7
dfb058c6
A
8.strong {
9 font-weight: bold;
10}
4ed6d1ba 11
dfb058c6
A
12.clear {
13 clear: both;
14}
15
f26d4d56
A
16.center {
17 text-align: center;
18}
19
348e1587
A
20.label {
21 display: inline-block;
22 padding: .25em .4em;
23 font-size: 75%;
24 font-weight: 700;
25 line-height: 1;
26 text-align: center;
27 white-space: nowrap;
28 vertical-align: baseline;
29 border-radius: .25rem;
30}
31
735bda92
A
32pre {
33 max-width: 100%;
34}
35
b74d833d
A
36@font-face {
37 font-family: 'Roboto Slab';
38 font-weight: 400;
39 font-style: normal;
40 src:
41 local('Fira Sans'),
42 local('Fira-Sans-regular'),
43 url('../fonts/Fira-Sans-regular.woff2') format('woff2'),
44 url('../fonts/Fira-Sans-regular.woff') format('woff');
45}
46
dfb058c6
A
47/**
48 * Extends Pure grids responsive to hide items.
49 * Use xx-0 to hide an item on xx screen.
50 * Display it at any level with xx-visible.
51 */
52.pure-u-0 { display: none !important; }
53@media screen and (min-width: 35.5em) {
54 .pure-u-sm-0 { display: none !important; }
fe1c9666 55 .pure-u-sm-visible { display: inline-block !important; }
dfb058c6
A
56}
57@media screen and (min-width: 48em) {
58 .pure-u-md-0 { display: none !important; }
fe1c9666 59 .pure-u-md-visible { display: inline-block !important; }
dfb058c6
A
60}
61@media screen and (min-width: 64em) {
62 .pure-u-lg-0 { display: none !important; }
fe1c9666 63 .pure-u-lg-visible { display: inline-block !important; }
dfb058c6
A
64}
65@media screen and (min-width: 80em) {
66 .pure-u-xl-0 { display: none !important; }
fe1c9666 67 .pure-u-xl-visible { display: inline-block !important; }
4ed6d1ba
A
68}
69
f26d4d56
A
70.pure-g [class*="pure-u"]{
71 font-family: Roboto Slab, Arial, sans-serif;
72}
73
735bda92
A
74/**
75 * Make pure-extras alert closable.
76 */
77.pure-alert-closable .fa-times {
78 float: right;
79}
80.pure-alert-close {
81 cursor: pointer;
82}
83
4ed6d1ba
A
84/**
85 * MENU
86 **/
dfb058c6
A
87.shaarli-menu {
88 position: fixed;
89 top: 0;
90 width: 100%;
91 background: #1b926c;
92 -webkit-font-smoothing: antialiased;
93 /* Hack to transition with auto height: http://stackoverflow.com/a/8331169/1484919 */
94 max-height: 2.1em;
95 transition: max-height 0.5s;
96 overflow: hidden;
97 z-index: 999;
98}
99
100.shaarli-menu.open {
101 max-height: 500px;
102 transition: max-height 0.75s;
4ed6d1ba
A
103}
104
105.pure-menu-selected {
dfb058c6 106 background: #1A694C;
4ed6d1ba
A
107}
108
109.pure-menu-link,
110.pure-menu-link:visited,
111.pure-menu-selected .pure-menu-link,
112.pure-menu-selected .pure-menu-link:visited {
113 color: #b0ddce;
114}
115
116.pure-menu-link:hover,
117.pure-menu-selected .pure-menu-link:hover {
dfb058c6 118 color: #d1fff0;
4ed6d1ba
A
119 background: transparent;
120}
121
4ed6d1ba
A
122.menu-toggle {
123 width: 34px;
124 height: 34px;
125 position: absolute;
126 top: 0;
127 right: 0;
128 display: none;
129}
130
131.menu-toggle .bar {
132 background-color: #b0ddce;
133 display: block;
134 width: 20px;
135 height: 2px;
136 border-radius: 100px;
137 position: absolute;
138 top: 18px;
139 right: 7px;
140 transition: all 0.5s;
141}
142
143.menu-toggle .bar:first-child {
144 transform: translateY(-6px);
145}
146
147.menu-toggle.x .bar {
148 transform: rotate(45deg);
149}
150
151.menu-toggle.x .bar:first-child {
152 transform: rotate(-45deg);
153}
154
155@media screen and (max-width: 64em) {
156 .menu-toggle {
157 display: block;
158 }
159}
160
161/**
dfb058c6 162 * Header
4ed6d1ba 163 */
dfb058c6
A
164#header {
165 width: 100%;
166 height: 150px;
d63f7cf5 167 background: url(../img/noise.png), #1fa67a url(../img/logo2.png) no-repeat fixed 10px 2.5em;
4ed6d1ba 168}
dfb058c6
A
169
170#header h1 {
171 position: fixed;
172 float: left;
d63f7cf5
A
173 margin: 45px 0 0 125px;
174 width: 55%;
dfb058c6 175 height: 100px;
4ed6d1ba 176}
dfb058c6
A
177
178#header h1 a, #header h1 a:visited {
179 /* https://css-tricks.com/centering-css-complete-guide/#vertical-inline-multiple */
180 display: -ms-flexbox;
181 display: flex;
182 flex-direction: column;
183 justify-content: center;
184
185 overflow: hidden;
186 height: 100px;
187 color: #b0ddce;
188 text-decoration: none;
189 z-index: 1;
190
b74d833d
A
191 font-family: Roboto Slab, Arial, sans-serif;
192 font-size: 1.2em;
4ed6d1ba 193}
dfb058c6
A
194
195#header h1 a:hover {
196 color: #d1fff0;
197}
198
735bda92
A
199.header-buttons {
200 text-align: right;
201}
202
dfb058c6 203#linkcount {
d63f7cf5
A
204 /* position: fixed; */
205 position: absolute;
dfb058c6
A
206 top: 40px;
207 right: 10px;
208 color: #b0ddce;
209 font-size: 0.8em;
210}
211
212#search {
d63f7cf5
A
213 /**
214 * Can't make it work with awesomplete list z-index. Any idea?
215 * position: fixed;
216 */
217 position: absolute;
218 top: 60px;
dfb058c6 219 right: 10px;
d63f7cf5 220 width: 30%;
dfb058c6
A
221 text-align: right;
222}
223
d63f7cf5
A
224#search input[type="text"] {
225 margin: 0 0 5px 0;
226 padding: 5px 5px 3px 15px;
227 height: 20px;
228 width: 140px;
229 transition: width .5s ease;
230 background: #1b926c;
231 border: medium none currentColor;
232 border-radius: 25px;
233 box-shadow: 0 1px 0 rgba(255, 255, 255, 0.078), 0 1px 4px rgba(0, 0, 0, 0.298) inset;
234 color: #b0ddce;
235}
236
735bda92
A
237/* because chrome */
238#search input[type="text"]::-webkit-input-placeholder {
239 color: #b0ddce;
240}
241
d63f7cf5
A
242#search button {
243 background: transparent;
244 border: none;
245 color: #b0ddce;
246}
247
248#search button:hover {
249 color: #fff;
250}
251
735bda92 252#header-login-form {
f26d4d56 253 height: 0;
735bda92
A
254 text-align: center;
255 background: #1b926c;
f26d4d56
A
256 transition: 0.3s;
257}
258
259#header-login-form.open {
260 display: block;
261 height: 30px;
262 padding: 5px 0;
735bda92
A
263 box-shadow: 0 1px 1px 1px #797979;
264}
265
f26d4d56 266#header-login-form input[type="text"], #header-login-form input[type="password"], #header-login-form .remember-me {
735bda92
A
267 margin: 0 0 5px 0;
268 padding: 5px 5px 3px 15px;
269 height: 20px;
270 width: 200px;
271 background: #1fa67a;
272 border: medium none currentColor;
273 border-radius: 25px;
274 box-shadow: 0 1px 0 rgba(255, 255, 255, 0.078), 0 1px 4px rgba(0, 0, 0, 0.298) inset;
275 color: #b0ddce;
276}
277
278/* because chrome */
279#header-login-form input[type="text"]::-webkit-input-placeholder,
280#header-login-form input[type="password"]::-webkit-input-placeholder
281{
282 color: #b0ddce;
283}
284
f26d4d56
A
285#header-login-form .remember-me {
286 display: inline-block;
287 width: auto;
288 padding: 5px 20px 3px 20px;
289 cursor: pointer;
290}
291
292#header-login-form .remember-me label, #header-login-form .remember-me input {
293 cursor: pointer;
294}
295
735bda92
A
296#header-login-form input[type="submit"] {
297 display: inline-block;
298 margin: 0 0 5px 0;
299 height: 25px;
300 width: 100px;
301 background: #0C7653;
302 border: medium none currentColor;
303 border-radius: 25px;
304 box-shadow: 1px 1px 2px #005C3E, -1px -1px 2px #005C3E;
305 color: #b0ddce;
306}
307
f26d4d56
A
308#header-login-form input, #header-login-form .remember-me {
309 transition: visibility 1s, opacity 1s;
310 visibility: hidden;
311 opacity: 0;
312}
313
314#header-login-form.open input, #header-login-form.open .remember-me {
315 visibility: visible;
316 opacity: 1;
317}
318
735bda92
A
319.new-version-message {
320 text-align: center;
321}
322
323.new-version-message a {
324 color: rgb(151, 96, 13);
325 font-weight: bold;
326}
327
d63f7cf5 328/**
4d7cd1b0 329 * CONTENT - GENERAL
d63f7cf5 330 */
dfb058c6
A
331#content {
332 position: relative;
fe1c9666
A
333 /* Hack-ish way to only shadow the top part. */
334 box-shadow: 0 -20px 20px -20px #797979;
dfb058c6
A
335 z-index: 2;
336 background: url(../img/noise.png) #979797;
4d7cd1b0
A
337}
338
fe1c9666 339@media screen and (max-width: 64em) {
f26d4d56 340 #content {
4d7cd1b0
A
341 margin: 2.1em 0 0 0;
342 }
343}
344
345@media screen and (min-width: 64em) {
f26d4d56
A
346 #content {
347 /* https://css-tricks.com/fighting-the-space-between-inline-block-elements/ */
348 margin-top: -4px;
4d7cd1b0
A
349 }
350}
351
f26d4d56
A
352/**
353 * CONTENT - LINKLIST PAGING
354 * 64em -> lg
355 */
356
357
4d7cd1b0
A
358.linklist-filters {
359 margin: 10px 0;
360 color: #252525;
735bda92 361 font-size: 0.9em;
4d7cd1b0
A
362}
363
364.linklist-filters a {
365 padding: 2px 5px;
366 text-decoration: none;
367}
368
369.linklist-filters .filter-off {
370 color: #252525;
371 background: #c8c8c8;
372}
373
374.linklist-filters .filter-on {
375 color: #b0ddce;
376 background: #1b926c;
377}
378
379.linklist-pages {
380 margin: 10px 0;
381 color: #252525;
382 text-align: center;
383}
384
385.linklist-pages a {
386 color: #252525;
387 text-decoration: none;
388}
389
390.linklist-pages a:hover {
391 color: #fff;
392}
393
394.linksperpage {
395 margin: 10px 0;
396 text-align: right;
397 color: #252525;
735bda92 398 font-size: 0.9em;
4d7cd1b0
A
399}
400
401.linksperpage a {
402 padding: 2px 5px;
403 text-decoration: none;
404 color: #252525;
405 background: #c8c8c8;
406 border: solid 1px #979797;
407}
408
409.linksperpage form {
410 display: inline;
411 margin: 0 10px 0 0;
412}
413
414.linksperpage input[type="text"] {
415 width: 28px;
735bda92
A
416 height: 16px;
417 margin: 0;
4d7cd1b0
A
418 padding: 3px 5px 3px 8px;
419 background: #c8c8c8;
420 border: medium none currentColor;
735bda92 421 --border-radius: 25px;
4d7cd1b0
A
422 box-shadow: 0 1px 0 rgba(255, 255, 255, 0.078), 0 1px 4px rgba(0, 0, 0, 0.298) inset;
423 color: #252525;
424 font-size: 0.8em;
348e1587
A
425}
426
427/**
428 * CONTENT - LINKLIST ITEMS
429 */
430.linklist-item {
431 margin: 15px 0;
b74d833d 432 background: #f5f5f5;
348e1587
A
433 box-shadow: 2px 2px 0.5em #797979;
434}
435
436.linklist-item-title, .linklist-item-title h2 {
437 margin: 0;
f26d4d56 438 word-wrap: break-word;
348e1587
A
439}
440
441.linklist-item-title {
442 background: #20b988 url(../img/noise.png);
443 border-bottom: 1px solid #1b926c;
444 box-shadow: 1px 1px 0.2em #1b926c;
445}
446
447.linklist-item-title h2 {
b74d833d 448 padding: 3px 10px 0 10px;
348e1587
A
449 line-height: 25px;
450}
451
452.linklist-item-title a {
b74d833d 453 font-size: 0.7em;
348e1587
A
454 color: #d0fff0;
455 text-decoration: none;
456 vertical-align: middle;
b74d833d
A
457 font-family: Roboto Slab, Arial, sans-serif;
458}
459
460.linklist-item-title .linklist-link:visited {
461 color: #ddd;
348e1587
A
462}
463
b74d833d 464.linklist-item-title a:hover, .linklist-item-title .linklist-link:hover{
348e1587
A
465 color: #fff;
466}
467
b74d833d 468
348e1587
A
469.linklist-item-title .label-private {
470 border: solid 1px #d0fff0;
b74d833d
A
471 font-family: Arial, sans-serif;
472 font-size: 0.65em;
348e1587
A
473}
474
497b1c71
A
475.linklist-item-title .fold-button {
476 display: none;
477}
478
348e1587
A
479.linklist-item-editbuttons {
480 float: right;
481 padding: 5px;
482}
483
484.linklist-item-editbuttons a {
485 font-size: 1em;
486}
487
488.linklist-item-description {
489 padding: 10px;
b74d833d 490 font-family: Roboto Slab, Arial, sans-serif;
f26d4d56 491 word-wrap: break-word;
b74d833d
A
492}
493
494.linklist-item-description a {
495 text-decoration: none;
496 color: #1b926c;
497}
498
499.linklist-item-description a:hover {
500 text-shadow: 1px 1px #ddd;
501}
502
503.linklist-item-description a:visited {
504 color: #20b988;
348e1587
A
505}
506
735bda92
A
507.linklist-item-thumbnail {
508 padding: 10px;
509 float: left;
510}
511
348e1587 512.linklist-item-infos {
735bda92 513 padding: 5px 5px 0 5px;
348e1587
A
514 background: #ddd url(../img/noise.png);
515 border-top: 1px solid #989898;
516 box-shadow: 1px -1px 0.2em #989898;
517 color: #252525;
348e1587
A
518}
519
520.linklist-item-infos a {
521 color: #505050;
522 text-decoration: none;
523}
524
525.linklist-item-infos a:hover {
526 color: #000;
527}
528
b74d833d
A
529.linklist-item-tags {
530 margin: 0 0 5px 0;
735bda92 531 font-size: 0.8em;
b74d833d
A
532}
533
348e1587
A
534.linklist-item-infos .label-tag {
535 border: 1px solid #505050;
536 font-size: 0.9em;
537}
538
539.linklist-item-infos .label-tag:hover {
540 border: 1px solid #000;
541}
542
735bda92
A
543.linklist-item-infos-dateblock {
544 font-size: 0.9em;
545}
546
b74d833d
A
547.linklist-plugin-icon {
548 width: 13px;
549 height: 13px;
550}
551
348e1587
A
552.linklist-item-infos-url {
553 text-align: right;
554 white-space: nowrap;
555 overflow: hidden;
556 text-overflow: ellipsis;
735bda92
A
557 font-size: 0.8em;
558}
559
560/** 64em -> lg **/
561@media screen and (max-width: 64em) {
562 .linklist-item-infos-url {
563 text-align: left;
564 }
348e1587
A
565}
566
735bda92
A
567/**
568 * Footer
569 */
570#footer {
571 margin: 20px 0;
572 padding: 5px;
573 text-align: center;
574 color: #252525;
575}
576
577#footer:before {
578 display: block;
579 content:"";
580 background: linear-gradient(to right, #949393, #252525, #949393);
581 height: 1px;
582 width: 80%;
583 margin: 10px auto;
584}
585
586#footer a {
587 color: #252525;
588}
f26d4d56 589
348e1587 590/**
f26d4d56
A
591 * Login page
592 */
09d6e7e0 593.page-form {
f26d4d56
A
594 margin: 20px 0 0 0;
595 background: url(../img/noise.png) #1fa67a;
596 border-radius: 5px;
597 box-shadow: 1px 1px 2px #797979;
598}
599
09d6e7e0 600.page-form h2 {
f26d4d56
A
601 margin: 0 0 10px 0;
602 padding: 10px 0;
603 width: 100%;
604 color: #b0ddce;
605 background: #1b926c;
606 text-align: center;
607 border-radius: 5px 5px 0 0;
608 border-bottom: 1px solid #797979;
609}
610
09d6e7e0 611.page-form div {
f26d4d56
A
612 width: 100%;
613 text-align: center;
614}
615
09d6e7e0 616.page-form input[type="text"], .page-form input[type="password"] {
f26d4d56
A
617 margin: 10px 0;
618 padding: 5px 5px 3px 15px;
619 height: 30px;
620 width: 80%;
621 background: #1b926c;
622 border: medium none currentColor;
623 border-radius: 25px;
624 box-shadow: 0 1px 0 rgba(255, 255, 255, 0.078), 0 1px 4px rgba(0, 0, 0, 0.298) inset;
625 color: #b0ddce;
626}
627
628/* because chrome */
09d6e7e0
A
629.page-form input[type="text"]::-webkit-input-placeholder,
630.page-form input[type="password"]::-webkit-input-placeholder {
f26d4d56
A
631 color: #b0ddce;
632}
633
634#login-form .remember-me {
635 margin: 5px 0;
636 color: #b0ddce;
637 font-weight: bold;
638}
639
09d6e7e0 640.page-form input[type="submit"] {
f26d4d56
A
641 margin: 10px 0;
642 height: 35px;
643 width: 150px;
644 background: #1b926c;
645 border: medium none currentColor;
646 border-radius: 25px;
647 box-shadow: 1px 1px 4px #0C7653, -1px -1px 6px #0C7653, -1px 1px 6px #0C7653, 1px -1px 6px #0C7653;
648 font-size: 1.2em;
649 font-weight: bold;
650 color: #b0ddce;
651}
652
653#page404 {
654 color: #3f3f3f;
655}/**
348e1587
A
656 * CONTENT - LINKLIST ITEMS
657 */
658.linklist-item {
659 margin: 15px 0;
c2c0df8d 660 background: #f5f5f5;
348e1587
A
661 box-shadow: 2px 2px 0.5em #797979;
662}
663
664.linklist-item-title, .linklist-item-title h2 {
665 margin: 0;
666}
667
668.linklist-item-title {
669 background: #20b988 url(../img/noise.png);
670 border-bottom: 1px solid #1b926c;
671 box-shadow: 1px 1px 0.2em #1b926c;
672}
673
674.linklist-item-title h2 {
c2c0df8d 675 padding: 3px 10px 0 10px;
348e1587
A
676 line-height: 25px;
677}
678
679.linklist-item-title a {
c2c0df8d 680 font-size: 0.7em;
348e1587
A
681 color: #d0fff0;
682 text-decoration: none;
683 vertical-align: middle;
c2c0df8d 684 font-family: Roboto Slab, Arial, sans-serif;
348e1587
A
685}
686
c2c0df8d
A
687.linklist-item-title .linklist-link:visited {
688 color: #ddd;
689}
690
691.linklist-item-title a:hover, .linklist-item-title .linklist-link:hover{
348e1587
A
692 color: #fff;
693}
694
c2c0df8d 695
f0ebe623
A
696.linklist-item-title .label-private {
697 border: solid 1px #d0fff0;
c2c0df8d
A
698 font-family: Arial, sans-serif;
699 font-size: 0.65em;
f0ebe623
A
700}
701
2b31afdf
A
702.linklist-item-title .fold-button {
703 display: none;
704}
705
348e1587
A
706.linklist-item-editbuttons {
707 float: right;
708 padding: 5px;
709}
710
711.linklist-item-editbuttons a {
712 font-size: 1em;
713}
714
715.linklist-item-description {
716 padding: 10px;
c2c0df8d
A
717 font-family: Roboto Slab, Arial, sans-serif;
718}
719
720.linklist-item-description a {
721 text-decoration: none;
722 color: #1b926c;
723}
724
725.linklist-item-description a:hover {
726 text-shadow: 1px 1px #ddd;
727}
728
729.linklist-item-description a:visited {
730 color: #20b988;
348e1587
A
731}
732
733.linklist-item-infos {
734 padding: 5px;
735 background: #ddd url(../img/noise.png);
736 border-top: 1px solid #989898;
737 box-shadow: 1px -1px 0.2em #989898;
738 color: #252525;
739 font-size: 0.8em;
740}
741
742.linklist-item-infos a {
f0ebe623 743 color: #505050;
348e1587
A
744 text-decoration: none;
745}
746
747.linklist-item-infos a:hover {
f0ebe623 748 color: #000;
348e1587 749}
f0ebe623 750
c2c0df8d
A
751.linklist-item-tags {
752 margin: 0 0 5px 0;
753}
754
f0ebe623
A
755.linklist-item-infos .label-tag {
756 border: 1px solid #505050;
757 font-size: 0.9em;
758}
759
760.linklist-item-infos .label-tag:hover {
761 border: 1px solid #000;
762}
763
c2c0df8d
A
764.linklist-plugin-icon {
765 width: 13px;
766 height: 13px;
767}
768
f0ebe623
A
769.linklist-item-infos-url {
770 text-align: right;
771 white-space: nowrap;
772 overflow: hidden;
773 text-overflow: ellipsis;
774}