This repository was archived by the owner on Feb 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathb3scr.css
More file actions
203 lines (200 loc) · 4.96 KB
/
b3scr.css
File metadata and controls
203 lines (200 loc) · 4.96 KB
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
.checkbox input,
.checkbox-inline input,
.radio input,
.radio-inline input {
display: none;
}
.checkbox label,
.checkbox-inline,
.radio label,
.radio-inline {
padding-left: 0;
}
.checkbox .check,
.checkbox-inline .check,
.radio .check,
.radio-inline .check {
content: "";
z-index: 1;
position: relative;
top: 3px;
overflow: hidden;
display: inline-block;
width: 16px;
height: 16px;
background: #ffffff;
border: 2px solid #757575;
}
.radio .check,
.radio-inline .check {
border-radius: 100%;
}
.checkbox .check:before,
.checkbox-inline .check:before {
content: "";
position: absolute;
display: block;
width: 0;
height: 0;
margin-top: -6px;
margin-left: 4px;
transform: rotate(45deg);
}
.checkbox .check:before,
.checkbox-inline .check:before {
color: #757575;
animation: checkbox-off 0.3s forwards;
}
.radio .check:before,
.radio-inline .check:before {
content: "";
position: absolute;
display: block;
width: 10px;
height: 10px;
border-radius: 100%;
margin-top: 1px;
margin-left: 1px;
transform: scale3d(0, 0, 0);
transition-duration: 0.3s;
}
.checkbox input[type="checkbox"]:checked + .check,
.checkbox-inline input[type="checkbox"]:checked + .check,
.radio input[type="radio"]:checked + .check,
.radio-inline input[type="radio"]:checked + .check {
border-color: #5cb85c;
}
.checkbox input[type="checkbox"]:checked + .check:before,
.checkbox-inline input[type="checkbox"]:checked + .check:before {
color: #5cb85c;
box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0 0 20px, 0 32px 0 20px, -5px 5px 0 10px, 20px -12px 0 11px;
animation: checkbox-on 0.3s forwards;
}
.radio input[type="radio"]:checked + .check:before,
.radio-inline input[type="radio"]:checked + .check:before{
background-color: #5cb85c;
}
.radio input[type="radio"]:checked ~ .check:before,
.radio-inline input[type="radio"]:checked ~ .check:before{
transform: scale3d(1, 1, 1);
}
.checkbox input[type="checkbox"]:disabled + .check,
.checkbox-inline input[type="checkbox"]:disabled + .check,
.radio input[type="radio"]:disabled + .check,
.radio-inline input[type="radio"]:disabled + .check{
cursor: not-allowed;
border-color: #b0b0b0;
}
.checkbox input[type="checkbox"]:disabled + .check:before,
.checkbox-inline input[type="checkbox"]:disabled + .check:before,
.radio input[type="radio"]:disabled + .check:before,
.radio-inline input[type="radio"]:disabled + .check:before {
cursor: not-allowed;
color: #b0b0b0;
}
.radio input[type="radio"]:disabled + .check:before,
.radio-inline input[type="radio"]:disabled + .check:before {
background-color: #b0b0b0;
}
.switch * {
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-ms-user-select: none;
}
.switch label {
position: relative;
cursor: default;
font-weight: normal;
}
.switch input {
display: none;
}
.switch .toggle {
position: relative;
top: -2px;
display: inline-block;
width: 35px;
height: 22px;
}
.switch .toggle:before {
content: "";
position: relative;
display: inline-block;
width: 35px;
height: 15px;
vertical-align: middle;
background-color: #b0afaf;
border-radius: 15px;
margin: -2px 0;
transition: background 0.3s ease;
}
.switch .toggle:after {
content: "";
position: absolute;
display: inline-block;
width: 21px;
height: 21px;
background-color: #d9534f;
border-radius: 21px;
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
left: 15px;
top: 1px;
transition: left 0.3s ease, background .3s ease, box-shadow 0.1s ease;
}
.switch input:checked + .toggle:after {
left: 0;
background-color: #5cb85c;
}
.switch input:disabled + .toggle:before {
cursor: not-allowed;
background-color: #b0b0b0;
}
.switch input:disabled + .toggle:after {
cursor: not-allowed;
background-color: #b0afaf;
}
@keyframes checkbox-on {
0% {
box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0 0 20px, 0 32px 0 20px, -5px 5px 0 10px, 15px 2px 0 11px;
}
50% {
box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0 0 20px, 0 32px 0 20px, -5px 5px 0 10px, 20px 2px 0 11px;
}
100% {
box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0 0 20px, 0 32px 0 20px, -5px 5px 0 10px, 20px -12px 0 11px;
}
}
@keyframes checkbox-off {
0% {
box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0 0 20px, 0 32px 0 20px, -5px 5px 0 10px, 20px -12px 0 11px, 0 0 0 0 inset;
}
25% {
box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0 0 20px, 0 32px 0 20px, -5px 5px 0 10px, 20px -12px 0 11px, 0 0 0 0 inset;
}
50% {
width: 0;
height: 0;
margin-top: -2px;
margin-left: -2px;
box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0 0 20px, 0 32px 0 20px, -5px 5px 0 10px, 15px 2px 0 11px, 0 0 0 0 inset;
transform: rotate(45deg);
}
51% {
width: 16px;
height: 16px;
margin-top: -2px;
margin-left: -2px;
box-shadow: 0 0 0 0, 0 0 0 0, 0 0 0 0, 0 0 0 0, 0 0 0 0, 0 0 0 0, 0 0 0 10px inset;
transform: rotate(0deg);
}
100% {
width: 16px;
height: 16px;
margin-top: -2px;
margin-left: -2px;
box-shadow: 0 0 0 0, 0 0 0 0, 0 0 0 0, 0 0 0 0, 0 0 0 0, 0 0 0 0, 0 0 0 0 inset;
transform: rotate(0deg);
}
}