-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.css
110 lines (109 loc) · 1.99 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
body {
font-family: sans-serif;
background: #eeeeee;
}
.wrapper {
margin: 1em auto;
text-align: left;
}
.sample {
border: 1px solid #eeeeee;
background: #ffffff;
max-width: 30em;
padding: 1em;
margin-bottom: 1em;
}
.custom-select {
position: relative;
}
.select-css {
display: block;
font-size: 1em;
font-family: sans-serif;
font-weight: 700;
color: #444;
line-height: 1.3;
padding: .6em 1.4em .5em .8em;
width: 100%;
max-width: 100%;
box-sizing: border-box;
margin: 0;
border: 1px solid #aaa;
box-shadow: 0 1px 0 1px rgba(0,0,0,.04);
border-radius: .25em;
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
background-color: #fff;
position: relative;
z-index: 10;
}
.select-css::-ms-expand {
display: none;
}
.select-css:hover {
border-color: #888;
}
.select-css:focus {
border: 2px dashed blue;
color: #222;
outline: none;
}
.custom-select-icons {
position: absolute;
top: 0.5em;
right: 0.5em;
z-index: 20;
border: 1px solid white;
background: transparent;
}
.custom-select-options {
border: 1px solid #aaa;
border-radius: 0 0 0.25em .25em;
line-height: 1.5;
margin: 0;
margin-top: -0.5em;
padding: 0;
list-style-type: none;
font-weight:normal;
cursor: pointer;
z-index: 2;
position: absolute;
width: calc(100% - 1px);
background-color: #ffffff;
}
.custom-select-options li {
padding: 1em;
}
.custom-select-options li:hover {
background: blue;
color: #fff;
border: 1px solid blue;
border-width: 0 0 0 1px;
}
.custom-select-options li:focus {
border: 2px dashed blue;
}
.icon {
fill: ButtonText;
pointer-events: none;
}
@media screen and (-ms-high-contrast: active) {
.icon {
fill: ButtonText;
}
}
.hidden-all {
display: none;
}
.hidden-visually {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
overflow: hidden;
clip: rect(0,0,0,0);
white-space: nowrap;
-webkit-clip-path: inset(50%);
clip-path: inset(50%);
border: 0;}