-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.css
68 lines (59 loc) · 1.09 KB
/
example.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
body {
box-sizing: border-box;
max-width: 90vw;
margin: auto;
padding: 4vh 0;
}
.selext {
float: left;
width: 100%;
position: relative;
}
.selext--label {
border: 1px solid #333;
padding: 10px 25px;
display: inline-block;
width: 300px;
box-sizing: border-box;
cursor:pointer;
}
.selext--list {
margin: 0;
padding: 0;
list-style: none;
display: block;
width: 300px;
border-left: 1px solid #333;
border-bottom: 1px solid #333;
border-right: 1px solid #333;
box-sizing: border-box;
padding: 0 15px;
overflow:hidden;
}
.selext--item {
float: left;
width: 100%;
padding: 5px 10px;
transition:all 0.35s ease-out;
background-color:white;
box-sizing: border-box;
cursor: pointer;
}
.selext--item[selected]{
font-weight:bold;
}
.selext--item:hover{
background-color: #f5f3f3;
transition:all 0.15s ease;
}
.selext--button {
position: absolute;
top: 0;
right: 0;
}
.selext[dropdown="closed"] .selext--list{
height:0;
}
.selext[dropdown="opened"] .selext--list{
height:auto;
}