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