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 | |
Akron | 9905e2a | 2016-05-10 16:06:44 +0200 | [diff] [blame^] | 54 | ul.menu:hover > div.ruler { |
| 55 | opacity: 1; |
| 56 | } |
| 57 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 58 | ul.menu { |
| 59 | position: absolute; |
| 60 | padding: 0; |
| 61 | margin: 0; |
| 62 | text-indent: 0; |
| 63 | list-style-type: none; |
| 64 | list-style-position: outside; |
| 65 | |
Akron | 9905e2a | 2016-05-10 16:06:44 +0200 | [diff] [blame^] | 66 | > div.ruler { |
| 67 | position: absolute; |
| 68 | right: 0px; |
| 69 | margin-right: -12px; |
| 70 | background-color: transparent; |
| 71 | width: 12px; |
| 72 | height: 100%; |
| 73 | opacity: 0; |
| 74 | |
| 75 | > span { |
| 76 | position: absolute; |
| 77 | display: block; |
| 78 | right: 0px; |
| 79 | width: 6px; |
| 80 | cursor: pointer; |
| 81 | background-color: $light-grey; |
| 82 | border-radius: 3px; |
| 83 | z-index: 600; |
| 84 | } |
| 85 | |
| 86 | > div { |
| 87 | position: absolute; |
| 88 | right: 1px; |
| 89 | width: 4px; |
| 90 | background-color: $dark-grey; |
| 91 | height: 100%; |
| 92 | border-radius: 2px; |
| 93 | } |
| 94 | } |
| 95 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 96 | /** |
| 97 | * List items |
| 98 | */ |
Akron | c744873 | 2016-04-27 14:06:58 +0200 | [diff] [blame] | 99 | > li, div.lengthField { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 100 | padding-right: 1.6em; |
Akron | c744873 | 2016-04-27 14:06:58 +0200 | [diff] [blame] | 101 | } |
| 102 | > li { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 103 | |
| 104 | &:first-of-type { |
| 105 | border-top: { |
| 106 | width: $border-size; |
| 107 | left-radius: $standard-border-radius; |
| 108 | right-radius: $standard-border-radius; |
| 109 | } |
| 110 | } |
| 111 | &:last-of-type { |
| 112 | border-bottom: { |
| 113 | width: $border-size; |
| 114 | left-radius: $standard-border-radius; |
| 115 | right-radius: $standard-border-radius; |
| 116 | } |
| 117 | } |
| 118 | mark { |
| 119 | text-decoration: underline; |
| 120 | background-color: transparent; |
| 121 | color: inherit; |
| 122 | font-weight: bold; |
| 123 | } |
| 124 | } |
| 125 | > li.active, |
| 126 | > span.pref.active { |
| 127 | @include choose-active; |
| 128 | } |
| 129 | > li:hover, |
| 130 | > span.pref:hover { |
| 131 | @include choose-hover; |
| 132 | } |
| 133 | |
| 134 | /** |
| 135 | * Default prefix view |
| 136 | */ |
| 137 | > span.pref:not(:empty) { |
| 138 | position: absolute; |
| 139 | min-width: 5px; |
| 140 | font-size: 80%; |
| 141 | left: 0; |
| 142 | bottom: 0; |
| 143 | display: block; |
| 144 | margin-bottom: -2.1em; |
| 145 | padding: 2px 6px; |
| 146 | border: { |
| 147 | radius: $standard-border-radius; |
| 148 | width: $border-size; |
| 149 | } |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | /** |
| 154 | * Rolling menu |
| 155 | */ |
| 156 | ul.menu.roll { |
| 157 | > li:first-of-type { |
| 158 | &:not(.no-more):before { |
| 159 | position: absolute; |
| 160 | font-family: "FontAwesome"; |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 161 | content: $fa-up; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 162 | right: .5em; |
| 163 | top: .4em; |
| 164 | } |
| 165 | } |
| 166 | > li:last-of-type { |
| 167 | &:not(.no-more):before { |
| 168 | position: absolute; |
| 169 | font-family: "FontAwesome"; |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 170 | content: $fa-down; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 171 | right: .5em; |
| 172 | bottom: .4em; |
| 173 | } |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | |
| 178 | /** |
| 179 | * Sorting menu |
| 180 | */ |
| 181 | ul.menu.sort { |
| 182 | position: relative; |
| 183 | display: inline-block; |
| 184 | > li::before { |
| 185 | content: ''; |
| 186 | } |
| 187 | > li.active:hover { |
| 188 | @include choose-remove; |
| 189 | } |
| 190 | |
| 191 | } |