-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrough.php
70 lines (62 loc) · 1.51 KB
/
rough.php
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
<<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Checkboxes</title>
<style>
@charset "UTF-8";
.toggler-wrapper {
display: block;
width: 45px;
height: 25px;
cursor: pointer;
position: relative;
}
.toggler-wrapper input[type="checkbox"] {
display: none;
}
.toggler-wrapper input[type="checkbox"]:checked+.toggler-slider {
background-color: #44cc66;
}
.toggler-wrapper .toggler-slider {
background-color: #ccc;
position: absolute;
border-radius: 100px;
top: 0;
left: 0;
width: 100%;
height: 100%;
-webkit-transition: all 300ms ease;
transition: all 300ms ease;
}
.toggler-wrapper .toggler-knob {
position: absolute;
-webkit-transition: all 300ms ease;
transition: all 300ms ease;
}
.toggler-wrapper.style-1 input[type="checkbox"]:checked+.toggler-slider .toggler-knob {
left: calc(100% - 19px - 3px);
}
.toggler-wrapper.style-1 .toggler-knob {
width: calc(25px - 6px);
height: calc(25px - 6px);
border-radius: 50%;
left: 3px;
top: 3px;
background-color: #fff;
}
</style>
</head>
<body>
<div>
<label class="toggler-wrapper style-1">
<input type="checkbox">
<div class="toggler-slider">
<div class="toggler-knob"></div>
</div>
</label>
<div class="badge">Style 1</div>
</div>
</body>
</html>