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