-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
87 lines (70 loc) · 1.21 KB
/
index.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
* {
margin: 0;
padding: 0;
}
body {
font-family: 'Montserrat', sans-serif;
background-color: #3e4560;
color: white;
}
.container {
padding: 10px;
}
.title {
text-align: center;
margin: 20px;
color: #d6d5ac;
}
label {
display: block;
font-size: 20px;
margin-bottom: 10px;
}
input {
margin-bottom: 25px;
}
input[type="text"] {
padding: 5px 10px;
border-radius: 3px;
border: none;
}
.box {
height: 100px;
width: 100%;
background-color: #c6d5ac;
margin-bottom: 25px;
}
/* Display label & toggle horizontally */
/* style the toggle button as well as the inner circle using explicit sizing */
/* choose fun colors */
/* define an unselected classthat will de-emphasize the non-selected text */
.toggle {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.toggle-text {
font-size: 18px;
}
.toggle-btn {
width: 60px;
height: 30px;
background-color: gray;
border-radius: 30px;
padding: 5px;
margin: 0 10px;
}
.inner-circle {
width: 30px;
height: 30px;
background-color: #fff;
border-radius: 50%;
transition: all 200ms;
}
.toggle-btn.toggled > .inner-circle {
transform: translateX(30px);
background-color: #333;
}
.unselected {
opacity: 0.25;
}