forked from 027xiguapi/code-box
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
108 lines (90 loc) · 1.58 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
* {
margin: 0;
padding: 0;
}
.hide {
display: none !important;
}
.show {
display: block !important;
}
.App {
width: 190px;
margin: 0 auto;
padding: 5px 8px;
}
.App-header .title {
margin-bottom: 0;
font-size: 18px;
}
.App-header .desc {
margin: 5px 0;
font-size: 12px;
}
.App-link {
margin-top: 10px;
margin-left: 5px;
font-size: 14px;
}
.popup .App-body {
max-height: 450px;
overflow-y: scroll;
overflow-x: hidden;
}
.App-body fieldset {
padding: 5px 8px;
}
.App-body fieldset .item {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 5px;
font-size: 12px;
}
.App-body fieldset .item textarea {
padding: 5px;
width: 140px;
}
/*开关*/
.codebox-offscreen {
display: none;
}
.codebox-switch {
position: relative;
display: inline-block;
width: 40px;
height: 20px;
background-color: #ccc;
border-radius: 20px;
transition: all 0.3s;
}
.codebox-switch::after {
content: "";
position: absolute;
width: 18px;
height: 18px;
border-radius: 18px;
background-color: #fff;
top: 1px;
left: 1px;
transition: all 0.3s;
}
input[type="checkbox"]:checked + .codebox-switch::after {
transform: translateX(20px);
}
input[type="checkbox"]:checked + .codebox-switch {
background-color: #7983ff;
}
.item.download {
cursor: pointer;
}
.item.code {
cursor: pointer;
height: 20px;
}
.item.code .codeTxt {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 105px;
}