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