blob: 7baa3981503c14275f5653f4f7bff03157bc838c [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%;
73 opacity: 0;
74
75 > span {
76 position: absolute;
77 display: block;
78 right: 0px;
79 width: 6px;
80 cursor: pointer;
81 background-color: $light-grey;
82 border-radius: 3px;
83 z-index: 600;
84 }
85
86 > div {
87 position: absolute;
88 right: 1px;
89 width: 4px;
90 background-color: $dark-grey;
91 height: 100%;
92 border-radius: 2px;
93 }
94 }
95
Nils Diewalda944fab2015-04-08 21:02:04 +000096 /**
97 * List items
98 */
Akronc7448732016-04-27 14:06:58 +020099 > li, div.lengthField {
Nils Diewalda944fab2015-04-08 21:02:04 +0000100 padding-right: 1.6em;
Akronc7448732016-04-27 14:06:58 +0200101 }
102 > li {
Nils Diewalda944fab2015-04-08 21:02:04 +0000103
104 &:first-of-type {
105 border-top: {
106 width: $border-size;
107 left-radius: $standard-border-radius;
108 right-radius: $standard-border-radius;
109 }
110 }
111 &:last-of-type {
112 border-bottom: {
113 width: $border-size;
114 left-radius: $standard-border-radius;
115 right-radius: $standard-border-radius;
116 }
117 }
118 mark {
119 text-decoration: underline;
120 background-color: transparent;
121 color: inherit;
122 font-weight: bold;
123 }
124 }
125 > li.active,
126 > span.pref.active {
127 @include choose-active;
128 }
129 > li:hover,
130 > span.pref:hover {
131 @include choose-hover;
132 }
133
134 /**
135 * Default prefix view
136 */
137 > span.pref:not(:empty) {
138 position: absolute;
139 min-width: 5px;
140 font-size: 80%;
141 left: 0;
142 bottom: 0;
143 display: block;
144 margin-bottom: -2.1em;
145 padding: 2px 6px;
146 border: {
147 radius: $standard-border-radius;
148 width: $border-size;
149 }
150 }
151}
152
153/**
154 * Rolling menu
155 */
156ul.menu.roll {
157 > li:first-of-type {
158 &:not(.no-more):before {
159 position: absolute;
160 font-family: "FontAwesome";
Nils Diewald2488d052015-04-09 21:46:02 +0000161 content: $fa-up;
Nils Diewalda944fab2015-04-08 21:02:04 +0000162 right: .5em;
163 top: .4em;
164 }
165 }
166 > li:last-of-type {
167 &:not(.no-more):before {
168 position: absolute;
169 font-family: "FontAwesome";
Nils Diewald2488d052015-04-09 21:46:02 +0000170 content: $fa-down;
Nils Diewalda944fab2015-04-08 21:02:04 +0000171 right: .5em;
172 bottom: .4em;
173 }
174 }
175}
176
177
178/**
179 * Sorting menu
180 */
181ul.menu.sort {
182 position: relative;
183 display: inline-block;
184 > li::before {
185 content: '';
186 }
187 > li.active:hover {
188 @include choose-remove;
189 }
190
191}