blob: f261fc71309c56430dded14d0a88e4e44b7e0cbe [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001@charset "utf-8";
Akronbaba3b62021-11-22 17:24:48 +01002@use 'sass:math';
Nils Diewaldab4d3ca2015-04-17 01:48:43 +00003@import "../util";
Nils Diewalda944fab2015-04-08 21:02:04 +00004
Nils Diewalda944fab2015-04-08 21:02:04 +00005/**
6 * The pagination view
Akron7e5afce2020-08-25 15:50:19 +02007 *
8 * <div id="pagination">
9 * <a rel="prev"><span><i class="fa fa-caret-left"></i></span></a>
10 * <a rel="self"><span>1</span></a>
11 * <a href="#p=2"><span>2</span></a>
12 * <a href="#3"><span>3</span></a>
13 * <span><i class="fa fa-ellipsis-h"></i></span>
14 * <a href="#67"><span>67</span></a>
15 * <a rel="next" href="#2"><span><i class="fa fa-caret-right"></i></span></a>
16 * </div>
Nils Diewalda944fab2015-04-08 21:02:04 +000017 */
Nils Diewalda944fab2015-04-08 21:02:04 +000018#pagination {
Akron7e5afce2020-08-25 15:50:19 +020019 /*
Nils Diewalda944fab2015-04-08 21:02:04 +000020 * Always in fixed position.
21 * This may need to be overwritten in case multiple
22 * paginations have to be activated.
23 */
Akron72f6a872021-07-21 18:53:23 +020024 position: fixed;
25 font-size: 0;
Akronbaba3b62021-11-22 17:24:48 +010026 right: math.div($standard-margin,4);
27 bottom: math.div($standard-margin,2);
Akron72f6a872021-07-21 18:53:23 +020028 z-index: 35;
29 padding: 0;
30 height: auto;
31 line-height: 0;
32
33 > * {
Akron644ad9f2021-07-26 16:12:59 +020034 font-size: 10pt !important;
Akron72f6a872021-07-21 18:53:23 +020035 line-height: 2em;
Akron644ad9f2021-07-26 16:12:59 +020036 vertical-align: bottom;
Nils Diewalda944fab2015-04-08 21:02:04 +000037
Akron72f6a872021-07-21 18:53:23 +020038 &:not(:link):not([rel=self]) {
39 color: $choose-blind-color;
40 }
Nils Diewalda944fab2015-04-08 21:02:04 +000041
Akron72f6a872021-07-21 18:53:23 +020042 &.ellipsis, &[rel=prev], &[rel=next] {
43 > span {
44 @include blind;
45 }
46 }
47
48 &.ellipsis::after {
49 @include icon-font;
50 content: $fa-elipsis;
51 line-height: 1em;
52 }
Akron7e5afce2020-08-25 15:50:19 +020053
Akron72f6a872021-07-21 18:53:23 +020054 &[rel=self] {
55 @include choose-active;
56 border: {
57 left-width: $border-size;
58 right-width: $border-size;
59 left-style: solid;
60 right-style: solid;
61 }
62 }
63
64 &[rel=prev]::after {
65 @include icon-font;
66 content: $fa-previous;
67 line-height: 1em;
68 }
69
70 &[rel=next]::after {
71 @include icon-font;
72 content: $fa-next;
73 line-height: 1em;
74 }
Nils Diewalda944fab2015-04-08 21:02:04 +000075 }
Akron72f6a872021-07-21 18:53:23 +020076}