Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
Akron | baba3b6 | 2021-11-22 17:24:48 +0100 | [diff] [blame] | 2 | @use 'sass:math'; |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 3 | @import "../util"; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 4 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 5 | /** |
| 6 | * The pagination view |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 7 | * |
| 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 Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 17 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 18 | #pagination { |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 19 | /* |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 20 | * Always in fixed position. |
| 21 | * This may need to be overwritten in case multiple |
| 22 | * paginations have to be activated. |
| 23 | */ |
Akron | 72f6a87 | 2021-07-21 18:53:23 +0200 | [diff] [blame] | 24 | position: fixed; |
| 25 | font-size: 0; |
Akron | baba3b6 | 2021-11-22 17:24:48 +0100 | [diff] [blame] | 26 | right: math.div($standard-margin,4); |
| 27 | bottom: math.div($standard-margin,2); |
Akron | 72f6a87 | 2021-07-21 18:53:23 +0200 | [diff] [blame] | 28 | z-index: 35; |
| 29 | padding: 0; |
| 30 | height: auto; |
| 31 | line-height: 0; |
| 32 | |
| 33 | > * { |
Akron | 644ad9f | 2021-07-26 16:12:59 +0200 | [diff] [blame] | 34 | font-size: 10pt !important; |
Akron | 72f6a87 | 2021-07-21 18:53:23 +0200 | [diff] [blame] | 35 | line-height: 2em; |
Akron | 644ad9f | 2021-07-26 16:12:59 +0200 | [diff] [blame] | 36 | vertical-align: bottom; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 37 | |
Akron | 72f6a87 | 2021-07-21 18:53:23 +0200 | [diff] [blame] | 38 | &:not(:link):not([rel=self]) { |
| 39 | color: $choose-blind-color; |
| 40 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 41 | |
Akron | 72f6a87 | 2021-07-21 18:53:23 +0200 | [diff] [blame] | 42 | &.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 | } |
Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 53 | |
Akron | 72f6a87 | 2021-07-21 18:53:23 +0200 | [diff] [blame] | 54 | &[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 Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 75 | } |
Akron | 72f6a87 | 2021-07-21 18:53:23 +0200 | [diff] [blame] | 76 | } |