blob: daa9bd9fea35a75d2cc7149c180738eb24ccf3ba [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 */
Akron7e5afce2020-08-25 15:50:19 +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;
Nils Diewalda944fab2015-04-08 21:02:04 +000030 line-height: 0;
31
32 > a {
Akron7e5afce2020-08-25 15:50:19 +020033 margin: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000034 font-size: 10pt;
Akron7e5afce2020-08-25 15:50:19 +020035 padding: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000036
37 > span {
Nils Diewalda944fab2015-04-08 21:02:04 +000038 @include standard-text-padding;
39 @include choose-item;
Akron7e5afce2020-08-25 15:50:19 +020040 box-shadow: $choose-box-shadow;
41 display: inline-block;
Nils Diewalda944fab2015-04-08 21:02:04 +000042 line-height: 2em;
Akron7e5afce2020-08-25 15:50:19 +020043 text-align: center;
44
Nils Diewalda944fab2015-04-08 21:02:04 +000045 border: {
Akron7e5afce2020-08-25 15:50:19 +020046 top-width: $border-size;
47 bottom-width: $border-size;
48 top-style: solid;
49 bottom-style: solid;
Nils Diewalda944fab2015-04-08 21:02:04 +000050 }
51 }
52
53 &:not(:link):not([rel=self]) span {
54 color: $choose-blind-color;
55 }
56
57 &.ellipsis > span {
58 > span {
Akron7e5afce2020-08-25 15:50:19 +020059 @include blind;
Nils Diewalda944fab2015-04-08 21:02:04 +000060 }
Akron7e5afce2020-08-25 15:50:19 +020061
Nils Diewalda944fab2015-04-08 21:02:04 +000062 &::after {
Akron7e5afce2020-08-25 15:50:19 +020063 @include icon-font;
64 content: $fa-elipsis;
65 line-height: 1em;
Nils Diewalda944fab2015-04-08 21:02:04 +000066 }
67 }
68
69 &[rel=self] > span {
70 @include choose-active;
Akron7e5afce2020-08-25 15:50:19 +020071
Nils Diewalda944fab2015-04-08 21:02:04 +000072 border {
Akron7e5afce2020-08-25 15:50:19 +020073 left-width: $border-size;
74 right-width: $border-size;
75 left-style: solid;
76 right-style: solid;
Nils Diewalda944fab2015-04-08 21:02:04 +000077 }
78 }
79
80 &[rel=prev] > span {
81 border: {
Akron7e5afce2020-08-25 15:50:19 +020082 top-left-radius: $standard-border-radius;
83 bottom-left-radius: $standard-border-radius;
84 left-width: $border-size;
85 left-style: solid;
Nils Diewalda944fab2015-04-08 21:02:04 +000086 }
Akron7e5afce2020-08-25 15:50:19 +020087
Nils Diewalda944fab2015-04-08 21:02:04 +000088 > span {
Akron7e5afce2020-08-25 15:50:19 +020089 @include blind;
Nils Diewalda944fab2015-04-08 21:02:04 +000090 }
Akron7e5afce2020-08-25 15:50:19 +020091
Nils Diewalda944fab2015-04-08 21:02:04 +000092 &::after {
Akron7e5afce2020-08-25 15:50:19 +020093 @include icon-font;
94 content: $fa-previous;
95 line-height: 1em;
Nils Diewalda944fab2015-04-08 21:02:04 +000096 }
97 }
98
99 &[rel=next] > span {
100 border: {
Akron7e5afce2020-08-25 15:50:19 +0200101 top-right-radius: $standard-border-radius;
102 bottom-right-radius: $standard-border-radius;
103 right-width: $border-size;
104 right-style: solid;
Nils Diewalda944fab2015-04-08 21:02:04 +0000105 }
Akron7e5afce2020-08-25 15:50:19 +0200106
Nils Diewalda944fab2015-04-08 21:02:04 +0000107 > span {
Akron7e5afce2020-08-25 15:50:19 +0200108 @include blind;
Nils Diewalda944fab2015-04-08 21:02:04 +0000109 }
Akron7e5afce2020-08-25 15:50:19 +0200110
Nils Diewalda944fab2015-04-08 21:02:04 +0000111 &::after {
Akron7e5afce2020-08-25 15:50:19 +0200112 @include icon-font;
113 content: $fa-next;
114 line-height: 1em;
Nils Diewalda944fab2015-04-08 21:02:04 +0000115 }
116 }
Akron7e5afce2020-08-25 15:50:19 +0200117
Akron6a535d42015-08-26 20:16:58 +0200118 &:link:hover,
119 &:link:focus {
120 outline: none;
121 span {
Akron7e5afce2020-08-25 15:50:19 +0200122 @include choose-hover;
Akron6a535d42015-08-26 20:16:58 +0200123 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000124 }
125 }
126}