@mrshmllw/smores-react 2.1.0 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionDropdown/__tests__/__snapshots__/ActionDropdown.js.snap +167 -0
- package/dist/Box/__tests__/__snapshots__/Box.js.snap +20 -0
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/LegacyButton.d.ts +1 -1
- package/dist/Button/__tests__/__snapshots__/Button.js.snap +46 -0
- package/dist/Card/__tests__/__snapshots__/Card.js.snap +24 -0
- package/dist/CheckBox/CheckBox.js +1 -1
- package/dist/CheckBox/__tests__/__snapshots__/CheckBox.js.snap +20 -0
- package/dist/CheckBoxGroup/CheckBox.js +1 -1
- package/dist/CheckBoxGroup/CheckBoxGroup.d.ts +0 -1
- package/dist/CheckBoxGroup/CheckBoxGroup.js.map +1 -1
- package/dist/CheckBoxGroup/CheckBoxGroup.stories.js +0 -4
- package/dist/CheckBoxGroup/CheckBoxGroup.stories.js.map +1 -1
- package/dist/Dropdown/__tests__/__snapshots__/Dropdown.js.snap +167 -0
- package/dist/Emoji/__tests__/__snapshots__/Emoji.js.snap +20 -0
- package/dist/Icon/Container.js +9 -0
- package/dist/Icon/Container.js.map +1 -1
- package/dist/Icon/Icon.js +15 -2
- package/dist/Icon/Icon.js.map +1 -1
- package/dist/Icon/__tests__/__snapshots__/Icon.js.snap +47 -0
- package/dist/IconWrapper/IconWrapper.js +3 -7
- package/dist/IconWrapper/IconWrapper.js.map +1 -1
- package/dist/IconWrapper/__tests__/__snapshots__/IconWrapper.js.snap +121 -0
- package/dist/LabelledText/__tests__/__snapshots__/LabelledText.js.snap +57 -0
- package/dist/Loader/__tests__/__snapshots__/Loader.js.snap +53 -0
- package/dist/Message/Message.js +0 -1
- package/dist/Message/Message.js.map +1 -1
- package/dist/Message/__tests__/__snapshots__/Message.js.snap +279 -0
- package/dist/Modal/__tests__/__snapshots__/Modal.js.snap +208 -0
- package/dist/NumberInput/__tests__/__snapshots__/NumberInput.js.snap +1398 -0
- package/dist/Pagination/__tests__/__snapshots__/Pagination.js.snap +273 -0
- package/dist/RadioButton/__tests__/__snapshots__/RadioButton.js.snap +146 -0
- package/dist/Row/__tests__/__snapshots__/Row.js.snap +96 -0
- package/dist/SearchInput/__tests__/__snapshots__/SearchInput.js.snap +146 -0
- package/dist/Tag/__tests__/__snapshots__/Tag.js.snap +54 -0
- package/dist/Text/__tests__/__snapshots__/Text.js.snap +34 -0
- package/dist/TextInput/TextInput.js +5 -3
- package/dist/TextInput/TextInput.js.map +1 -1
- package/dist/TextInput/__tests__/__snapshots__/TextInput.js.snap +74 -0
- package/dist/Textarea/__tests__/__snapshots__/Textarea.js.snap +271 -0
- package/dist/Toggle/__tests__/__snapshots__/Toggle.js.snap +70 -0
- package/package.json +1 -1
@@ -0,0 +1,34 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`renders 1`] = `
|
4
|
+
.c0 {
|
5
|
+
font-size: 14px;
|
6
|
+
line-height: 23px;
|
7
|
+
font-weight: 400;
|
8
|
+
margin: 0;
|
9
|
+
padding: 0;
|
10
|
+
color: #112035;
|
11
|
+
text-align: left;
|
12
|
+
cursor: inherit;
|
13
|
+
-webkit-letter-spacing: 0.15px;
|
14
|
+
-moz-letter-spacing: 0.15px;
|
15
|
+
-ms-letter-spacing: 0.15px;
|
16
|
+
letter-spacing: 0.15px;
|
17
|
+
}
|
18
|
+
|
19
|
+
@media (min-width:768px) {
|
20
|
+
.c0 {
|
21
|
+
font-size: 16px;
|
22
|
+
line-height: 26px;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
<p
|
27
|
+
class="c0"
|
28
|
+
color="blue7"
|
29
|
+
cursor="inherit"
|
30
|
+
title=""
|
31
|
+
>
|
32
|
+
The quick brown fox jumps over the lazy dog
|
33
|
+
</p>
|
34
|
+
`;
|
@@ -8,7 +8,7 @@ export const TextInput = ({ id, className = '', type = 'text', placeholder, labe
|
|
8
8
|
label && (React.createElement(Box, { mb: outlined ? '4px' : '0px' },
|
9
9
|
React.createElement(Text, { tag: "label", color: "subtext", typo: "label", htmlFor: id }, label))),
|
10
10
|
React.createElement(Content, { value: value, outlined: outlined, error: error },
|
11
|
-
React.createElement(Input, { disabled: disabled, type: type, id: id, name: name, ref: ref, placeholder: placeholder, value: value, error: error, autoComplete: "off", onChange: (e) => {
|
11
|
+
React.createElement(Input, { disabled: disabled, type: type, id: id, name: name, ref: ref, placeholder: placeholder, value: value, error: error, outlined: outlined, autoComplete: "off", onChange: (e) => {
|
12
12
|
onChange && onChange(e.currentTarget.value);
|
13
13
|
onInputChange && onInputChange(e);
|
14
14
|
}, onBlur: (e) => {
|
@@ -24,6 +24,7 @@ const Container = styled.div `
|
|
24
24
|
const Content = styled.div `
|
25
25
|
border-bottom: 1px solid;
|
26
26
|
border-color: ${({ error }) => theme.colors[`${error ? 'error' : 'outline'}`]};
|
27
|
+
background-color: ${({ outlined }) => outlined ? 'transparent' : theme.colors['white']};
|
27
28
|
display: flex;
|
28
29
|
height: 32px;
|
29
30
|
|
@@ -36,7 +37,6 @@ const Content = styled.div `
|
|
36
37
|
`
|
37
38
|
border: 2px solid ${error ? theme.colors.error : theme.colors.outline};
|
38
39
|
border-radius: 8px;
|
39
|
-
padding: 16px 12px;
|
40
40
|
height: auto;
|
41
41
|
`}
|
42
42
|
|
@@ -48,12 +48,14 @@ const Content = styled.div `
|
|
48
48
|
`;
|
49
49
|
const Input = styled.input `
|
50
50
|
border: none;
|
51
|
+
background-color: transparent;
|
51
52
|
color: ${({ error }) => theme.colors[`${error ? 'error' : 'secondary'}`]};
|
52
53
|
font-size: 16px;
|
53
54
|
width: 100%;
|
54
55
|
outline: none;
|
55
|
-
cursor: ${({ disabled }) => (disabled ? 'not-allowed' : '
|
56
|
+
cursor: ${({ disabled }) => (disabled ? 'not-allowed' : 'initial')};
|
56
57
|
opacity: ${({ disabled }) => (disabled ? '0.5' : '1')};
|
58
|
+
padding: ${({ outlined }) => (outlined ? '17px 14px' : '1px 2px')};
|
57
59
|
|
58
60
|
&::placeholder {
|
59
61
|
color: ${theme.colors.subtext};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextInput.js","sourceRoot":"","sources":["../../src/TextInput/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmC,MAAM,OAAO,CAAA;AACvD,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAgDhC,MAAM,CAAC,MAAM,SAAS,GAAc,CAAC,EACnC,EAAE,EACF,SAAS,GAAG,EAAE,EACd,IAAI,GAAG,MAAM,EACb,WAAW,EACX,KAAK,EACL,IAAI,EACJ,KAAK,EACL,QAAQ,GAAG,KAAK,EAChB,KAAK,GAAG,KAAK,EACb,QAAQ,EACR,YAAY,EACZ,GAAG,EACH,MAAM,EACN,QAAQ,EACR,aAAa,EACb,QAAQ,GAAG,KAAK,GACjB,EAAE,EAAE,CAAC,CACJ,oBAAC,SAAS,IAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ;IACrE,KAAK,IAAI,CACR,oBAAC,GAAG,IAAC,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK;QAC/B,oBAAC,IAAI,IAAC,GAAG,EAAC,OAAO,EAAC,KAAK,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,EAAE,IACvD,KAAK,CACD,CACH,CACP;IAED,oBAAC,OAAO,IAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,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W,EAAE,CAAC;;;;YAI9D,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;aACvD,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;aAC1C,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;;;aAGtD,KAAK,CAAC,MAAM,CAAC,OAAO;;CAEhC,CAAA;AAED,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAA;;WAEjB,KAAK,CAAC,MAAM,CAAC,KAAK;;CAE5B,CAAA"}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`renders 1`] = `
|
4
|
+
.c0 {
|
5
|
+
display: -webkit-box;
|
6
|
+
display: -webkit-flex;
|
7
|
+
display: -ms-flexbox;
|
8
|
+
display: flex;
|
9
|
+
-webkit-flex-direction: column;
|
10
|
+
-ms-flex-direction: column;
|
11
|
+
flex-direction: column;
|
12
|
+
height: auto;
|
13
|
+
}
|
14
|
+
|
15
|
+
.c1 {
|
16
|
+
border-bottom: 1px solid;
|
17
|
+
border-color: #D2D2D2;
|
18
|
+
display: -webkit-box;
|
19
|
+
display: -webkit-flex;
|
20
|
+
display: -ms-flexbox;
|
21
|
+
display: flex;
|
22
|
+
height: 32px;
|
23
|
+
}
|
24
|
+
|
25
|
+
.c1:hover,
|
26
|
+
.c1:focus-within {
|
27
|
+
border-color: #9E9E9E;
|
28
|
+
}
|
29
|
+
|
30
|
+
.c2 {
|
31
|
+
border: none;
|
32
|
+
color: #000000;
|
33
|
+
font-size: 16px;
|
34
|
+
width: 100%;
|
35
|
+
outline: none;
|
36
|
+
cursor: pointer;
|
37
|
+
opacity: 1;
|
38
|
+
}
|
39
|
+
|
40
|
+
.c2::-webkit-input-placeholder {
|
41
|
+
color: #D2D2D2;
|
42
|
+
}
|
43
|
+
|
44
|
+
.c2::-moz-placeholder {
|
45
|
+
color: #D2D2D2;
|
46
|
+
}
|
47
|
+
|
48
|
+
.c2:-ms-input-placeholder {
|
49
|
+
color: #D2D2D2;
|
50
|
+
}
|
51
|
+
|
52
|
+
.c2::placeholder {
|
53
|
+
color: #D2D2D2;
|
54
|
+
}
|
55
|
+
|
56
|
+
<div
|
57
|
+
class="c0"
|
58
|
+
>
|
59
|
+
<div
|
60
|
+
class="c1"
|
61
|
+
value=""
|
62
|
+
>
|
63
|
+
<input
|
64
|
+
autocomplete="off"
|
65
|
+
class="c2"
|
66
|
+
id="textInput"
|
67
|
+
name="textInput"
|
68
|
+
placeholder="Placeholder"
|
69
|
+
type="text"
|
70
|
+
value=""
|
71
|
+
/>
|
72
|
+
</div>
|
73
|
+
</div>
|
74
|
+
`;
|
@@ -0,0 +1,271 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`disabled 1`] = `
|
4
|
+
.c1 {
|
5
|
+
font-size: 8px;
|
6
|
+
line-height: 100%;
|
7
|
+
font-weight: 700;
|
8
|
+
text-transform: uppercase;
|
9
|
+
-webkit-letter-spacing: 0.75px;
|
10
|
+
-moz-letter-spacing: 0.75px;
|
11
|
+
-ms-letter-spacing: 0.75px;
|
12
|
+
letter-spacing: 0.75px;
|
13
|
+
margin: 0;
|
14
|
+
padding: 0;
|
15
|
+
color: #AEAEAE;
|
16
|
+
text-align: left;
|
17
|
+
cursor: inherit;
|
18
|
+
-webkit-letter-spacing: 0.15px;
|
19
|
+
-moz-letter-spacing: 0.15px;
|
20
|
+
-ms-letter-spacing: 0.15px;
|
21
|
+
letter-spacing: 0.15px;
|
22
|
+
}
|
23
|
+
|
24
|
+
.c0 {
|
25
|
+
display: -webkit-box;
|
26
|
+
display: -webkit-flex;
|
27
|
+
display: -ms-flexbox;
|
28
|
+
display: flex;
|
29
|
+
-webkit-flex-direction: column;
|
30
|
+
-ms-flex-direction: column;
|
31
|
+
flex-direction: column;
|
32
|
+
}
|
33
|
+
|
34
|
+
.c2 {
|
35
|
+
font-size: 16px;
|
36
|
+
line-height: 20px;
|
37
|
+
background: #ffffff;
|
38
|
+
border: 1px solid #E5E5E5;
|
39
|
+
box-sizing: border-box;
|
40
|
+
border-radius: 8px;
|
41
|
+
width: 100%;
|
42
|
+
padding: 16px;
|
43
|
+
color: #112035;
|
44
|
+
resize: both;
|
45
|
+
cursor: not-allowed;
|
46
|
+
opacity: 0.5;
|
47
|
+
border-color: #D2D2D2;
|
48
|
+
}
|
49
|
+
|
50
|
+
.c2:hover {
|
51
|
+
border-color: #9E9E9E;
|
52
|
+
}
|
53
|
+
|
54
|
+
.c2:focus {
|
55
|
+
border-color: #545E7E;
|
56
|
+
}
|
57
|
+
|
58
|
+
@media (min-width:768px) {
|
59
|
+
.c1 {
|
60
|
+
font-size: 10px;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
<div
|
65
|
+
class="c0"
|
66
|
+
direction="column"
|
67
|
+
>
|
68
|
+
<label
|
69
|
+
class="c1"
|
70
|
+
color="grey5"
|
71
|
+
cursor="inherit"
|
72
|
+
title=""
|
73
|
+
>
|
74
|
+
Textarea label
|
75
|
+
</label>
|
76
|
+
<div
|
77
|
+
class="c0"
|
78
|
+
direction="column"
|
79
|
+
>
|
80
|
+
<textarea
|
81
|
+
class="c2"
|
82
|
+
disabled=""
|
83
|
+
id="textarea_id"
|
84
|
+
placeholder="Placeholder text!"
|
85
|
+
/>
|
86
|
+
</div>
|
87
|
+
</div>
|
88
|
+
`;
|
89
|
+
|
90
|
+
exports[`renders 1`] = `
|
91
|
+
.c1 {
|
92
|
+
font-size: 8px;
|
93
|
+
line-height: 100%;
|
94
|
+
font-weight: 700;
|
95
|
+
text-transform: uppercase;
|
96
|
+
-webkit-letter-spacing: 0.75px;
|
97
|
+
-moz-letter-spacing: 0.75px;
|
98
|
+
-ms-letter-spacing: 0.75px;
|
99
|
+
letter-spacing: 0.75px;
|
100
|
+
margin: 0;
|
101
|
+
padding: 0;
|
102
|
+
color: #AEAEAE;
|
103
|
+
text-align: left;
|
104
|
+
cursor: inherit;
|
105
|
+
-webkit-letter-spacing: 0.15px;
|
106
|
+
-moz-letter-spacing: 0.15px;
|
107
|
+
-ms-letter-spacing: 0.15px;
|
108
|
+
letter-spacing: 0.15px;
|
109
|
+
}
|
110
|
+
|
111
|
+
.c0 {
|
112
|
+
display: -webkit-box;
|
113
|
+
display: -webkit-flex;
|
114
|
+
display: -ms-flexbox;
|
115
|
+
display: flex;
|
116
|
+
-webkit-flex-direction: column;
|
117
|
+
-ms-flex-direction: column;
|
118
|
+
flex-direction: column;
|
119
|
+
}
|
120
|
+
|
121
|
+
.c2 {
|
122
|
+
font-size: 16px;
|
123
|
+
line-height: 20px;
|
124
|
+
background: #ffffff;
|
125
|
+
border: 1px solid #E5E5E5;
|
126
|
+
box-sizing: border-box;
|
127
|
+
border-radius: 8px;
|
128
|
+
width: 100%;
|
129
|
+
padding: 16px;
|
130
|
+
color: #112035;
|
131
|
+
resize: both;
|
132
|
+
cursor: pointer;
|
133
|
+
opacity: 1;
|
134
|
+
border-color: #D2D2D2;
|
135
|
+
}
|
136
|
+
|
137
|
+
.c2:hover {
|
138
|
+
border-color: #9E9E9E;
|
139
|
+
}
|
140
|
+
|
141
|
+
.c2:focus {
|
142
|
+
border-color: #545E7E;
|
143
|
+
}
|
144
|
+
|
145
|
+
@media (min-width:768px) {
|
146
|
+
.c1 {
|
147
|
+
font-size: 10px;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
<div
|
152
|
+
class="c0 Textarea"
|
153
|
+
direction="column"
|
154
|
+
>
|
155
|
+
<label
|
156
|
+
class="c1"
|
157
|
+
color="grey5"
|
158
|
+
cursor="inherit"
|
159
|
+
title=""
|
160
|
+
>
|
161
|
+
Textarea label
|
162
|
+
</label>
|
163
|
+
<div
|
164
|
+
class="c0"
|
165
|
+
direction="column"
|
166
|
+
>
|
167
|
+
<textarea
|
168
|
+
class="c2"
|
169
|
+
id="textarea_id"
|
170
|
+
placeholder="Placeholder text!"
|
171
|
+
/>
|
172
|
+
</div>
|
173
|
+
</div>
|
174
|
+
`;
|
175
|
+
|
176
|
+
exports[`renders with error 1`] = `
|
177
|
+
.c1 {
|
178
|
+
font-size: 8px;
|
179
|
+
line-height: 100%;
|
180
|
+
font-weight: 700;
|
181
|
+
text-transform: uppercase;
|
182
|
+
-webkit-letter-spacing: 0.75px;
|
183
|
+
-moz-letter-spacing: 0.75px;
|
184
|
+
-ms-letter-spacing: 0.75px;
|
185
|
+
letter-spacing: 0.75px;
|
186
|
+
margin: 0;
|
187
|
+
padding: 0;
|
188
|
+
color: #AEAEAE;
|
189
|
+
text-align: left;
|
190
|
+
cursor: inherit;
|
191
|
+
-webkit-letter-spacing: 0.15px;
|
192
|
+
-moz-letter-spacing: 0.15px;
|
193
|
+
-ms-letter-spacing: 0.15px;
|
194
|
+
letter-spacing: 0.15px;
|
195
|
+
}
|
196
|
+
|
197
|
+
.c0 {
|
198
|
+
display: -webkit-box;
|
199
|
+
display: -webkit-flex;
|
200
|
+
display: -ms-flexbox;
|
201
|
+
display: flex;
|
202
|
+
-webkit-flex-direction: column;
|
203
|
+
-ms-flex-direction: column;
|
204
|
+
flex-direction: column;
|
205
|
+
}
|
206
|
+
|
207
|
+
.c2 {
|
208
|
+
font-size: 16px;
|
209
|
+
line-height: 20px;
|
210
|
+
background: #ffffff;
|
211
|
+
border: 1px solid #E5E5E5;
|
212
|
+
box-sizing: border-box;
|
213
|
+
border-radius: 8px;
|
214
|
+
width: 100%;
|
215
|
+
padding: 16px;
|
216
|
+
color: #112035;
|
217
|
+
resize: both;
|
218
|
+
cursor: pointer;
|
219
|
+
opacity: 1;
|
220
|
+
border-color: #B52525;
|
221
|
+
}
|
222
|
+
|
223
|
+
.c2:hover {
|
224
|
+
border-color: #B52525;
|
225
|
+
}
|
226
|
+
|
227
|
+
.c2:focus {
|
228
|
+
border-color: #B52525;
|
229
|
+
}
|
230
|
+
|
231
|
+
.c3 {
|
232
|
+
margin-top: 7px;
|
233
|
+
font-size: 12px;
|
234
|
+
color: #B52525;
|
235
|
+
}
|
236
|
+
|
237
|
+
@media (min-width:768px) {
|
238
|
+
.c1 {
|
239
|
+
font-size: 10px;
|
240
|
+
}
|
241
|
+
}
|
242
|
+
|
243
|
+
<div
|
244
|
+
class="c0"
|
245
|
+
direction="column"
|
246
|
+
>
|
247
|
+
<label
|
248
|
+
class="c1"
|
249
|
+
color="grey5"
|
250
|
+
cursor="inherit"
|
251
|
+
title=""
|
252
|
+
>
|
253
|
+
Textarea label
|
254
|
+
</label>
|
255
|
+
<div
|
256
|
+
class="c0"
|
257
|
+
direction="column"
|
258
|
+
>
|
259
|
+
<textarea
|
260
|
+
class="c2"
|
261
|
+
id="textarea_id"
|
262
|
+
placeholder="Placeholder text!"
|
263
|
+
/>
|
264
|
+
</div>
|
265
|
+
<span
|
266
|
+
class="c3"
|
267
|
+
>
|
268
|
+
Something really quite terrible has gone wrong here!
|
269
|
+
</span>
|
270
|
+
</div>
|
271
|
+
`;
|
@@ -0,0 +1,70 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`renders 1`] = `
|
4
|
+
.c0 {
|
5
|
+
position: relative;
|
6
|
+
display: inline-block;
|
7
|
+
width: 50px;
|
8
|
+
height: 32px;
|
9
|
+
}
|
10
|
+
|
11
|
+
.c0 input {
|
12
|
+
opacity: 0;
|
13
|
+
width: 0;
|
14
|
+
height: 0;
|
15
|
+
}
|
16
|
+
|
17
|
+
.c3 {
|
18
|
+
position: absolute;
|
19
|
+
cursor: pointer;
|
20
|
+
top: 0;
|
21
|
+
left: 0;
|
22
|
+
right: 0;
|
23
|
+
bottom: 0;
|
24
|
+
background-color: #E5E5E5;
|
25
|
+
border: 1px solid;
|
26
|
+
border-color: #D2D2D2;
|
27
|
+
border-radius: 28px;
|
28
|
+
-webkit-transition: 0.2s background-color border-color;
|
29
|
+
transition: 0.2s background-color border-color;
|
30
|
+
outline: none;
|
31
|
+
}
|
32
|
+
|
33
|
+
.c3:before {
|
34
|
+
position: absolute;
|
35
|
+
content: '';
|
36
|
+
height: 24px;
|
37
|
+
width: 24px;
|
38
|
+
left: 3px;
|
39
|
+
bottom: 3px;
|
40
|
+
background-color: #ffffff;
|
41
|
+
-webkit-transition: 0.2s -webkit-transform;
|
42
|
+
-webkit-transition: 0.2s transform;
|
43
|
+
transition: 0.2s transform;
|
44
|
+
border-radius: 50%;
|
45
|
+
}
|
46
|
+
|
47
|
+
.c1:checked + .c2 {
|
48
|
+
background-color: #4CB99F;
|
49
|
+
border: 1px solid;
|
50
|
+
border-color: #469389;
|
51
|
+
}
|
52
|
+
|
53
|
+
.c1:checked + .c2:before {
|
54
|
+
-webkit-transform: translateX(18px);
|
55
|
+
-ms-transform: translateX(18px);
|
56
|
+
transform: translateX(18px);
|
57
|
+
}
|
58
|
+
|
59
|
+
<label
|
60
|
+
class="c0"
|
61
|
+
>
|
62
|
+
<input
|
63
|
+
class="c1"
|
64
|
+
type="checkbox"
|
65
|
+
/>
|
66
|
+
<span
|
67
|
+
class="c2 c3"
|
68
|
+
/>
|
69
|
+
</label>
|
70
|
+
`;
|