-
Notifications
You must be signed in to change notification settings - Fork 1
/
checkebox.css
76 lines (66 loc) · 1.06 KB
/
checkebox.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
69
70
71
72
73
74
75
76
*,
*::after,
*::before {
margin: 0;
padding: 0;
}
body {
position: relative;
margin: 0;
padding: 0;
}
.body {
position: absolute;
top: 0;
left: 250px;
padding: 10px;
height: 100vh;
background: #ccc;
transition: 3s;
}
.sidemenu {
position: fixed;
top: 0;
left: 0;
width: 250px;
height: 100%;
background-color: rgba(0, 0, 0, 0.25);
transition: 2s;
}
.sidemenu label {
float: right;
margin: 10px;
font-size: 20px;
}
body input[type=checkbox] {
appearance: none;
visibility: hidden;
}
#switch:checked~.sidemenu {
width: 50px;
}
#switch:checked~.body {
transform: scale(1.2);
margin: 5% auto;
width: 70%;
}
.box {
position: relative;
width: 100%;
padding: 10px;
border-radius: 10px;
background-color: #fff;
}
input {
border: none;
background: none;
outline: none !important;
width: 30%;
border-radius: 10px;
padding: 8px;
border: 1px solid rgb(97, 97, 97);
transition: all ease 0.9s;
}
input:focus {
width: 100%;
}