-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathTimeZoneToggle.scss
More file actions
49 lines (43 loc) · 714 Bytes
/
TimeZoneToggle.scss
File metadata and controls
49 lines (43 loc) · 714 Bytes
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
.container {
display: inline-block;
cursor: pointer;
height: 30px;
line-height: 30px;
}
.switch {
position: relative;
display: flex;
align-items: center;
width: 50px;
height: 18px;
border-radius: 12px;
margin: 6px 8px 0 8px;
}
.option {
position: absolute;
width: 30px;
text-align: center;
color: white;
font-size: 10px;
z-index: 1;
line-height: 18px;
}
.left .option {
left: 18px;
}
.right .option {
left: 2px;
}
.slider {
position: absolute;
width: 16px;
height: 16px;
background: white;
border-radius: 50%;
left: 2px;
transition: transform 0.15s ease-out;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.right .slider {
transform: translateX(30px);
}