blob: d09162de0f1a301d5d32a6bc7c5463abb1c7626a [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 > * {
Akron644ad9f2021-07-26 16:12:59 +020033 font-size: 10pt !important;
Akron72f6a872021-07-21 18:53:23 +020034 line-height: 2em;
Akron644ad9f2021-07-26 16:12:59 +020035 vertical-align: bottom;
Nils Diewalda944fab2015-04-08 21:02:04 +000036
Akron72f6a872021-07-21 18:53:23 +020037 &:not(:link):not([rel=self]) {
38 color: $choose-blind-color;
39 }
Nils Diewalda944fab2015-04-08 21:02:04 +000040
Akron72f6a872021-07-21 18:53:23 +020041 &.ellipsis, &[rel=prev], &[rel=next] {
42 > span {
43 @include blind;
44 }
45 }
46
47 &.ellipsis::after {
48 @include icon-font;
49 content: $fa-elipsis;
50 line-height: 1em;
51 }
Akron7e5afce2020-08-25 15:50:19 +020052
Akron72f6a872021-07-21 18:53:23 +020053 &[rel=self] {
54 @include choose-active;
55 border: {
56 left-width: $border-size;
57 right-width: $border-size;
58 left-style: solid;
59 right-style: solid;
60 }
61 }
62
63 &[rel=prev]::after {
64 @include icon-font;
65 content: $fa-previous;
66 line-height: 1em;
67 }
68
69 &[rel=next]::after {
70 @include icon-font;
71 content: $fa-next;
72 line-height: 1em;
73 }
Nils Diewalda944fab2015-04-08 21:02:04 +000074 }
Akron72f6a872021-07-21 18:53:23 +020075}