Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 2 | @import "../util"; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 3 | |
| 4 | $border-size : 2px; |
| 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> |
| 13 | <a href="#p=2"><span>2</span></a> |
| 14 | <a href="#3"><span>3</span></a> |
| 15 | <span><i class="fa fa-ellipsis-h"></i></span> |
| 16 | <a href="#67"><span>67</span></a> |
| 17 | <a rel="next" href="#2"><span><i class="fa fa-caret-right"></i></span></a> |
| 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 | */ |
| 26 | font-size: 0; |
| 27 | position: fixed; |
Nils Diewald | a898dac | 2015-05-06 21:04:16 +0000 | [diff] [blame] | 28 | right: ($standard-margin / 4); |
| 29 | bottom: ($standard-margin / 2); |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 30 | z-index: 400; |
| 31 | padding: 0; |
| 32 | height: auto; |
| 33 | line-height: 0; |
| 34 | |
| 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; |
| 47 | border: { |
| 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'; |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 65 | content: $fa-elipsis; |
Nils Diewald | 9922edf | 2015-05-07 20:03:33 +0000 | [diff] [blame] | 66 | line-height: 1em; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 67 | } |
| 68 | } |
| 69 | |
| 70 | &[rel=self] > span { |
| 71 | @include choose-active; |
| 72 | border { |
| 73 | left-width: $border-size; |
| 74 | right-width: $border-size; |
| 75 | left-style: solid; |
| 76 | right-style: solid; |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | &[rel=prev] > span { |
| 81 | border: { |
| 82 | top-left-radius: $standard-border-radius; |
| 83 | bottom-left-radius: $standard-border-radius; |
| 84 | left-width: $border-size; |
| 85 | left-style: solid; |
| 86 | } |
| 87 | > span { |
| 88 | @include blind; |
| 89 | } |
| 90 | &::after { |
| 91 | font-family: 'FontAwesome'; |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 92 | content: $fa-previous; |
Nils Diewald | 9922edf | 2015-05-07 20:03:33 +0000 | [diff] [blame] | 93 | line-height: 1em; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 94 | } |
| 95 | } |
| 96 | |
| 97 | &[rel=next] > span { |
| 98 | border: { |
| 99 | top-right-radius: $standard-border-radius; |
| 100 | bottom-right-radius: $standard-border-radius; |
| 101 | right-width: $border-size; |
| 102 | right-style: solid; |
| 103 | } |
| 104 | > span { |
| 105 | @include blind; |
| 106 | } |
| 107 | &::after { |
| 108 | font-family: 'FontAwesome'; |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 109 | content: $fa-next; |
Nils Diewald | 9922edf | 2015-05-07 20:03:33 +0000 | [diff] [blame] | 110 | line-height: 1em; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 111 | } |
| 112 | } |
Akron | 6a535d4 | 2015-08-26 20:16:58 +0200 | [diff] [blame] | 113 | &:link:hover, |
| 114 | &:link:focus { |
| 115 | outline: none; |
| 116 | span { |
| 117 | @include choose-hover; |
| 118 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 119 | } |
| 120 | } |
| 121 | } |