blob: e8b9f414b004e042e58db5cd6ca835b0747b596a [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 }
59 &:not(.no-more):before {
60 position: absolute;
61 font-family: "FontAwesome";
62 content: '\f0de';
63 right: .5em;
64 top: .4em;
Nils Diewaldea236742015-03-26 21:55:36 +000065 }
66 }
67 &:last-of-type {
Nils Diewalda297f062015-04-02 00:23:46 +000068 border-bottom: {
69 width: $border-size;
70 left-radius: $standard-border-radius;
71 right-radius: $standard-border-radius;
72 }
73
74 &:not(.no-more):before {
75 position: absolute;
76 font-family: "FontAwesome";
77 content: '\f0dd';
78 right: .5em;
79 bottom: .4em;
Nils Diewaldea236742015-03-26 21:55:36 +000080 }
81 }
82 mark {
83 text-decoration: underline;
84 background-color: transparent;
85 color: inherit;
86 font-weight: bold;
87 }
88 }
Nils Diewalda297f062015-04-02 00:23:46 +000089 > li.active,
90 > span.pref.active {
91 @include choose-active;
Nils Diewaldea236742015-03-26 21:55:36 +000092 }
93 > li:hover,
94 > span.pref:hover {
Nils Diewalda297f062015-04-02 00:23:46 +000095 @include choose-hover;
96 }
97
98 /**
99 * Default prefix view
100 */
101 > span.pref:not(:empty) {
102 position: absolute;
103 min-width: 5px;
104 font-size: 80%;
105 left: 0;
106 bottom: 0;
107 display: block;
108 margin-bottom: -2.1em;
109 padding: 2px 6px;
110 border: {
111 radius: $standard-border-radius;
112 width: $border-size;
113 }
Nils Diewaldea236742015-03-26 21:55:36 +0000114 }
115}
116
117