-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathradio.html
62 lines (56 loc) · 1.49 KB
/
radio.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
<style>
.form__radio > input {
display: none;
}
.form__radio-text {
font-size: 12px;
}
.form__radio {
user-select: none;
line-height: 1;
display: flex;
align-items: center;
}
.form__radio + .form__radio {
margin-left: 12px;
}
.form__radio input:checked ~ .form__radio-checker::before {
content: '·';
font-size: 30px;
color: red;
}
.form__radio-checker {
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
border-radius: 50%;
border: 1px dotted #000;
}
.form__group {
display: flex;
}
</style>
<div class="form__control">
<label for="sale" class="from__label label">
<span class="label__text">Super sale</span>
</label>
<div class="form__group">
<label class="form__radio" tabindex="0">
<span class="form__radio-text">One</span>
<input id="sale" type="radio" name="sale" value="asdasd">
<span class="form__radio-checker"></span>
</label>
<label class="form__radio" tabindex="0">
<span class="form__radio-text">Fore</span>
<input name="sale" type="radio">
<span class="form__radio-checker"></span>
</label>
<label class="form__radio" tabindex="0">
<span class="form__radio-text">Two</span>
<input name="sale" type="radio">
<span class="form__radio-checker"></span>
</label>
</div>
</div>