blob: 7d76f4ec72a22f56f45ba048eaea85b1063c77f8 [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001@charset "utf-8";
Nils Diewaldab4d3ca2015-04-17 01:48:43 +00002@import "../util";
Nils Diewalda944fab2015-04-08 21:02:04 +00003
4$border-size: 2px;
5
6/**
7 * Menu list - used nearly everywhere
8 */
9ul.menu,
10ul.menu > span.pref:not(:empty) {
11 box-sizing: border-box;
12 text-shadow: none;
13 font-weight: normal;
14 // Pagination border?
15
Akronbd36c712018-02-15 11:14:23 +010016 z-index: 120;
Nils Diewalda944fab2015-04-08 21:02:04 +000017}
18
19ul.menu > li,
20ul.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
Akron71b91e42016-06-01 22:12:43 +020034ul.menu span.desc {
35 display: block;
36 font-size: 75%;
37}
38
Akronc7448732016-04-27 14:06:58 +020039ul.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 {
Akrone7679692018-01-26 12:06:33 +010048 display: block !important;
Akronc7448732016-04-27 14:06:58 +020049 line-height: 0;
50 color: transparent;
51 }
Akronc7448732016-04-27 14:06:58 +020052}
53
Nils Diewalda944fab2015-04-08 21:02:04 +000054ul.menu > li,
55ul.menu > span.pref:not(.active) {
56 @include choose-item;
57}
58
Akrona1159ff2018-07-22 13:28:31 +020059ul.menu:active > div.ruler,
Akron28b56972016-05-18 17:55:20 +020060ul.menu:hover > div.ruler,
61ul.menu > div.ruler.active {
Akrona92fd8d2016-05-24 21:13:41 +020062 transition: opacity .1s ease;
Akron9905e2a2016-05-10 16:06:44 +020063 opacity: 1;
64}
65
Nils Diewalda944fab2015-04-08 21:02:04 +000066ul.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
Akron9905e2a2016-05-10 16:06:44 +020074 > div.ruler {
75 position: absolute;
76 right: 0px;
Akron6ed13992016-05-23 18:06:05 +020077 margin-right: -14px;
Akron9905e2a2016-05-10 16:06:44 +020078 background-color: transparent;
Akron6ed13992016-05-23 18:06:05 +020079 width: 14px;
Akron9905e2a2016-05-10 16:06:44 +020080 height: 100%;
Akron24b1eaa2016-05-18 16:00:25 +020081 opacity: 0;
Akron47c086c2016-05-18 21:22:06 +020082 cursor: pointer;
Akrona92fd8d2016-05-24 21:13:41 +020083 transition: opacity .5s ease 1s;
84
Akron9905e2a2016-05-10 16:06:44 +020085 > span {
86 position: absolute;
Akronf86eaea2016-05-13 18:02:27 +020087 @include choose-active;
Akron9905e2a2016-05-10 16:06:44 +020088 display: block;
Akron6ed13992016-05-23 18:06:05 +020089 right: 0;
90 width: 10px;
Akronbd36c712018-02-15 11:14:23 +010091 z-index: 115;
Akron6ed13992016-05-23 18:06:05 +020092 border: {
93 radius: 4px;
94 width: 2px;
95 style: solid;
96 }
Akron28b56972016-05-18 17:55:20 +020097 }
Akron28b56972016-05-18 17:55:20 +020098 &.active > span {
99 @include choose-hover;
Akron9905e2a2016-05-10 16:06:44 +0200100 }
Akron9905e2a2016-05-10 16:06:44 +0200101 > div {
Akronf86eaea2016-05-13 18:02:27 +0200102 box-shadow: $choose-box-shadow;
Akron9905e2a2016-05-10 16:06:44 +0200103 position: absolute;
Akronf86eaea2016-05-13 18:02:27 +0200104 right: 0;
105 border: {
Akron6ed13992016-05-23 18:06:05 +0200106 width: 2px;
Akronf86eaea2016-05-13 18:02:27 +0200107 style: solid;
108 }
Akron6ed13992016-05-23 18:06:05 +0200109 width: 10px;
Akronf86eaea2016-05-13 18:02:27 +0200110 @include choose-item;
111 // background-color: -grey;
Akron9905e2a2016-05-10 16:06:44 +0200112 height: 100%;
Akronf86eaea2016-05-13 18:02:27 +0200113 border-radius: 4px;
Akron9905e2a2016-05-10 16:06:44 +0200114 }
115 }
116
Nils Diewalda944fab2015-04-08 21:02:04 +0000117 /**
118 * List items
119 */
Akronc7448732016-04-27 14:06:58 +0200120 > li, div.lengthField {
Nils Diewalda944fab2015-04-08 21:02:04 +0000121 padding-right: 1.6em;
Akronc7448732016-04-27 14:06:58 +0200122 }
123 > li {
Nils Diewalda944fab2015-04-08 21:02:04 +0000124
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
Akron6bb71582016-06-10 20:41:08 +0200174ul.menu {
175 opacity: 0;
176}
177ul.menu.visible {
178 opacity: 1;
179}
180
Nils Diewalda944fab2015-04-08 21:02:04 +0000181/**
182 * Rolling menu
183 */
184ul.menu.roll {
185 > li:first-of-type {
186 &:not(.no-more):before {
187 position: absolute;
188 font-family: "FontAwesome";
Nils Diewald2488d052015-04-09 21:46:02 +0000189 content: $fa-up;
Nils Diewalda944fab2015-04-08 21:02:04 +0000190 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 Diewald2488d052015-04-09 21:46:02 +0000198 content: $fa-down;
Nils Diewalda944fab2015-04-08 21:02:04 +0000199 right: .5em;
200 bottom: .4em;
201 }
202 }
203}
204
Akron3bb91bc2016-12-02 16:43:17 +0100205ul.menu.roll:not(.visible) {
206 height: 0;
207}
208
Nils Diewalda944fab2015-04-08 21:02:04 +0000209
210/**
211 * Sorting menu
212 */
213ul.menu.sort {
214 position: relative;
215 display: inline-block;
216 > li::before {
217 content: '';
218 }
219 > li.active:hover {
220 @include choose-remove;
221 }
Akron6bb71582016-06-10 20:41:08 +0200222}
Nils Diewalda944fab2015-04-08 21:02:04 +0000223
Akron6bb71582016-06-10 20:41:08 +0200224/**
225 * select menu
226 */
227span.menu.select {
228 > span {
Akronbd36c712018-02-15 11:14:23 +0100229 z-index: 105;
Akron6bb71582016-06-10 20:41:08 +0200230 }
231 > ul.menu.roll {
232 display: none;
233 z-index: -100;
234 &.visible {
235 display: block;
Akronbd36c712018-02-15 11:14:23 +0100236 z-index: 110;
Akron6bb71582016-06-10 20:41:08 +0200237 }
238 }
239}