-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmystyles.css
88 lines (88 loc) · 1.76 KB
/
mystyles.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
.checkbox {
display: inline-block;
width: 19px;
height: 19px;
margin: 0 0 0 0;
/*layout relationship between check and label*/
}
#gpaHeader {
display: flex;
}
.switch-area {
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
margin-left: auto;
}
.toggle, .toggle:before, .slot__label, .curtain {
transition-property: background-color, transform, visibility;
transition-duration: 0.25s;
transition-timing-function: ease-in, cubic-bezier(0.6,0.2,0.4,1.5), linear;
}
.toggle:before, .slot, .slot__label {
display: block;
}
.toggle:before, .curtain {
position: absolute;
}
.toggle:checked, .curtain {
background-color: transparent;
}
.toggle:focus {
outline: transparent;
}
.toggle {
border-radius: 0.75em;
box-shadow: 0 0 0 0.1em inset;
cursor: pointer;
position: relative;
margin-right: 1.25em;
width: 3em;
height: 1.5em;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
-webkit-tap-highlight-color: transparent;
}
.toggle:before {
background: currentColor;
border-radius: 50%;
content: "";
top: 0.2em;
left: 0.2em;
width: 1.1em;
height: 1.1em;
}
.toggle:checked:before {
transform: translateX(1.5em);
}
.toggle:checked ~ .slot .slot__label, .slot__label:nth-child(2) {
transform: translateY(-50%) scaleY(0);
}
.toggle:checked ~ .slot .slot__label:nth-child(2) {
transform: translateY(-100%) scaleY(1);
}
.toggle:checked ~ .curtain {
transform: scaleX(1);
}
.slot {
display: block;
text-align: center;
line-height: 1em;
color: #393939;
font-size: 0.8em;
font-weight: normal;
letter-spacing: 0.05em;
overflow: hidden;
text-indent: 0.2em;
margin-right: 1em;
align-items: center;
margin-bottom: 0;
}
.slot__label {
transform-origin: 50% 0;
}
.slot__label:nth-child(2) {
transform-origin: 50% 100%;
}