mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-31 17:51:46 +02:00
feat(radio): add is-dark to radio, changed inputs story
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
(2,2,0,0,0,0),
|
||||
);
|
||||
$colors: ($base-color, map-get($default-colors, "shadow"));
|
||||
$colors-radio-dark: ($color-white, map-get($default-colors, "shadow"));
|
||||
|
||||
margin-right: 20px;
|
||||
-webkit-appearance: none;
|
||||
@@ -50,4 +51,24 @@
|
||||
&:checked:focus + span::before {
|
||||
@include pixelize(2px, $radio-checked-focus, $colors);
|
||||
}
|
||||
&.is-dark {
|
||||
+ span {
|
||||
color: $color-white;
|
||||
}
|
||||
// prettier-ignore
|
||||
+ span::before { /* stylelint-disable-line no-descending-specificity */
|
||||
color: $color-white;
|
||||
}
|
||||
|
||||
&:checked + span::before {
|
||||
@include pixelize(2px, $radio-checked-focus, $colors-radio-dark);
|
||||
|
||||
color: $color-white;
|
||||
}
|
||||
&:checked:focus + span::before {
|
||||
@include pixelize(2px, $radio-checked-focus, $colors-radio-dark);
|
||||
|
||||
color: $color-white;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user