Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame^] | 2 | @import "util"; |
| 3 | |
| 4 | $border-size : 2px; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 5 | |
| 6 | /** |
| 7 | * The pagination view |
| 8 | */ |
| 9 | /* |
| 10 | <div id="pagination"> |
| 11 | <a rel="prev"><span><i class="fa fa-caret-left"></i></span></a> |
| 12 | <a rel="self"><span>1</span></a> |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame^] | 13 | <a href="#p=2"><span>2</span></a> |
| 14 | <a href="#3"><span>3</span></a> |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 15 | <span><i class="fa fa-ellipsis-h"></i></span> |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame^] | 16 | <a href="#67"><span>67</span></a> |
| 17 | <a rel="next" href="#2"><span><i class="fa fa-caret-right"></i></span></a> |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 18 | </div> |
| 19 | */ |
| 20 | #pagination { |
| 21 | /** |
| 22 | * Always in fixed position. |
| 23 | * This may need to be overwritten in case multiple |
| 24 | * paginations have to be activated. |
| 25 | */ |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame^] | 26 | font-size: 0; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 27 | position: fixed; |
| 28 | right: 20px; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 29 | bottom: 10px; |
| 30 | z-index: 400; |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame^] | 31 | padding: 0; |
| 32 | height: auto; |
| 33 | line-height: 0; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 34 | |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame^] | 35 | > a { |
| 36 | margin: 0; |
| 37 | font-size: 10pt; |
| 38 | padding: 0; |
| 39 | |
| 40 | > span { |
| 41 | box-shadow: $choose-box-shadow; |
| 42 | @include standard-text-padding; |
| 43 | @include choose-item; |
| 44 | display: inline-block; |
| 45 | line-height: 2em; |
| 46 | text-align: center; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 47 | border: { |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame^] | 48 | top-width: $border-size; |
| 49 | bottom-width: $border-size; |
| 50 | top-style: solid; |
| 51 | bottom-style: solid; |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | &:not(:link):not([rel=self]) span { |
| 56 | color: $choose-blind-color; |
| 57 | } |
| 58 | |
| 59 | &.ellipsis > span { |
| 60 | > span { |
| 61 | @include blind; |
| 62 | } |
| 63 | &::after { |
| 64 | font-family: 'FontAwesome'; |
| 65 | content: '\f141'; |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | &[rel=self] > span { |
| 70 | @include choose-active; |
| 71 | border { |
| 72 | left-width: $border-size; |
| 73 | right-width: $border-size; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 74 | left-style: solid; |
| 75 | right-style: solid; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 76 | } |
| 77 | } |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame^] | 78 | |
| 79 | &[rel=prev] > span { |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 80 | border: { |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame^] | 81 | top-left-radius: $standard-border-radius; |
| 82 | bottom-left-radius: $standard-border-radius; |
| 83 | left-width: $border-size; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 84 | left-style: solid; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 85 | } |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame^] | 86 | > span { |
| 87 | @include blind; |
| 88 | } |
| 89 | &::after { |
| 90 | font-family: 'FontAwesome'; |
| 91 | content: '\f0d9'; |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | &[rel=next] > span { |
| 96 | border: { |
| 97 | top-right-radius: $standard-border-radius; |
| 98 | bottom-right-radius: $standard-border-radius; |
| 99 | right-width: $border-size; |
| 100 | right-style: solid; |
| 101 | } |
| 102 | > span { |
| 103 | @include blind; |
| 104 | } |
| 105 | &::after { |
| 106 | font-family: 'FontAwesome'; |
| 107 | content: '\f0da'; |
| 108 | } |
| 109 | } |
| 110 | &:link:hover span { |
| 111 | @include choose-hover; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 112 | } |
| 113 | } |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame^] | 114 | } |