+
+
```
@@ -23,64 +26,19 @@
@import '../../cdb-variables/sizes';
@import '../../cdb-variables/colors';
-.CDB-CheckboxContainer {
+.CDB-Checkbox {
+ width: $baseSize * 2;
+ height: $baseSize * 2;
+ opacity: 0;
+ position: absolute;
+ z-index: 1;
+
+ ~ .CDB-CheckboxFace {
position: relative;
width: $baseSize * 2;
height: $baseSize * 2;
-
- .CDB-Checkbox {
- width: $baseSize * 2;
- height: $baseSize * 2;
- opacity: 0;
- position: absolute;
- z-index: 1;
-
- &:checked {
- ~ .CDB-CheckboxLabel {
- border: 1px solid $cBlue;
- background: $cBlue;
-
- &::before,
- &::after {
- background: $cWhite;
- }
- }
-
- &:hover ~ .CDB-CheckboxLabel {
- border: 1px solid $cBlue;
- }
- }
-
- &:focus ~ .CDB-CheckboxLabel {
- border: 1px solid $cBlue;
- }
-
- &:hover ~ .CDB-CheckboxLabel {
- border: 1px solid $cHoverLine;
- }
-
- &:disabled {
- ~ .CDB-CheckboxLabel {
- border: 1px solid $cSecondaryLine;
- background: $cThirdBackground;
-
- &::before,
- &::after {
- background: $cWhite;
- }
- }
-
- &:hover ~ .CDB-CheckboxLabel {
- border: 1px solid $cSecondaryLine;
- }
- }
- }
-
- .CDB-CheckboxLabel {
- position: absolute;
- width: $baseSize * 2;
- height: $baseSize * 2;
border: 1px solid $cMainLine;
+ background: $cWhite;
border-radius: 3px;
box-sizing: border-box;
cursor: pointer;
@@ -108,4 +66,44 @@
transform: rotate(-45deg);
}
}
+
+ &:checked {
+ ~ .CDB-CheckboxFace {
+ border: 1px solid $cBlue;
+ background: $cBlue;
+
+ &::before,
+ &::after {
+ background: $cWhite;
+ }
+ }
+
+ &:hover ~ .CDB-CheckboxFace {
+ border: 1px solid $cBlue;
+ }
+ }
+
+ &:focus ~ .CDB-CheckboxFace {
+ border: 1px solid $cBlue;
+ }
+
+ &:hover ~ .CDB-CheckboxFace {
+ border: 1px solid $cHoverLine;
+ }
+
+ &:disabled {
+ ~ .CDB-CheckboxFace {
+ border: 1px solid $cSecondaryLine;
+ background: $cThirdBackground;
+
+ &::before,
+ &::after {
+ background: $cWhite;
+ }
+ }
+
+ &:hover ~ .CDB-CheckboxFace {
+ border: 1px solid $cSecondaryLine;
+ }
+ }
}
diff --git a/src/scss/cdb-components/forms/legends.scss b/src/scss/cdb-components/forms/legends.scss
index 2b918e4..f90372b 100644
--- a/src/scss/cdb-components/forms/legends.scss
+++ b/src/scss/cdb-components/forms/legends.scss
@@ -5,26 +5,30 @@
# Forms/Labels
```
-
-
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
@@ -35,16 +39,18 @@
RADIO
diff --git a/src/scss/cdb-components/forms/radio.scss b/src/scss/cdb-components/forms/radio.scss
index a323b14..6f9d71e 100644
--- a/src/scss/cdb-components/forms/radio.scss
+++ b/src/scss/cdb-components/forms/radio.scss
@@ -1,3 +1,4 @@
+
// Radios styles
// ----------------------------------------------
@@ -5,17 +6,17 @@
# Forms/Radio
```
-