blob: 07015c8b29fd424c823bb77a928e74595ee6d952 [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001@charset "utf-8";
Akronbaba3b62021-11-22 17:24:48 +01002@use 'sass:math';
Akron7636edf2025-11-04 12:44:53 +01003@use "../util";
4@use "../base/choose";
5@use "../base/icons";
6@use "../base/lengths";
7@use "../base/mixins";
Nils Diewalda944fab2015-04-08 21:02:04 +00008
Nils Diewalda944fab2015-04-08 21:02:04 +00009/**
10 * The pagination view
Akron7e5afce2020-08-25 15:50:19 +020011 *
12 * <div id="pagination">
13 * <a rel="prev"><span><i class="fa fa-caret-left"></i></span></a>
14 * <a rel="self"><span>1</span></a>
15 * <a href="#p=2"><span>2</span></a>
16 * <a href="#3"><span>3</span></a>
17 * <span><i class="fa fa-ellipsis-h"></i></span>
18 * <a href="#67"><span>67</span></a>
19 * <a rel="next" href="#2"><span><i class="fa fa-caret-right"></i></span></a>
20 * </div>
Nils Diewalda944fab2015-04-08 21:02:04 +000021 */
Nils Diewalda944fab2015-04-08 21:02:04 +000022#pagination {
Akron7e5afce2020-08-25 15:50:19 +020023 /*
Nils Diewalda944fab2015-04-08 21:02:04 +000024 * Always in fixed position.
25 * This may need to be overwritten in case multiple
26 * paginations have to be activated.
27 */
Akron72f6a872021-07-21 18:53:23 +020028 position: fixed;
29 font-size: 0;
Akron7636edf2025-11-04 12:44:53 +010030 right: math.div(lengths.$standard-margin,4);
31 bottom: math.div(lengths.$standard-margin,2);
Akron72f6a872021-07-21 18:53:23 +020032 z-index: 35;
33 padding: 0;
34 height: auto;
35 line-height: 0;
36
37 > * {
Akron644ad9f2021-07-26 16:12:59 +020038 font-size: 10pt !important;
Akron72f6a872021-07-21 18:53:23 +020039 line-height: 2em;
Akron644ad9f2021-07-26 16:12:59 +020040 vertical-align: bottom;
Nils Diewalda944fab2015-04-08 21:02:04 +000041
Akron72f6a872021-07-21 18:53:23 +020042 &:not(:link):not([rel=self]) {
Akron7636edf2025-11-04 12:44:53 +010043 color: choose.$choose-blind-color;
Akron72f6a872021-07-21 18:53:23 +020044 }
Nils Diewalda944fab2015-04-08 21:02:04 +000045
Akron72f6a872021-07-21 18:53:23 +020046 &.ellipsis, &[rel=prev], &[rel=next] {
47 > span {
Akron7636edf2025-11-04 12:44:53 +010048 @include mixins.blind;
Akron72f6a872021-07-21 18:53:23 +020049 }
50 }
51
52 &.ellipsis::after {
Akron7636edf2025-11-04 12:44:53 +010053 @include mixins.icon-font;
54 content: icons.$fa-elipsis;
Akron72f6a872021-07-21 18:53:23 +020055 line-height: 1em;
56 }
Akron7e5afce2020-08-25 15:50:19 +020057
Akron72f6a872021-07-21 18:53:23 +020058 &[rel=self] {
Akron7636edf2025-11-04 12:44:53 +010059 @include choose.choose-active;
Akron72f6a872021-07-21 18:53:23 +020060 border: {
Akron7636edf2025-11-04 12:44:53 +010061 left-width: lengths.$border-size;
62 right-width: lengths.$border-size;
Akron72f6a872021-07-21 18:53:23 +020063 left-style: solid;
64 right-style: solid;
65 }
66 }
67
68 &[rel=prev]::after {
Akron7636edf2025-11-04 12:44:53 +010069 @include mixins.icon-font;
70 content: icons.$fa-previous;
Akron72f6a872021-07-21 18:53:23 +020071 line-height: 1em;
72 }
73
74 &[rel=next]::after {
Akron7636edf2025-11-04 12:44:53 +010075 @include mixins.icon-font;
76 content: icons.$fa-next;
Akron72f6a872021-07-21 18:53:23 +020077 line-height: 1em;
78 }
Nils Diewalda944fab2015-04-08 21:02:04 +000079 }
Akron72f6a872021-07-21 18:53:23 +020080}