blob: 00164204505e0982578a572f0d6edc0b82662fac [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
54ul.menu {
55 position: absolute;
56 padding: 0;
57 margin: 0;
58 text-indent: 0;
59 list-style-type: none;
60 list-style-position: outside;
61
62 /**
63 * List items
64 */
Akronc7448732016-04-27 14:06:58 +020065 > li, div.lengthField {
Nils Diewalda944fab2015-04-08 21:02:04 +000066 padding-right: 1.6em;
Akronc7448732016-04-27 14:06:58 +020067 }
68 > li {
Nils Diewalda944fab2015-04-08 21:02:04 +000069
70 &:first-of-type {
71 border-top: {
72 width: $border-size;
73 left-radius: $standard-border-radius;
74 right-radius: $standard-border-radius;
75 }
76 }
77 &:last-of-type {
78 border-bottom: {
79 width: $border-size;
80 left-radius: $standard-border-radius;
81 right-radius: $standard-border-radius;
82 }
83 }
84 mark {
85 text-decoration: underline;
86 background-color: transparent;
87 color: inherit;
88 font-weight: bold;
89 }
90 }
91 > li.active,
92 > span.pref.active {
93 @include choose-active;
94 }
95 > li:hover,
96 > span.pref:hover {
97 @include choose-hover;
98 }
99
100 /**
101 * Default prefix view
102 */
103 > span.pref:not(:empty) {
104 position: absolute;
105 min-width: 5px;
106 font-size: 80%;
107 left: 0;
108 bottom: 0;
109 display: block;
110 margin-bottom: -2.1em;
111 padding: 2px 6px;
112 border: {
113 radius: $standard-border-radius;
114 width: $border-size;
115 }
116 }
117}
118
119/**
120 * Rolling menu
121 */
122ul.menu.roll {
123 > li:first-of-type {
124 &:not(.no-more):before {
125 position: absolute;
126 font-family: "FontAwesome";
Nils Diewald2488d052015-04-09 21:46:02 +0000127 content: $fa-up;
Nils Diewalda944fab2015-04-08 21:02:04 +0000128 right: .5em;
129 top: .4em;
130 }
131 }
132 > li:last-of-type {
133 &:not(.no-more):before {
134 position: absolute;
135 font-family: "FontAwesome";
Nils Diewald2488d052015-04-09 21:46:02 +0000136 content: $fa-down;
Nils Diewalda944fab2015-04-08 21:02:04 +0000137 right: .5em;
138 bottom: .4em;
139 }
140 }
141}
142
143
144/**
145 * Sorting menu
146 */
147ul.menu.sort {
148 position: relative;
149 display: inline-block;
150 > li::before {
151 content: '';
152 }
153 > li.active:hover {
154 @include choose-remove;
155 }
156
157}