blob: d41fb735497aba866a9122fc00faf638c3340bca [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001@charset "utf-8";
Nils Diewaldab4d3ca2015-04-17 01:48:43 +00002@import "../util";
Nils Diewalda944fab2015-04-08 21:02:04 +00003
Nils Diewalda944fab2015-04-08 21:02:04 +00004/**
5 * The pagination view
Akron7e5afce2020-08-25 15:50:19 +02006 *
7 * <div id="pagination">
8 * <a rel="prev"><span><i class="fa fa-caret-left"></i></span></a>
9 * <a rel="self"><span>1</span></a>
10 * <a href="#p=2"><span>2</span></a>
11 * <a href="#3"><span>3</span></a>
12 * <span><i class="fa fa-ellipsis-h"></i></span>
13 * <a href="#67"><span>67</span></a>
14 * <a rel="next" href="#2"><span><i class="fa fa-caret-right"></i></span></a>
15 * </div>
Nils Diewalda944fab2015-04-08 21:02:04 +000016 */
Nils Diewalda944fab2015-04-08 21:02:04 +000017#pagination {
Akron7e5afce2020-08-25 15:50:19 +020018 /*
Nils Diewalda944fab2015-04-08 21:02:04 +000019 * Always in fixed position.
20 * This may need to be overwritten in case multiple
21 * paginations have to be activated.
22 */
Akron72f6a872021-07-21 18:53:23 +020023 position: fixed;
24 font-size: 0;
25 right: ($standard-margin / 4);
26 bottom: ($standard-margin / 2);
27 z-index: 35;
28 padding: 0;
29 height: auto;
30 line-height: 0;
31
32 > * {
33 font-size: 10pt;
34 line-height: 2em;
Nils Diewalda944fab2015-04-08 21:02:04 +000035
Akron72f6a872021-07-21 18:53:23 +020036 &:not(:link):not([rel=self]) {
37 color: $choose-blind-color;
38 }
Nils Diewalda944fab2015-04-08 21:02:04 +000039
Akron72f6a872021-07-21 18:53:23 +020040 &.ellipsis, &[rel=prev], &[rel=next] {
41 > span {
42 @include blind;
43 }
44 }
45
46 &.ellipsis::after {
47 @include icon-font;
48 content: $fa-elipsis;
49 line-height: 1em;
50 }
Akron7e5afce2020-08-25 15:50:19 +020051
Akron72f6a872021-07-21 18:53:23 +020052 &[rel=self] {
53 @include choose-active;
54 border: {
55 left-width: $border-size;
56 right-width: $border-size;
57 left-style: solid;
58 right-style: solid;
59 }
60 }
61
62 &[rel=prev]::after {
63 @include icon-font;
64 content: $fa-previous;
65 line-height: 1em;
66 }
67
68 &[rel=next]::after {
69 @include icon-font;
70 content: $fa-next;
71 line-height: 1em;
72 }
Nils Diewalda944fab2015-04-08 21:02:04 +000073 }
Akron72f6a872021-07-21 18:53:23 +020074}