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 | * 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 | |
Akron | c744873 | 2016-04-27 14:06:58 +0200 | [diff] [blame] | 34 | ul.menu div.lengthField { |
| 35 | border: { |
| 36 | color: transparent; |
| 37 | width: $border-size; |
| 38 | } |
| 39 | padding: $item-padding; |
| 40 | padding-top: 0; |
| 41 | padding-bottom: 0; |
| 42 | span { |
| 43 | display: block; |
| 44 | line-height: 0; |
| 45 | color: transparent; |
| 46 | } |
Akron | c744873 | 2016-04-27 14:06:58 +0200 | [diff] [blame] | 47 | } |
| 48 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 49 | ul.menu > li, |
| 50 | ul.menu > span.pref:not(.active) { |
| 51 | @include choose-item; |
| 52 | } |
| 53 | |
| 54 | ul.menu { |
| 55 | position: absolute; |
| 56 | padding: 0; |
| 57 | margin: 0; |
| 58 | text-indent: 0; |
| 59 | list-style-type: none; |
| 60 | list-style-position: outside; |
| 61 | |
| 62 | /** |
| 63 | * List items |
| 64 | */ |
Akron | c744873 | 2016-04-27 14:06:58 +0200 | [diff] [blame] | 65 | > li, div.lengthField { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 66 | padding-right: 1.6em; |
Akron | c744873 | 2016-04-27 14:06:58 +0200 | [diff] [blame] | 67 | } |
| 68 | > li { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 69 | |
| 70 | &:first-of-type { |
| 71 | border-top: { |
| 72 | width: $border-size; |
| 73 | left-radius: $standard-border-radius; |
| 74 | right-radius: $standard-border-radius; |
| 75 | } |
| 76 | } |
| 77 | &:last-of-type { |
| 78 | border-bottom: { |
| 79 | width: $border-size; |
| 80 | left-radius: $standard-border-radius; |
| 81 | right-radius: $standard-border-radius; |
| 82 | } |
| 83 | } |
| 84 | mark { |
| 85 | text-decoration: underline; |
| 86 | background-color: transparent; |
| 87 | color: inherit; |
| 88 | font-weight: bold; |
| 89 | } |
| 90 | } |
| 91 | > li.active, |
| 92 | > span.pref.active { |
| 93 | @include choose-active; |
| 94 | } |
| 95 | > li:hover, |
| 96 | > span.pref:hover { |
| 97 | @include choose-hover; |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * Default prefix view |
| 102 | */ |
| 103 | > span.pref:not(:empty) { |
| 104 | position: absolute; |
| 105 | min-width: 5px; |
| 106 | font-size: 80%; |
| 107 | left: 0; |
| 108 | bottom: 0; |
| 109 | display: block; |
| 110 | margin-bottom: -2.1em; |
| 111 | padding: 2px 6px; |
| 112 | border: { |
| 113 | radius: $standard-border-radius; |
| 114 | width: $border-size; |
| 115 | } |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * Rolling menu |
| 121 | */ |
| 122 | ul.menu.roll { |
| 123 | > li:first-of-type { |
| 124 | &:not(.no-more):before { |
| 125 | position: absolute; |
| 126 | font-family: "FontAwesome"; |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 127 | content: $fa-up; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 128 | right: .5em; |
| 129 | top: .4em; |
| 130 | } |
| 131 | } |
| 132 | > li:last-of-type { |
| 133 | &:not(.no-more):before { |
| 134 | position: absolute; |
| 135 | font-family: "FontAwesome"; |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 136 | content: $fa-down; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 137 | right: .5em; |
| 138 | bottom: .4em; |
| 139 | } |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | |
| 144 | /** |
| 145 | * Sorting menu |
| 146 | */ |
| 147 | ul.menu.sort { |
| 148 | position: relative; |
| 149 | display: inline-block; |
| 150 | > li::before { |
| 151 | content: ''; |
| 152 | } |
| 153 | > li.active:hover { |
| 154 | @include choose-remove; |
| 155 | } |
| 156 | |
| 157 | } |