blob: 0bf2bbdcee01d10406fc4ecd0ea6cd5e0afb6ce1 [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
16 z-index: 7000;
17}
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
Akronc7448732016-04-27 14:06:58 +020034ul.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 }
Akronc7448732016-04-27 14:06:58 +020047}
48
Nils Diewalda944fab2015-04-08 21:02:04 +000049ul.menu > li,
50ul.menu > span.pref:not(.active) {
51 @include choose-item;
52}
53
Akron28b56972016-05-18 17:55:20 +020054ul.menu:hover > div.ruler,
55ul.menu > div.ruler.active {
Akrona92fd8d2016-05-24 21:13:41 +020056 transition: opacity .1s ease;
Akron9905e2a2016-05-10 16:06:44 +020057 opacity: 1;
58}
59
Nils Diewalda944fab2015-04-08 21:02:04 +000060ul.menu {
61 position: absolute;
62 padding: 0;
63 margin: 0;
64 text-indent: 0;
65 list-style-type: none;
66 list-style-position: outside;
67
Akron9905e2a2016-05-10 16:06:44 +020068 > div.ruler {
69 position: absolute;
70 right: 0px;
Akron6ed13992016-05-23 18:06:05 +020071 margin-right: -14px;
Akron9905e2a2016-05-10 16:06:44 +020072 background-color: transparent;
Akron6ed13992016-05-23 18:06:05 +020073 width: 14px;
Akron9905e2a2016-05-10 16:06:44 +020074 height: 100%;
Akron24b1eaa2016-05-18 16:00:25 +020075 opacity: 0;
Akron47c086c2016-05-18 21:22:06 +020076 cursor: pointer;
Akrona92fd8d2016-05-24 21:13:41 +020077 transition: opacity .5s ease 1s;
78
Akron9905e2a2016-05-10 16:06:44 +020079 > span {
80 position: absolute;
Akronf86eaea2016-05-13 18:02:27 +020081 @include choose-active;
Akron9905e2a2016-05-10 16:06:44 +020082 display: block;
Akron6ed13992016-05-23 18:06:05 +020083 right: 0;
84 width: 10px;
Akron9905e2a2016-05-10 16:06:44 +020085 z-index: 600;
Akron6ed13992016-05-23 18:06:05 +020086 border: {
87 radius: 4px;
88 width: 2px;
89 style: solid;
90 }
Akron28b56972016-05-18 17:55:20 +020091 }
Akron28b56972016-05-18 17:55:20 +020092 &.active > span {
93 @include choose-hover;
Akron9905e2a2016-05-10 16:06:44 +020094 }
Akron9905e2a2016-05-10 16:06:44 +020095 > div {
Akronf86eaea2016-05-13 18:02:27 +020096 box-shadow: $choose-box-shadow;
Akron9905e2a2016-05-10 16:06:44 +020097 position: absolute;
Akronf86eaea2016-05-13 18:02:27 +020098 right: 0;
99 border: {
Akron6ed13992016-05-23 18:06:05 +0200100 width: 2px;
Akronf86eaea2016-05-13 18:02:27 +0200101 style: solid;
102 }
Akron6ed13992016-05-23 18:06:05 +0200103 width: 10px;
Akronf86eaea2016-05-13 18:02:27 +0200104 @include choose-item;
105 // background-color: -grey;
Akron9905e2a2016-05-10 16:06:44 +0200106 height: 100%;
Akronf86eaea2016-05-13 18:02:27 +0200107 border-radius: 4px;
Akron9905e2a2016-05-10 16:06:44 +0200108 }
109 }
110
Nils Diewalda944fab2015-04-08 21:02:04 +0000111 /**
112 * List items
113 */
Akronc7448732016-04-27 14:06:58 +0200114 > li, div.lengthField {
Nils Diewalda944fab2015-04-08 21:02:04 +0000115 padding-right: 1.6em;
Akronc7448732016-04-27 14:06:58 +0200116 }
117 > li {
Nils Diewalda944fab2015-04-08 21:02:04 +0000118
119 &:first-of-type {
120 border-top: {
121 width: $border-size;
122 left-radius: $standard-border-radius;
123 right-radius: $standard-border-radius;
124 }
125 }
126 &:last-of-type {
127 border-bottom: {
128 width: $border-size;
129 left-radius: $standard-border-radius;
130 right-radius: $standard-border-radius;
131 }
132 }
133 mark {
134 text-decoration: underline;
135 background-color: transparent;
136 color: inherit;
137 font-weight: bold;
138 }
139 }
140 > li.active,
141 > span.pref.active {
142 @include choose-active;
143 }
144 > li:hover,
145 > span.pref:hover {
146 @include choose-hover;
147 }
148
149 /**
150 * Default prefix view
151 */
152 > span.pref:not(:empty) {
153 position: absolute;
154 min-width: 5px;
155 font-size: 80%;
156 left: 0;
157 bottom: 0;
158 display: block;
159 margin-bottom: -2.1em;
160 padding: 2px 6px;
161 border: {
162 radius: $standard-border-radius;
163 width: $border-size;
164 }
165 }
166}
167
Akron6bb71582016-06-10 20:41:08 +0200168ul.menu {
169 opacity: 0;
170}
171ul.menu.visible {
172 opacity: 1;
173}
174
Nils Diewalda944fab2015-04-08 21:02:04 +0000175/**
176 * Rolling menu
177 */
178ul.menu.roll {
179 > li:first-of-type {
180 &:not(.no-more):before {
181 position: absolute;
182 font-family: "FontAwesome";
Nils Diewald2488d052015-04-09 21:46:02 +0000183 content: $fa-up;
Nils Diewalda944fab2015-04-08 21:02:04 +0000184 right: .5em;
185 top: .4em;
186 }
187 }
188 > li:last-of-type {
189 &:not(.no-more):before {
190 position: absolute;
191 font-family: "FontAwesome";
Nils Diewald2488d052015-04-09 21:46:02 +0000192 content: $fa-down;
Nils Diewalda944fab2015-04-08 21:02:04 +0000193 right: .5em;
194 bottom: .4em;
195 }
196 }
197}
198
199
200/**
201 * Sorting menu
202 */
203ul.menu.sort {
204 position: relative;
205 display: inline-block;
206 > li::before {
207 content: '';
208 }
209 > li.active:hover {
210 @include choose-remove;
211 }
Akron6bb71582016-06-10 20:41:08 +0200212}
Nils Diewalda944fab2015-04-08 21:02:04 +0000213
Akron6bb71582016-06-10 20:41:08 +0200214/**
215 * select menu
216 */
217span.menu.select {
218 > span {
219 z-index: 100;
220 }
221 > ul.menu.roll {
222 display: none;
223 z-index: -100;
224 &.visible {
225 display: block;
226 z-index: 200;
227 }
228 }
229}