blob: 993b237bcb4137b259269f3fb5b39226ec04cb76 [file] [log] [blame]
Akron7e5afce2020-08-25 15:50:19 +02001@charset "utf-8";
2@import "choose";
3@import "lengths";
4@import "icons";
5
6/**
7 * Definitions for menu design.
8 */
9
10ul.menu {
11 position: absolute;
12 padding: 0;
13 margin: 0;
14 text-indent: 0;
15
16 opacity: 0;
Akron7e5afce2020-08-25 15:50:19 +020017
18 list-style: {
19 type: none;
20 position: outside;
21 }
Akronc6c68212025-10-22 14:33:51 +020022
23 &.visible {
24 opacity: 1;
25 }
Akron7e5afce2020-08-25 15:50:19 +020026
27 &,
Akronf21bf742021-05-19 13:30:38 +020028 > span.non-item:not(:empty) {
Akron7e5afce2020-08-25 15:50:19 +020029 box-sizing: border-box;
30 text-shadow: none;
31 font-weight: normal;
32 z-index: 120;
33 }
34
35 > li,
Akronf21bf742021-05-19 13:30:38 +020036 > span.non-item:not(.active) {
Akron7e5afce2020-08-25 15:50:19 +020037 @include choose-item;
38 }
39
40 > li,
Akronf21bf742021-05-19 13:30:38 +020041 > span.non-item:not(:empty) {
Akron7e5afce2020-08-25 15:50:19 +020042 @include choose-item;
43 box-shadow: $choose-box-shadow;
44 cursor: pointer;
45 padding: $item-padding;
46 white-space: normal;
47 border: {
48 width: $border-size;
49 bottom-width: 0px;
50 top-width: 0px;
51 style: solid;
52 }
53 }
54 span.desc {
55 display: block;
56 font-size: 75%;
57 }
58
59 div.lengthField {
60 border: {
61 color: transparent;
62 width: $border-size;
63 }
Akrondadd1d12021-11-12 16:20:28 +010064 overflow: hidden;
Akron7e5afce2020-08-25 15:50:19 +020065 padding: $item-padding;
66 padding-top: 0;
67 padding-bottom: 0;
68 span {
69 display: block !important;
70 line-height: 0;
71 color: transparent;
72 }
73 }
74
75 /**
76 * Ruler
77 */
78 > div.ruler {
79 position: absolute;
80 right: 0px;
81 margin-right: -14px;
82 background-color: transparent;
83 width: 14px;
84 height: 100%;
85 opacity: 0;
86 cursor: pointer;
87 transition: opacity .5s ease 1s;
88
89 > span {
90 @include choose-active;
91 position: absolute;
92 display: block;
93 right: 0;
94 width: 10px;
95 z-index: 115;
96 border: {
97 radius: 4px;
98 width: 2px;
99 style: solid;
100 }
101 }
102
103 &.active > span {
104 @include choose-hover;
105 }
106
107 > div {
108 @include choose-item;
109 box-shadow: $choose-box-shadow;
110 position: absolute;
111 right: 0;
112 width: 10px;
113 height: 100%;
114 border: {
115 radius: 4px;
116 width: 2px;
117 style: solid;
118 }
119 }
120 }
121
122 &:active > div.ruler,
123 &:hover > div.ruler,
124 > div.ruler.active {
125 transition: opacity .1s ease;
126 opacity: 1;
127 }
128
129
130 /**
131 * List items
132 */
133 > li,
134 div.lengthField {
135 padding-right: 1.6em;
136 }
137
138 > li {
139 &:first-of-type {
140 border-top: {
141 width: $border-size;
142 left-radius: $standard-border-radius;
143 right-radius: $standard-border-radius;
144 }
145 }
146
147 &:last-of-type {
148 border-bottom: {
149 width: $border-size;
150 left-radius: $standard-border-radius;
151 right-radius: $standard-border-radius;
152 }
153 }
154 mark {
155 text-decoration: underline;
156 background-color: transparent;
157 color: inherit;
158 font-weight: bold;
159 }
160 }
161
162 > li.active,
Akronf21bf742021-05-19 13:30:38 +0200163 span.non-item.active {
Akron7e5afce2020-08-25 15:50:19 +0200164 @include choose-active;
165 }
166
167 > li:hover,
Akronf21bf742021-05-19 13:30:38 +0200168 span.non-item:hover {
Akron7e5afce2020-08-25 15:50:19 +0200169 @include choose-hover;
170 }
171
Akronf21bf742021-05-19 13:30:38 +0200172 span.non-item {
173 border: {
174 radius: $standard-border-radius;
175 width: $border-size !important;
176 }
177 }
178
Akron7e5afce2020-08-25 15:50:19 +0200179 /**
180 * Default prefix view
181 */
Akronf21bf742021-05-19 13:30:38 +0200182 span.pref:not(:empty) {
Akron7e5afce2020-08-25 15:50:19 +0200183 position: absolute;
184 min-width: 5px;
185 font-size: 80%;
186 left: 0;
187 bottom: 0;
188 display: block;
189 margin-bottom: -2.1em;
190 padding: 2px 6px;
Akron7e5afce2020-08-25 15:50:19 +0200191 }
marcrusian235a23a2021-05-26 14:28:11 +0200192 /**
193 * Default entry view
194 */
195 span.entry:not(:empty) {
196 position: absolute;
197 min-width: 5px;
198 font-size: 80%;
199 left: 0;
200 bottom: 0;
201 display: block;
202 margin-bottom: -2.1em;
203 padding: 2px 6px;
204 }
205 span.pref:not(:empty) ~ span.entry:not(:empty){
206 bottom: -27px;
207 }
Akron7e5afce2020-08-25 15:50:19 +0200208}
209
210
211/**
212 * Rolling menu
213 */
214ul.menu.roll {
215 > li:first-of-type {
216 &:not(.no-more):before {
217 position: absolute;
218 font-family: "FontAwesome";
219 content: $fa-up;
220 right: .5em;
221 top: .4em;
222 }
223 }
224 > li:last-of-type {
225 &:not(.no-more):before {
226 position: absolute;
227 font-family: "FontAwesome";
228 content: $fa-down;
229 right: .5em;
230 bottom: .4em;
231 }
232 }
233 &:not(.visible) {
234 height: 0;
235 }
236}
237
238
239/**
240 * Sorting menu
241 */
242ul.menu.sort {
243 position: relative;
244 display: inline-block;
245 > li::before {
246 content: '';
247 }
248 > li.active:hover {
249 @include choose-remove;
250 }
251}
252
253
254/**
255 * select menu
256 */
257span.menu.select {
258 > span {
259 z-index: 105;
260 }
261 > ul.menu.roll {
262 display: none;
263 z-index: -100;
264 &.visible {
265 display: block;
266 z-index: 110;
267 }
268 }
269}
Akron766f1522021-07-21 10:55:55 +0200270
271/**
272 * container menu
273 */
274ul.containermenu > ul.menu.container {
275 bottom: 0;
276 transform: translateY(100%);
277 margin-bottom: -.3em;
278}