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 | |||||
Akron | bd36c71 | 2018-02-15 11:14:23 +0100 | [diff] [blame] | 16 | z-index: 120; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 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 | 71b91e4 | 2016-06-01 22:12:43 +0200 | [diff] [blame] | 34 | ul.menu span.desc { |
35 | display: block; | ||||
36 | font-size: 75%; | ||||
37 | } | ||||
38 | |||||
Akron | c744873 | 2016-04-27 14:06:58 +0200 | [diff] [blame] | 39 | ul.menu div.lengthField { |
40 | border: { | ||||
41 | color: transparent; | ||||
42 | width: $border-size; | ||||
43 | } | ||||
44 | padding: $item-padding; | ||||
45 | padding-top: 0; | ||||
46 | padding-bottom: 0; | ||||
47 | span { | ||||
Akron | e767969 | 2018-01-26 12:06:33 +0100 | [diff] [blame] | 48 | display: block !important; |
Akron | c744873 | 2016-04-27 14:06:58 +0200 | [diff] [blame] | 49 | line-height: 0; |
50 | color: transparent; | ||||
51 | } | ||||
Akron | c744873 | 2016-04-27 14:06:58 +0200 | [diff] [blame] | 52 | } |
53 | |||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 54 | ul.menu > li, |
55 | ul.menu > span.pref:not(.active) { | ||||
56 | @include choose-item; | ||||
57 | } | ||||
58 | |||||
Akron | a1159ff | 2018-07-22 13:28:31 +0200 | [diff] [blame] | 59 | ul.menu:active > div.ruler, |
Akron | 28b5697 | 2016-05-18 17:55:20 +0200 | [diff] [blame] | 60 | ul.menu:hover > div.ruler, |
61 | ul.menu > div.ruler.active { | ||||
Akron | a92fd8d | 2016-05-24 21:13:41 +0200 | [diff] [blame] | 62 | transition: opacity .1s ease; |
Akron | 9905e2a | 2016-05-10 16:06:44 +0200 | [diff] [blame] | 63 | opacity: 1; |
64 | } | ||||
65 | |||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 66 | ul.menu { |
67 | position: absolute; | ||||
68 | padding: 0; | ||||
69 | margin: 0; | ||||
70 | text-indent: 0; | ||||
71 | list-style-type: none; | ||||
72 | list-style-position: outside; | ||||
73 | |||||
Akron | 9905e2a | 2016-05-10 16:06:44 +0200 | [diff] [blame] | 74 | > div.ruler { |
75 | position: absolute; | ||||
76 | right: 0px; | ||||
Akron | 6ed1399 | 2016-05-23 18:06:05 +0200 | [diff] [blame] | 77 | margin-right: -14px; |
Akron | 9905e2a | 2016-05-10 16:06:44 +0200 | [diff] [blame] | 78 | background-color: transparent; |
Akron | 6ed1399 | 2016-05-23 18:06:05 +0200 | [diff] [blame] | 79 | width: 14px; |
Akron | 9905e2a | 2016-05-10 16:06:44 +0200 | [diff] [blame] | 80 | height: 100%; |
Akron | 24b1eaa | 2016-05-18 16:00:25 +0200 | [diff] [blame] | 81 | opacity: 0; |
Akron | 47c086c | 2016-05-18 21:22:06 +0200 | [diff] [blame] | 82 | cursor: pointer; |
Akron | a92fd8d | 2016-05-24 21:13:41 +0200 | [diff] [blame] | 83 | transition: opacity .5s ease 1s; |
84 | |||||
Akron | 9905e2a | 2016-05-10 16:06:44 +0200 | [diff] [blame] | 85 | > span { |
86 | position: absolute; | ||||
Akron | f86eaea | 2016-05-13 18:02:27 +0200 | [diff] [blame] | 87 | @include choose-active; |
Akron | 9905e2a | 2016-05-10 16:06:44 +0200 | [diff] [blame] | 88 | display: block; |
Akron | 6ed1399 | 2016-05-23 18:06:05 +0200 | [diff] [blame] | 89 | right: 0; |
90 | width: 10px; | ||||
Akron | bd36c71 | 2018-02-15 11:14:23 +0100 | [diff] [blame] | 91 | z-index: 115; |
Akron | 6ed1399 | 2016-05-23 18:06:05 +0200 | [diff] [blame] | 92 | border: { |
93 | radius: 4px; | ||||
94 | width: 2px; | ||||
95 | style: solid; | ||||
96 | } | ||||
Akron | 28b5697 | 2016-05-18 17:55:20 +0200 | [diff] [blame] | 97 | } |
Akron | 28b5697 | 2016-05-18 17:55:20 +0200 | [diff] [blame] | 98 | &.active > span { |
99 | @include choose-hover; | ||||
Akron | 9905e2a | 2016-05-10 16:06:44 +0200 | [diff] [blame] | 100 | } |
Akron | 9905e2a | 2016-05-10 16:06:44 +0200 | [diff] [blame] | 101 | > div { |
Akron | f86eaea | 2016-05-13 18:02:27 +0200 | [diff] [blame] | 102 | box-shadow: $choose-box-shadow; |
Akron | 9905e2a | 2016-05-10 16:06:44 +0200 | [diff] [blame] | 103 | position: absolute; |
Akron | f86eaea | 2016-05-13 18:02:27 +0200 | [diff] [blame] | 104 | right: 0; |
105 | border: { | ||||
Akron | 6ed1399 | 2016-05-23 18:06:05 +0200 | [diff] [blame] | 106 | width: 2px; |
Akron | f86eaea | 2016-05-13 18:02:27 +0200 | [diff] [blame] | 107 | style: solid; |
108 | } | ||||
Akron | 6ed1399 | 2016-05-23 18:06:05 +0200 | [diff] [blame] | 109 | width: 10px; |
Akron | f86eaea | 2016-05-13 18:02:27 +0200 | [diff] [blame] | 110 | @include choose-item; |
111 | // background-color: -grey; | ||||
Akron | 9905e2a | 2016-05-10 16:06:44 +0200 | [diff] [blame] | 112 | height: 100%; |
Akron | f86eaea | 2016-05-13 18:02:27 +0200 | [diff] [blame] | 113 | border-radius: 4px; |
Akron | 9905e2a | 2016-05-10 16:06:44 +0200 | [diff] [blame] | 114 | } |
115 | } | ||||
116 | |||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 117 | /** |
118 | * List items | ||||
119 | */ | ||||
Akron | c744873 | 2016-04-27 14:06:58 +0200 | [diff] [blame] | 120 | > li, div.lengthField { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 121 | padding-right: 1.6em; |
Akron | c744873 | 2016-04-27 14:06:58 +0200 | [diff] [blame] | 122 | } |
123 | > li { | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 124 | |
125 | &:first-of-type { | ||||
126 | border-top: { | ||||
127 | width: $border-size; | ||||
128 | left-radius: $standard-border-radius; | ||||
129 | right-radius: $standard-border-radius; | ||||
130 | } | ||||
131 | } | ||||
132 | &:last-of-type { | ||||
133 | border-bottom: { | ||||
134 | width: $border-size; | ||||
135 | left-radius: $standard-border-radius; | ||||
136 | right-radius: $standard-border-radius; | ||||
137 | } | ||||
138 | } | ||||
139 | mark { | ||||
140 | text-decoration: underline; | ||||
141 | background-color: transparent; | ||||
142 | color: inherit; | ||||
143 | font-weight: bold; | ||||
144 | } | ||||
145 | } | ||||
146 | > li.active, | ||||
147 | > span.pref.active { | ||||
148 | @include choose-active; | ||||
149 | } | ||||
150 | > li:hover, | ||||
151 | > span.pref:hover { | ||||
152 | @include choose-hover; | ||||
153 | } | ||||
154 | |||||
155 | /** | ||||
156 | * Default prefix view | ||||
157 | */ | ||||
158 | > span.pref:not(:empty) { | ||||
159 | position: absolute; | ||||
160 | min-width: 5px; | ||||
161 | font-size: 80%; | ||||
162 | left: 0; | ||||
163 | bottom: 0; | ||||
164 | display: block; | ||||
165 | margin-bottom: -2.1em; | ||||
166 | padding: 2px 6px; | ||||
167 | border: { | ||||
168 | radius: $standard-border-radius; | ||||
169 | width: $border-size; | ||||
170 | } | ||||
171 | } | ||||
172 | } | ||||
173 | |||||
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 174 | ul.menu { |
175 | opacity: 0; | ||||
176 | } | ||||
177 | ul.menu.visible { | ||||
178 | opacity: 1; | ||||
179 | } | ||||
180 | |||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 181 | /** |
182 | * Rolling menu | ||||
183 | */ | ||||
184 | ul.menu.roll { | ||||
185 | > li:first-of-type { | ||||
186 | &:not(.no-more):before { | ||||
187 | position: absolute; | ||||
188 | font-family: "FontAwesome"; | ||||
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 189 | content: $fa-up; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 190 | right: .5em; |
191 | top: .4em; | ||||
192 | } | ||||
193 | } | ||||
194 | > li:last-of-type { | ||||
195 | &:not(.no-more):before { | ||||
196 | position: absolute; | ||||
197 | font-family: "FontAwesome"; | ||||
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 198 | content: $fa-down; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 199 | right: .5em; |
200 | bottom: .4em; | ||||
201 | } | ||||
202 | } | ||||
203 | } | ||||
204 | |||||
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 205 | ul.menu.roll:not(.visible) { |
206 | height: 0; | ||||
207 | } | ||||
208 | |||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 209 | |
210 | /** | ||||
211 | * Sorting menu | ||||
212 | */ | ||||
213 | ul.menu.sort { | ||||
214 | position: relative; | ||||
215 | display: inline-block; | ||||
216 | > li::before { | ||||
217 | content: ''; | ||||
218 | } | ||||
219 | > li.active:hover { | ||||
220 | @include choose-remove; | ||||
221 | } | ||||
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 222 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 223 | |
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 224 | /** |
225 | * select menu | ||||
226 | */ | ||||
227 | span.menu.select { | ||||
228 | > span { | ||||
Akron | bd36c71 | 2018-02-15 11:14:23 +0100 | [diff] [blame] | 229 | z-index: 105; |
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 230 | } |
231 | > ul.menu.roll { | ||||
232 | display: none; | ||||
233 | z-index: -100; | ||||
234 | &.visible { | ||||
235 | display: block; | ||||
Akron | bd36c71 | 2018-02-15 11:14:23 +0100 | [diff] [blame] | 236 | z-index: 110; |
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 237 | } |
238 | } | ||||
239 | } |