-
Notifications
You must be signed in to change notification settings - Fork 0
/
mycss.css
67 lines (62 loc) · 1.24 KB
/
mycss.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
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
html, body {
width: 100%;
height: 100%;
}
.main {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.card {
text-align: center;
box-shadow: 0px 0px 3px 3px #dddddd;
height: auto;
width: 280px;
padding: 10px 15px;
border-radius: 10px;
}
.card .title {
font-size: 2em;
margin: 15px;
}
.card .form {
display: flex;
align-items: center;
justify-content: center;
}
.form label {
cursor: pointer;
}
.card .form .input-radio {
box-shadow: 0px 0px 0px 1px #6d6d6d;
font-size: 3em;
width: 25px;
height: 25px;
margin-right: 7px;
border: 4px solid #fff;
background-clip: border-box;
border-radius: 50%;
appearance: none;
transition: background-color 0.3s, box-shadow 0.3s;
}
.card .form label {
display: flex;
margin: 10px 15px;
}
.input-radio.on:checked {
box-shadow: 0px 0px 0px 4px #00eb27;
background-color: #51ff6e;
}
.input-radio.off:checked {
box-shadow: 0px 0px 0px 4px #eb0000;
background-color: #ff5151;
}