forked from uiverse-io/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPradeepsaranbishnoi_slimy-warthog-37.html
72 lines (64 loc) · 1.27 KB
/
Pradeepsaranbishnoi_slimy-warthog-37.html
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
<div class="mydict">
<div>
<label>
<input type="radio" name="radio" checked="">
<span>Women</span>
</label>
<label>
<input type="radio" name="radio">
<span>Men</span>
</label>
<label>
<input type="radio" name="radio">
<span>Divided</span>
</label>
</div>
</div>
<style>
/* From Uiverse.io by Pradeepsaranbishnoi - Tags: radio */
:focus {
outline: 0;
border-color: #2260ff;
box-shadow: 0 0 0 4px #b5c9fc;
}
.mydict div {
display: flex;
flex-wrap: wrap;
margin-top: 0.5rem;
justify-content: center;
}
.mydict input[type="radio"] {
clip: rect(0 0 0 0);
clip-path: inset(100%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}
.mydict input[type="radio"]:checked + span {
box-shadow: 0 0 0 0.0625em #0043ed;
background-color: #dee7ff;
z-index: 1;
color: #0043ed;
}
label span {
display: block;
cursor: pointer;
background-color: #fff;
padding: 0.375em .75em;
position: relative;
margin-left: .0625em;
box-shadow: 0 0 0 0.0625em #b5bfd9;
letter-spacing: .05em;
color: #3e4963;
text-align: center;
transition: background-color .5s ease;
}
label:first-child span {
border-radius: .375em 0 0 .375em;
}
label:last-child span {
border-radius: 0 .375em .375em 0;
}
</style>