-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathradio.css
More file actions
52 lines (46 loc) · 1.23 KB
/
radio.css
File metadata and controls
52 lines (46 loc) · 1.23 KB
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
ul.segmented {
padding: 0;
margin: 0.2em 0 1em;
border-radius: 0.7em;
background-color: rgba(0, 0, 0, 0.5);
background-clip: padding-box;
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(255, 255, 255, 0.3);
}
ul.segmented > li {
list-style-type: none;
margin: 0;
}
ul.segmented > li > input[type="radio"] {
position: absolute;
visibility: hidden;
}
ul.segmented > li > label {
display: block;
cursor: pointer;
border-radius: 0.7em;
background-clip: padding-box;
text-align: center;
padding: 0.1em 0.5em;
margin: 0;
border-top: 1px solid transparent;
margin-bottom: 1px;
color: rgba(255, 255, 255, 0.5);
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
-webkit-tap-highlight-color: rgba(0, 0, 0, 0.5);
transition: all 200ms;
}
ul.segmented > li > label:hover {
color: #FFFFFF;
}
ul.segmented > li > label:active {
background: rgba(0, 0, 0, 0.5);
color: #FFFFFF;
}
ul.segmented > li > input[type="radio"]:checked + label {
background: #E86539;
color: #FFFFFF;
border-top: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
}