1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-09-01 02:01:56 +02:00

🎉 radiosを追加

This commit is contained in:
BcRikko
2018-11-26 09:01:32 +09:00
parent f1e9ebc8e3
commit 1a34fe4bff
12 changed files with 131 additions and 17 deletions

View File

@@ -2,3 +2,4 @@
@import "buttons.scss";
@import "containers.scss";
@import "radios.scss";

32
scss/elements/radios.scss Normal file
View File

@@ -0,0 +1,32 @@
.radio {
// prettier-ignore
$radio: (
(1,1,0,0,0,0),
(1,1,1,1,0,0),
(1,1,1,1,1,0),
(1,1,1,1,1,1),
(1,1,1,1,1,0),
(1,1,1,1,0,0),
(1,1,0,0,0,0),
);
$colors: ($base-color);
margin-right: 20px;
-webkit-appearance: none;
appearance: none;
& + span {
position: relative;
}
&:checked + span::before {
position: absolute;
top: -2px;
left: -20px;
content: "";
@include pixelize($radio, $colors, 2px);
animation: blink 1s infinite steps(1);
}
}