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