-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
88 lines (75 loc) · 1.49 KB
/
style.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
77
78
79
80
81
82
83
84
85
86
87
88
html,
body {
height: 100%;
}
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
@font-face {
font-family: "Fira Code";
font-weight: 700;
src: url("FiraCode-Bold.ttf") format("truetype");
}
@font-face {
font-family: "Fira Code";
font-weight: 400;
src: url("FiraCode-Regular.ttf") format("truetype");
}
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
h1 {
font-family: "Fira Code", monospace;
font-weight: 700;
margin: 2rem;
}
h1 span {
color: #f55;
font-weight: 400;
}
.ios-switch {
display: flex;
flex-direction: row;
align-items: center;
margin: 10px 0;
}
.ios-switch .switch-body {
background-color: #ddd;
border: solid 1px gray;
width: 96px;
border-radius: 999px;
box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.1);
transition: all 0.25s ease;
}
.ios-switch .switch-body .toggle {
width: 48px;
height: 48px;
background-color: white;
border-radius: 50%;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
border: solid 1px gray;
box-sizing: border-box;
transition: all 0.4s ease;
}
.ios-switch.active .switch-body {
background-color: #51d88a;
}
.ios-switch.active .switch-body .toggle {
transform: translateX(100%);
}
.ios-switch label {
font-size: 28px;
font-weight: bold;
margin-left: 20px;
font-family: sans-serif;
}
.ios-switch input[type="checkbox"] {
display: none;
}