Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame^] | 1 | @charset "utf-8"; |
| 2 | @import "colors"; |
| 3 | |
| 4 | /** |
| 5 | * The pagination view |
| 6 | */ |
| 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="/?ql=poliqarp&q=test&action=ok&p=2"><span>2</span></a> |
| 12 | <a href="/?ql=poliqarp&q=test&action=ok&p=3"><span>3</span></a> |
| 13 | <span><i class="fa fa-ellipsis-h"></i></span> |
| 14 | <a href="/?ql=poliqarp&q=test&action=ok&p=67"><span>67</span></a> |
| 15 | <a rel="next" href="/?ql=poliqarp&q=test&action=ok&p=2"><span><i class="fa fa-caret-right"></i></span></a> |
| 16 | </div> |
| 17 | */ |
| 18 | #pagination { |
| 19 | /** |
| 20 | * Always in fixed position. |
| 21 | * This may need to be overwritten in case multiple |
| 22 | * paginations have to be activated. |
| 23 | */ |
| 24 | position: fixed; |
| 25 | right: 20px; |
| 26 | |
| 27 | bottom: 10px; |
| 28 | z-index: 400; |
| 29 | |
| 30 | span { |
| 31 | display: inline-block; |
| 32 | background-color: $pagination-bg; |
| 33 | height: 1.5em; |
| 34 | line-height: 1.5em; |
| 35 | @include standard-text-padding; |
| 36 | text-align: center; |
| 37 | border: { |
| 38 | top-width: 2px; |
| 39 | top-style: solid; |
| 40 | bottom-width: 2px; |
| 41 | bottom-style: solid; |
| 42 | color: $pagination-border; |
| 43 | } |
| 44 | box-shadow: $pagination-box-shadow; |
| 45 | } |
| 46 | a { |
| 47 | text-shadow: $light-shadow; |
| 48 | &[rel=self] span { |
| 49 | border: { |
| 50 | color: $dark-orange; |
| 51 | left-style: solid; |
| 52 | right-style: solid; |
| 53 | left-width: 2px; |
| 54 | right-width: 2px; |
| 55 | } |
| 56 | background-color: $light-orange; |
| 57 | color: $darkest-orange; |
| 58 | } |
| 59 | &[rel=next] span { |
| 60 | border: { |
| 61 | right-width: 2px; |
| 62 | right-style: solid; |
| 63 | top-right-radius: 12px; |
| 64 | bottom-right-radius: 12px; |
| 65 | } |
| 66 | } |
| 67 | &[rel=prev] span { |
| 68 | border: { |
| 69 | left-width: 2px; |
| 70 | left-style: solid; |
| 71 | top-left-radius: 12px; |
| 72 | bottom-left-radius: 12px; |
| 73 | } |
| 74 | } |
| 75 | &[href] { |
| 76 | color: $light-green; |
| 77 | span:hover { |
| 78 | background-color: $light-green; |
| 79 | border-color: $dark-green; |
| 80 | color: $dark-green; |
| 81 | text-shadow: none; |
| 82 | } |
| 83 | } |
| 84 | } |
| 85 | } |