blob: 8841de5325702943c7785a0c8ce23d6422e1326b [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
Akron28b56972016-05-18 17:55:20 +020059ul.menu:hover > div.ruler,
60ul.menu > div.ruler.active {
Akrona92fd8d2016-05-24 21:13:41 +020061 transition: opacity .1s ease;
Akron9905e2a2016-05-10 16:06:44 +020062 opacity: 1;
63}
64
Nils Diewalda944fab2015-04-08 21:02:04 +000065ul.menu {
66 position: absolute;
67 padding: 0;
68 margin: 0;
69 text-indent: 0;
70 list-style-type: none;
71 list-style-position: outside;
72
Akron9905e2a2016-05-10 16:06:44 +020073 > div.ruler {
74 position: absolute;
75 right: 0px;
Akron6ed13992016-05-23 18:06:05 +020076 margin-right: -14px;
Akron9905e2a2016-05-10 16:06:44 +020077 background-color: transparent;
Akron6ed13992016-05-23 18:06:05 +020078 width: 14px;
Akron9905e2a2016-05-10 16:06:44 +020079 height: 100%;
Akron24b1eaa2016-05-18 16:00:25 +020080 opacity: 0;
Akron47c086c2016-05-18 21:22:06 +020081 cursor: pointer;
Akrona92fd8d2016-05-24 21:13:41 +020082 transition: opacity .5s ease 1s;
83
Akron9905e2a2016-05-10 16:06:44 +020084 > span {
85 position: absolute;
Akronf86eaea2016-05-13 18:02:27 +020086 @include choose-active;
Akron9905e2a2016-05-10 16:06:44 +020087 display: block;
Akron6ed13992016-05-23 18:06:05 +020088 right: 0;
89 width: 10px;
Akronbd36c712018-02-15 11:14:23 +010090 z-index: 115;
Akron6ed13992016-05-23 18:06:05 +020091 border: {
92 radius: 4px;
93 width: 2px;
94 style: solid;
95 }
Akron28b56972016-05-18 17:55:20 +020096 }
Akron28b56972016-05-18 17:55:20 +020097 &.active > span {
98 @include choose-hover;
Akron9905e2a2016-05-10 16:06:44 +020099 }
Akron9905e2a2016-05-10 16:06:44 +0200100 > div {
Akronf86eaea2016-05-13 18:02:27 +0200101 box-shadow: $choose-box-shadow;
Akron9905e2a2016-05-10 16:06:44 +0200102 position: absolute;
Akronf86eaea2016-05-13 18:02:27 +0200103 right: 0;
104 border: {
Akron6ed13992016-05-23 18:06:05 +0200105 width: 2px;
Akronf86eaea2016-05-13 18:02:27 +0200106 style: solid;
107 }
Akron6ed13992016-05-23 18:06:05 +0200108 width: 10px;
Akronf86eaea2016-05-13 18:02:27 +0200109 @include choose-item;
110 // background-color: -grey;
Akron9905e2a2016-05-10 16:06:44 +0200111 height: 100%;
Akronf86eaea2016-05-13 18:02:27 +0200112 border-radius: 4px;
Akron9905e2a2016-05-10 16:06:44 +0200113 }
114 }
115
Nils Diewalda944fab2015-04-08 21:02:04 +0000116 /**
117 * List items
118 */
Akronc7448732016-04-27 14:06:58 +0200119 > li, div.lengthField {
Nils Diewalda944fab2015-04-08 21:02:04 +0000120 padding-right: 1.6em;
Akronc7448732016-04-27 14:06:58 +0200121 }
122 > li {
Nils Diewalda944fab2015-04-08 21:02:04 +0000123
124 &:first-of-type {
125 border-top: {
126 width: $border-size;
127 left-radius: $standard-border-radius;
128 right-radius: $standard-border-radius;
129 }
130 }
131 &:last-of-type {
132 border-bottom: {
133 width: $border-size;
134 left-radius: $standard-border-radius;
135 right-radius: $standard-border-radius;
136 }
137 }
138 mark {
139 text-decoration: underline;
140 background-color: transparent;
141 color: inherit;
142 font-weight: bold;
143 }
144 }
145 > li.active,
146 > span.pref.active {
147 @include choose-active;
148 }
149 > li:hover,
150 > span.pref:hover {
151 @include choose-hover;
152 }
153
154 /**
155 * Default prefix view
156 */
157 > span.pref:not(:empty) {
158 position: absolute;
159 min-width: 5px;
160 font-size: 80%;
161 left: 0;
162 bottom: 0;
163 display: block;
164 margin-bottom: -2.1em;
165 padding: 2px 6px;
166 border: {
167 radius: $standard-border-radius;
168 width: $border-size;
169 }
170 }
171}
172
Akron6bb71582016-06-10 20:41:08 +0200173ul.menu {
174 opacity: 0;
175}
176ul.menu.visible {
177 opacity: 1;
178}
179
Nils Diewalda944fab2015-04-08 21:02:04 +0000180/**
181 * Rolling menu
182 */
183ul.menu.roll {
184 > li:first-of-type {
185 &:not(.no-more):before {
186 position: absolute;
187 font-family: "FontAwesome";
Nils Diewald2488d052015-04-09 21:46:02 +0000188 content: $fa-up;
Nils Diewalda944fab2015-04-08 21:02:04 +0000189 right: .5em;
190 top: .4em;
191 }
192 }
193 > li:last-of-type {
194 &:not(.no-more):before {
195 position: absolute;
196 font-family: "FontAwesome";
Nils Diewald2488d052015-04-09 21:46:02 +0000197 content: $fa-down;
Nils Diewalda944fab2015-04-08 21:02:04 +0000198 right: .5em;
199 bottom: .4em;
200 }
201 }
202}
203
Akron3bb91bc2016-12-02 16:43:17 +0100204ul.menu.roll:not(.visible) {
205 height: 0;
206}
207
Nils Diewalda944fab2015-04-08 21:02:04 +0000208
209/**
210 * Sorting menu
211 */
212ul.menu.sort {
213 position: relative;
214 display: inline-block;
215 > li::before {
216 content: '';
217 }
218 > li.active:hover {
219 @include choose-remove;
220 }
Akron6bb71582016-06-10 20:41:08 +0200221}
Nils Diewalda944fab2015-04-08 21:02:04 +0000222
Akron6bb71582016-06-10 20:41:08 +0200223/**
224 * select menu
225 */
226span.menu.select {
227 > span {
Akronbd36c712018-02-15 11:14:23 +0100228 z-index: 105;
Akron6bb71582016-06-10 20:41:08 +0200229 }
230 > ul.menu.roll {
231 display: none;
232 z-index: -100;
233 &.visible {
234 display: block;
Akronbd36c712018-02-15 11:14:23 +0100235 z-index: 110;
Akron6bb71582016-06-10 20:41:08 +0200236 }
237 }
238}