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