-
Notifications
You must be signed in to change notification settings - Fork 0
/
org_css.css
65 lines (58 loc) · 1.31 KB
/
org_css.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
@import url('org_css_dark.css');
@import url('org_css_light.css');
.toggletheme {
z-index: 999;
position: fixed;
right: 150px;
top: 0;
--white:#fff;
transform: translate(-50%, -50%);
/* 其他样式属性 */
}
.toggletheme input[type="checkbox"] {
height: 0;
width: 0;
visibility: hidden;
}
.toggletheme label {
cursor: pointer;
text-indent: -9999px;
width: 55px;
height: 30px;
background: black;
margin: 0 auto;
display: flex;
justify-content: center;
align-items: center;
-webkit-border-radius: 100px;
-moz-border-radius: 100px;
border-radius: 100px;
position: relative;
}
.toggletheme label:after {
content: "";
background:var(--white);
width: 20px;
height: 20px;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
position: absolute;
top: 5px;
left: 4px;
transition: cubic-bezier(0.68, -0.55, 0.27, 1.55) 320ms;
}
.toggletheme input:checked + label:after {
background: black;
}
.toggletheme input:checked + label {
background: white;
}
.toggletheme input:checked + label:after {
/* left: calc(100% - 5px); */
/* -webkit-transform: translateX(-100%); */
/* -moz-transform: translateX(-100%); */
/* -ms-transform: translateX(-100%); */
/* -o-transform: translateX(-100%); */
/* transform: translateX(-100%); */
}