blob: 2c3f24d29b8e3ad03b91ef821f6e50771a9d3382 [file] [log] [blame]
Nils Diewaldea236742015-03-26 21:55:36 +00001@charset "utf-8";
Nils Diewalda297f062015-04-02 00:23:46 +00002@import "util";
Nils Diewaldea236742015-03-26 21:55:36 +00003
Nils Diewalda297f062015-04-02 00:23:46 +00004$border-size: 2px;
Nils Diewaldea236742015-03-26 21:55:36 +00005
6/**
7 * Menu list - used nearly everywhere
8 */
Nils Diewaldea236742015-03-26 21:55:36 +00009ul.menu,
10ul.menu > span.pref:not(:empty) {
11 box-sizing: border-box;
12 text-shadow: none;
13 font-weight: normal;
14 // Pagination border?
Nils Diewalda297f062015-04-02 00:23:46 +000015
16 z-index: 7000;
Nils Diewaldea236742015-03-26 21:55:36 +000017}
18
19ul.menu > li,
20ul.menu > span.pref:not(:empty) {
Nils Diewalda297f062015-04-02 00:23:46 +000021 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;
Nils Diewaldea236742015-03-26 21:55:36 +000029 cursor: pointer;
30 padding: 3px 10px;
31 white-space: normal;
32}
33
34ul.menu > li,
35ul.menu > span.pref:not(.active) {
Nils Diewalda297f062015-04-02 00:23:46 +000036 @include choose-item;
Nils Diewaldea236742015-03-26 21:55:36 +000037}
38
Nils Diewaldea236742015-03-26 21:55:36 +000039ul.menu {
Nils Diewalda297f062015-04-02 00:23:46 +000040 position: absolute;
41 padding: 0;
42 margin: 0;
43 text-indent: 0;
44 list-style-type: none;
45 list-style-position: outside;
46
47 /**
48 * List items
49 */
Nils Diewaldea236742015-03-26 21:55:36 +000050 > li {
Nils Diewalda297f062015-04-02 00:23:46 +000051 padding-right: 1.6em;
52
Nils Diewaldea236742015-03-26 21:55:36 +000053 &:first-of-type {
Nils Diewalda297f062015-04-02 00:23:46 +000054 border-top: {
55 width: $border-size;
56 left-radius: $standard-border-radius;
57 right-radius: $standard-border-radius;
58 }
Nils Diewaldea236742015-03-26 21:55:36 +000059 }
60 &:last-of-type {
Nils Diewalda297f062015-04-02 00:23:46 +000061 border-bottom: {
62 width: $border-size;
63 left-radius: $standard-border-radius;
64 right-radius: $standard-border-radius;
65 }
Nils Diewaldea236742015-03-26 21:55:36 +000066 }
67 mark {
68 text-decoration: underline;
69 background-color: transparent;
70 color: inherit;
71 font-weight: bold;
72 }
73 }
Nils Diewalda297f062015-04-02 00:23:46 +000074 > li.active,
75 > span.pref.active {
76 @include choose-active;
Nils Diewaldea236742015-03-26 21:55:36 +000077 }
78 > li:hover,
79 > span.pref:hover {
Nils Diewalda297f062015-04-02 00:23:46 +000080 @include choose-hover;
81 }
82
83 /**
84 * Default prefix view
85 */
86 > span.pref:not(:empty) {
87 position: absolute;
88 min-width: 5px;
89 font-size: 80%;
90 left: 0;
91 bottom: 0;
92 display: block;
93 margin-bottom: -2.1em;
94 padding: 2px 6px;
95 border: {
96 radius: $standard-border-radius;
97 width: $border-size;
98 }
Nils Diewaldea236742015-03-26 21:55:36 +000099 }
100}
101
Nils Diewald58141332015-04-07 16:18:45 +0000102/**
103 * Rolling menu
104 */
105ul.menu.roll {
106 > li:first-of-type {
107 &:not(.no-more):before {
108 position: absolute;
109 font-family: "FontAwesome";
110 content: '\f0de';
111 right: .5em;
112 top: .4em;
113 }
114 }
115 > li:last-of-type {
116 &:not(.no-more):before {
117 position: absolute;
118 font-family: "FontAwesome";
119 content: '\f0dd';
120 right: .5em;
121 bottom: .4em;
122 }
123 }
124}
Nils Diewaldea236742015-03-26 21:55:36 +0000125
Nils Diewald58141332015-04-07 16:18:45 +0000126
127/**
128 * Sorting menu
129 */
130ul.menu.sort {
131 position: relative;
132 display: inline-block;
133 > li::before {
134 content: '';
135 }
136 > li.active:hover {
137 @include choose-remove;
138 }
139
140}