+
-
+
+
+
+
@@ -65,23 +77,23 @@ export default {
position: fixed;
width: 0;
+ label {
- display: block;
- position: relative;
- &:hover {
- cursor: pointer;
- }
- }
- &:focus + label {
- box-shadow: 0 0 0 2.5px $blue;
- border-radius: .5rem;
- }
- &:checked + label {
- background: $blue-100;
- box-shadow: 0 0 0 1px $blue;
- border-radius: .5rem;
- }
- + label::before {
- content: "";
+ display: block;
+ position: relative;
+ &:hover {
+ cursor: pointer;
+ }
+ }
+ &:focus + label {
+ box-shadow: 0 0 0 2.5px $blue;
+ border-radius: .5rem;
+ }
+ &:checked + label {
+ background: $blue-100;
+ box-shadow: 0 0 0 1px $blue;
+ border-radius: .5rem;
+ }
+ + label::before {
+ content: "";
position: absolute;
display: flex;
margin: 0 auto;
@@ -92,45 +104,39 @@ export default {
border: 1px solid $gray-500;
border-radius: 2px;
order: 2;
- }
- + label.checkboxTop::before {
- margin: -1.25rem 0.5rem 0 0 !important;
- }
- + label.checkboxTop::after {
- margin: -1.5rem 0.5rem 0 0 !important;
- }
- &:checked + label::before {
- background: $blue;
- }
- &:checked + label::after {
- content: '';
- position: absolute;
- margin: 3.2rem 0 0 0;
- border-left: 2px solid $white;
- border-bottom: 2px solid $white;
- height: 6px;
- width: 11px;
- transform: rotate(-45deg);
- }
- &:disabled + label {
- color: #575757;
- }
- &:disabled + label::before {
- background: #ddd;
- }
+ }
+ + label.checkboxTop::before {
+ margin: -1.25rem 0.5rem 0 0 !important;
+ }
+ + label.checkboxTop::after {
+ margin: -1.5rem 0.5rem 0 0 !important;
+ }
+ &:checked + label::before {
+ background: $blue;
+ }
+ &:checked + label::after {
+ content: '';
+ position: absolute;
+ margin: 3.2rem 0 0 0;
+ border-left: 2px solid $white;
+ border-bottom: 2px solid $white;
+ height: 6px;
+ width: 11px;
+ transform: rotate(-45deg);
+ }
}
input[type="radio"] {
+ label::before {
content: "";
- display: none;
+ display: none;
}
+ label::after {
content: "";
- display: none;
+ display: none;
}
+ label {
img {
- margin-bottom: 1rem;
+ margin-bottom: 0;
}
}
}
@@ -142,16 +148,24 @@ export default {
input[type="radio"] {
+ label::before {
content: "";
- position: relative;
- margin: 0 .5rem 0 0;
- order: 1;
+ position: relative;
+ margin: 0 .5rem 0 0;
+ order: 1;
}
&:checked + label::after {
content: '';
margin: -0.25rem 0 0 0;
left: .875rem;
}
+ + label {
+ img {
+ margin-bottom: 0;
+ }
+ }
}
}
+ &.error {
+ border: 1px solid $red !important;
+ }
}