Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame^] | 1 | @charset "utf-8"; |
| 2 | @import "colors"; |
| 3 | |
| 4 | |
| 5 | /** |
| 6 | * Menu list - used nearly everywhere |
| 7 | */ |
| 8 | ul.menu { |
| 9 | position: absolute; |
| 10 | margin: 0; |
| 11 | text-indent: 0; |
| 12 | list-style-type: none; |
| 13 | list-style-position: outside; |
| 14 | padding-left: 0; |
| 15 | padding-bottom: 3px; |
| 16 | background-color: $pagination-bg; |
| 17 | } |
| 18 | |
| 19 | ul.menu, |
| 20 | ul.menu > span.pref:not(:empty) { |
| 21 | box-sizing: border-box; |
| 22 | text-shadow: none; |
| 23 | font-weight: normal; |
| 24 | // Pagination border? |
| 25 | border: 2px solid $middle-green; |
| 26 | box-shadow: $pagination-box-shadow; |
| 27 | z-index: 16; |
| 28 | border-radius: $standard-border-radius; |
| 29 | } |
| 30 | |
| 31 | ul.menu > li, |
| 32 | ul.menu > span.pref:not(:empty) { |
| 33 | cursor: pointer; |
| 34 | padding: 3px 10px; |
| 35 | white-space: normal; |
| 36 | } |
| 37 | |
| 38 | ul.menu > li, |
| 39 | ul.menu > span.pref:not(.active) { |
| 40 | background-color: $pagination-bg; |
| 41 | color: $light-green |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * List items |
| 46 | */ |
| 47 | ul.menu { |
| 48 | > li { |
| 49 | &:first-of-type { |
| 50 | border-top: 3px solid transparent; |
| 51 | &:not(.no-more) { |
| 52 | border-top-color: $dark-orange; |
| 53 | } |
| 54 | } |
| 55 | &:last-of-type { |
| 56 | border-bottom: 3px solid transparent; |
| 57 | &:not(.no-more) { |
| 58 | border-bottom-color: $dark-orange; |
| 59 | } |
| 60 | } |
| 61 | mark { |
| 62 | text-decoration: underline; |
| 63 | background-color: transparent; |
| 64 | color: inherit; |
| 65 | font-weight: bold; |
| 66 | } |
| 67 | } |
| 68 | > *.active { |
| 69 | background-color: $light-green; |
| 70 | color: $dark-green; |
| 71 | } |
| 72 | > li:hover, |
| 73 | > span.pref:hover { |
| 74 | background-color: $dark-orange; |
| 75 | color: $nearly-white; |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | |
| 80 | /** |
| 81 | * Default prefix view |
| 82 | */ |
| 83 | ul.menu > span.pref:not(:empty) { |
| 84 | position: absolute; |
| 85 | min-width: 5px; |
| 86 | /* |
| 87 | border-bottom-right-radius: 10px; |
| 88 | */ |
| 89 | font-size: 80%; |
| 90 | left: 0; |
| 91 | bottom: 0; |
| 92 | display: block; |
| 93 | margin-bottom: -2.1em; |
| 94 | padding: 2px 6px; |
| 95 | margin-left: -2px; |
| 96 | border-radius: $standard-border-radius; |
| 97 | } |