blob: 5cfbad4288565c8575e54f142bd98c6ad7b7dce9 [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 {
Akron9905e2a2016-05-10 16:06:44 +020056 opacity: 1;
57}
58
Nils Diewalda944fab2015-04-08 21:02:04 +000059ul.menu {
60 position: absolute;
61 padding: 0;
62 margin: 0;
63 text-indent: 0;
64 list-style-type: none;
65 list-style-position: outside;
66
Akron9905e2a2016-05-10 16:06:44 +020067 > div.ruler {
68 position: absolute;
69 right: 0px;
70 margin-right: -12px;
71 background-color: transparent;
72 width: 12px;
73 height: 100%;
Akron24b1eaa2016-05-18 16:00:25 +020074 opacity: 0;
Akron47c086c2016-05-18 21:22:06 +020075 cursor: pointer;
Akron9905e2a2016-05-10 16:06:44 +020076 > span {
77 position: absolute;
Akronf86eaea2016-05-13 18:02:27 +020078 @include choose-active;
Akron9905e2a2016-05-10 16:06:44 +020079 display: block;
Akronf86eaea2016-05-13 18:02:27 +020080 right: 1px;
Akron9905e2a2016-05-10 16:06:44 +020081 width: 6px;
Akron9905e2a2016-05-10 16:06:44 +020082 z-index: 600;
Akronf86eaea2016-05-13 18:02:27 +020083 border-radius: 4px;
Akron28b56972016-05-18 17:55:20 +020084 }
85
86 &.active > span {
87 @include choose-hover;
Akron9905e2a2016-05-10 16:06:44 +020088 }
89
90 > div {
Akronf86eaea2016-05-13 18:02:27 +020091 box-shadow: $choose-box-shadow;
Akron9905e2a2016-05-10 16:06:44 +020092 position: absolute;
Akronf86eaea2016-05-13 18:02:27 +020093 right: 0;
94 border: {
95 width: 1px;
96 style: solid;
97 }
98 width: 8px;
99 @include choose-item;
100 // background-color: -grey;
Akron9905e2a2016-05-10 16:06:44 +0200101 height: 100%;
Akronf86eaea2016-05-13 18:02:27 +0200102 border-radius: 4px;
Akron9905e2a2016-05-10 16:06:44 +0200103 }
104 }
105
Nils Diewalda944fab2015-04-08 21:02:04 +0000106 /**
107 * List items
108 */
Akronc7448732016-04-27 14:06:58 +0200109 > li, div.lengthField {
Nils Diewalda944fab2015-04-08 21:02:04 +0000110 padding-right: 1.6em;
Akronc7448732016-04-27 14:06:58 +0200111 }
112 > li {
Nils Diewalda944fab2015-04-08 21:02:04 +0000113
114 &:first-of-type {
115 border-top: {
116 width: $border-size;
117 left-radius: $standard-border-radius;
118 right-radius: $standard-border-radius;
119 }
120 }
121 &:last-of-type {
122 border-bottom: {
123 width: $border-size;
124 left-radius: $standard-border-radius;
125 right-radius: $standard-border-radius;
126 }
127 }
128 mark {
129 text-decoration: underline;
130 background-color: transparent;
131 color: inherit;
132 font-weight: bold;
133 }
134 }
135 > li.active,
136 > span.pref.active {
137 @include choose-active;
138 }
139 > li:hover,
140 > span.pref:hover {
141 @include choose-hover;
142 }
143
144 /**
145 * Default prefix view
146 */
147 > span.pref:not(:empty) {
148 position: absolute;
149 min-width: 5px;
150 font-size: 80%;
151 left: 0;
152 bottom: 0;
153 display: block;
154 margin-bottom: -2.1em;
155 padding: 2px 6px;
156 border: {
157 radius: $standard-border-radius;
158 width: $border-size;
159 }
160 }
161}
162
163/**
164 * Rolling menu
165 */
166ul.menu.roll {
167 > li:first-of-type {
168 &:not(.no-more):before {
169 position: absolute;
170 font-family: "FontAwesome";
Nils Diewald2488d052015-04-09 21:46:02 +0000171 content: $fa-up;
Nils Diewalda944fab2015-04-08 21:02:04 +0000172 right: .5em;
173 top: .4em;
174 }
175 }
176 > li:last-of-type {
177 &:not(.no-more):before {
178 position: absolute;
179 font-family: "FontAwesome";
Nils Diewald2488d052015-04-09 21:46:02 +0000180 content: $fa-down;
Nils Diewalda944fab2015-04-08 21:02:04 +0000181 right: .5em;
182 bottom: .4em;
183 }
184 }
185}
186
187
188/**
189 * Sorting menu
190 */
191ul.menu.sort {
192 position: relative;
193 display: inline-block;
194 > li::before {
195 content: '';
196 }
197 > li.active:hover {
198 @include choose-remove;
199 }
200
201}