@@ -26,6 +26,66 @@ $checkbox-bg-selected: $tc-dark-blue;
26
26
}
27
27
}
28
28
29
+ .tc-checkbox {
30
+ height : $checkbox-size ;
31
+ width : $checkbox-size ;
32
+ margin-bottom : 125px ;
33
+ position : absolute ;
34
+ display : inline-block ;
35
+ bottom : 0 ;
36
+
37
+ @include upto-sm {
38
+ margin-bottom : 10px ;
39
+ }
40
+
41
+ input [type = checkbox ] {
42
+ display : none ;
43
+ }
44
+
45
+ label {
46
+ cursor : pointer !important ;
47
+ position : absolute !important ;
48
+ display : inline-block !important ;
49
+ width : $checkbox-size !important ;
50
+ height : $checkbox-size !important ;
51
+ top : 0 !important ;
52
+ left : 0 !important ;
53
+ border-radius : $corner-radius !important ;
54
+ box-shadow : none !important ;
55
+ border : 1px solid $tc-gray-50 !important ;
56
+ background : $tc-gray-neutral-light !important ;
57
+
58
+ & ::after {
59
+ opacity : 0 ;
60
+ content : ' ' ;
61
+ position : absolute ;
62
+ width : 13px ;
63
+ height : 7px ;
64
+ background : transparent ;
65
+ top : 4px ;
66
+ left : 3px ;
67
+ border : 3px solid $tc-dark-blue ;
68
+ border-top : none ;
69
+ border-right : none ;
70
+ transform : rotate (-45deg );
71
+ }
72
+
73
+ & :hover ::after {
74
+ opacity : 0.3 ;
75
+ }
76
+ }
77
+
78
+ input [type = checkbox ]:checked ~ label {
79
+ background : $checkbox-bg-selected ;
80
+ border-color : $checkbox-bg-selected ;
81
+ }
82
+
83
+ input [type = checkbox ]:checked + label ::after {
84
+ opacity : 1 ;
85
+ border-color : $tc-white ;
86
+ }
87
+ }
88
+
29
89
.form-container-default {
30
90
@include form-container-default ;
31
91
@@ -117,23 +177,6 @@ $checkbox-bg-selected: $tc-dark-blue;
117
177
padding-bottom : 10px ;
118
178
}
119
179
120
- label {
121
- @include roboto-medium ;
122
-
123
- display : block ;
124
- font-size : 12px ;
125
- line-height : 15px ;
126
- font-weight : 500 ;
127
- color : $tc-gray-80 ;
128
- margin-bottom : 5px ;
129
-
130
- .text-required {
131
- font-size : 10px ;
132
- color : $tc-red-110 ;
133
- margin-left : 5px ;
134
- }
135
- }
136
-
137
180
.date-input {
138
181
display : flex ;
139
182
align-items : center ;
@@ -244,66 +287,6 @@ $checkbox-bg-selected: $tc-dark-blue;
244
287
}
245
288
}
246
289
247
- .tc-checkbox {
248
- height : $checkbox-size ;
249
- width : $checkbox-size ;
250
- margin-bottom : 125px ;
251
- position : absolute ;
252
- display : inline-block ;
253
- bottom : 0 ;
254
-
255
- @include upto-sm {
256
- margin-bottom : 10px ;
257
- }
258
-
259
- input [type = checkbox ] {
260
- display : none ;
261
- }
262
-
263
- label {
264
- cursor : pointer ;
265
- position : absolute ;
266
- display : inline-block ;
267
- width : $checkbox-size ;
268
- height : $checkbox-size ;
269
- top : 0 ;
270
- left : 0 ;
271
- border-radius : $corner-radius ;
272
- box-shadow : none ;
273
- border : 1px solid $tc-gray-50 ;
274
- background : $tc-gray-neutral-light ;
275
-
276
- & ::after {
277
- opacity : 0 ;
278
- content : ' ' ;
279
- position : absolute ;
280
- width : 13px ;
281
- height : 7px ;
282
- background : transparent ;
283
- top : 4px ;
284
- left : 3px ;
285
- border : 3px solid $tc-dark-blue ;
286
- border-top : none ;
287
- border-right : none ;
288
- transform : rotate (-45deg );
289
- }
290
-
291
- & :hover ::after {
292
- opacity : 0.3 ;
293
- }
294
- }
295
-
296
- input [type = checkbox ]:checked ~ label {
297
- background : $checkbox-bg-selected ;
298
- border-color : $checkbox-bg-selected ;
299
- }
300
-
301
- input [type = checkbox ]:checked + label ::after {
302
- opacity : 1 ;
303
- border-color : $tc-white ;
304
- }
305
- }
306
-
307
290
.work-container {
308
291
display : flex ;
309
292
flex-direction : column ;
0 commit comments