Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
| 2 | @import "util"; |
| 3 | |
| 4 | $border-size: 2px; |
| 5 | |
| 6 | /** |
| 7 | * Menu list - used nearly everywhere |
| 8 | */ |
| 9 | ul.menu, |
| 10 | ul.menu > span.pref:not(:empty) { |
| 11 | box-sizing: border-box; |
| 12 | text-shadow: none; |
| 13 | font-weight: normal; |
| 14 | // Pagination border? |
| 15 | |
| 16 | z-index: 7000; |
| 17 | } |
| 18 | |
| 19 | ul.menu > li, |
| 20 | ul.menu > span.pref:not(:empty) { |
| 21 | box-shadow: $choose-box-shadow; |
| 22 | border: { |
| 23 | width: $border-size; |
| 24 | bottom-width: 0px; |
| 25 | top-width: 0px; |
| 26 | style: solid; |
| 27 | } |
| 28 | @include choose-item; |
| 29 | cursor: pointer; |
| 30 | padding: $item-padding; |
| 31 | white-space: normal; |
| 32 | } |
| 33 | |
| 34 | ul.menu > li, |
| 35 | ul.menu > span.pref:not(.active) { |
| 36 | @include choose-item; |
| 37 | } |
| 38 | |
| 39 | ul.menu { |
| 40 | position: absolute; |
| 41 | padding: 0; |
| 42 | margin: 0; |
| 43 | text-indent: 0; |
| 44 | list-style-type: none; |
| 45 | list-style-position: outside; |
| 46 | |
| 47 | /** |
| 48 | * List items |
| 49 | */ |
| 50 | > li { |
| 51 | padding-right: 1.6em; |
| 52 | |
| 53 | &:first-of-type { |
| 54 | border-top: { |
| 55 | width: $border-size; |
| 56 | left-radius: $standard-border-radius; |
| 57 | right-radius: $standard-border-radius; |
| 58 | } |
| 59 | } |
| 60 | &:last-of-type { |
| 61 | border-bottom: { |
| 62 | width: $border-size; |
| 63 | left-radius: $standard-border-radius; |
| 64 | right-radius: $standard-border-radius; |
| 65 | } |
| 66 | } |
| 67 | mark { |
| 68 | text-decoration: underline; |
| 69 | background-color: transparent; |
| 70 | color: inherit; |
| 71 | font-weight: bold; |
| 72 | } |
| 73 | } |
| 74 | > li.active, |
| 75 | > span.pref.active { |
| 76 | @include choose-active; |
| 77 | } |
| 78 | > li:hover, |
| 79 | > span.pref:hover { |
| 80 | @include choose-hover; |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Default prefix view |
| 85 | */ |
| 86 | > span.pref:not(:empty) { |
| 87 | position: absolute; |
| 88 | min-width: 5px; |
| 89 | font-size: 80%; |
| 90 | left: 0; |
| 91 | bottom: 0; |
| 92 | display: block; |
| 93 | margin-bottom: -2.1em; |
| 94 | padding: 2px 6px; |
| 95 | border: { |
| 96 | radius: $standard-border-radius; |
| 97 | width: $border-size; |
| 98 | } |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * Rolling menu |
| 104 | */ |
| 105 | ul.menu.roll { |
| 106 | > li:first-of-type { |
| 107 | &:not(.no-more):before { |
| 108 | position: absolute; |
| 109 | font-family: "FontAwesome"; |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame^] | 110 | content: $fa-up; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 111 | right: .5em; |
| 112 | top: .4em; |
| 113 | } |
| 114 | } |
| 115 | > li:last-of-type { |
| 116 | &:not(.no-more):before { |
| 117 | position: absolute; |
| 118 | font-family: "FontAwesome"; |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame^] | 119 | content: $fa-down; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 120 | right: .5em; |
| 121 | bottom: .4em; |
| 122 | } |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | |
| 127 | /** |
| 128 | * Sorting menu |
| 129 | */ |
| 130 | ul.menu.sort { |
| 131 | position: relative; |
| 132 | display: inline-block; |
| 133 | > li::before { |
| 134 | content: ''; |
| 135 | } |
| 136 | > li.active:hover { |
| 137 | @include choose-remove; |
| 138 | } |
| 139 | |
| 140 | } |