-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
137 lines (114 loc) · 2.57 KB
/
index.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
/** @define Select; weak */
:root {
--Select-color: black;
--Select-focus-color: var(--Select-color);
--Select-disabled-opacity: 0.5;
}
.Select {
position: relative;
}
/**
* The <select> element
*
* 1. Allow overriding the iOS user-agent and hide native arrow in Firefox 35+
* 2. Can't be changed from `normal` in Firefox
* 3. Truncate text
*/
.Select-control {
appearance: none; /* 1 */
background: transparent;
border: 1px solid var(--Select-color);
border-radius: 0;
box-sizing: border-box;
color: var(--Select-color);
cursor: pointer;
font: inherit;
line-height: normal !important; /* 2 */
overflow: hidden; /* 3 */
padding: 1em 2em 1em 1em;
text-overflow: ellipsis; /* 3 */
white-space: nowrap; /* 3 */
width: 100%;
}
/**
* The arrow figure. It's optional and can be any element of choice
*/
.Select-figure {
cursor: pointer;
height: 1em;
pointer-events: none;
position: absolute;
right: 1em;
top: 50%;
transform: translateY(-50%);
width: 1em;
}
/**
* Remove excess padding and border in Firefox
*/
.Select-control::-moz-focus-inner {
border: 0;
padding: 0;
}
/**
* Normalize disable state cross-browsers
*/
.Select.is-disabled .Select-control {
color: var(--Select-color);
cursor: default;
opacity: 1;
}
.Select.is-disabled,
.Select:not(.is-disabled) .Select-control:disabled {
opacity: var(--Select-disabled-opacity);
}
/**
* Work around for a Firefox/IE bug where changing background color
* results in a loss of the default focus styles.
*/
.Select-control:focus {
color: var(--Select-focus-color);
outline: 1px dotted #212121;
outline: 5px auto -webkit-focus-ring-color;
}
/**
* Hide redundant text outline in Firefox
*/
.Select-control:-moz-focusring {
color: transparent !important;
text-shadow: 0 0 0 var(--Select-focus-color) !important;
}
/**
* Fallback to native arrow in IE<10, Opera < 9.6, and Firefox<35.
* The double selector makes sure it wins over extended theming.
*/
.Select.Select .Select-figure {
display: none\9;
}
x:-o-prefocus,
.Select.Select .Select-figure {
display: none;
}
_:-moz-tree-row(hover),
.Select.Select .Select-figure {
display: none;
}
@supports (filter: blur(0)) {
_:-moz-tree-row(hover),
.Select.Select .Select-figure {
display: block;
}
}
/**
* Remove the native arrow and the blue background in IE 10/11+
*/
@media screen and (-ms-high-contrast: active),
(-ms-high-contrast: none) {
.Select-control::-ms-expand {
display: none;
}
.Select-control:focus::-ms-value {
background: transparent;
color: var(--Select-focus-color);
}
}