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