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