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

👍 ラジオボタンを追加

This commit is contained in:
BcRikko
2018-09-25 08:11:41 +09:00
parent a0fc4e3633
commit 6941522121
8 changed files with 133 additions and 4 deletions

View File

@@ -3,3 +3,4 @@
@import "reset.scss";
@import "variables.scss";
@import "generic.scss";
@import "animation.scss";

9
scss/base/animation.scss Normal file
View File

@@ -0,0 +1,9 @@
@keyframes blink {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
}

View File

@@ -2,4 +2,5 @@
@import "title.scss";
@import "button.scss";
@import "radio.scss";
@import "container.scss";

44
scss/elements/radio.scss Normal file
View File

@@ -0,0 +1,44 @@
.radios {
display: flex;
align-items: center;
justify-content: flex-start;
&:not(:last-child) {
margin-bottom: 1.5rem;
}
> label {
display: flex;
cursor: pointer;
&:not(:last-child) {
margin-right: 1rem;
}
> .radio[type="radio"] {
margin-right: 0.3rem;
vertical-align: middle;
cursor: pointer;
visibility: hidden;
&::before {
visibility: visible;
content: "";
animation: blink 1s infinite steps(1);
}
&:checked::before {
content: "\203A";
}
}
}
&.-columns {
flex-direction: column;
align-items: flex-start;
> label:not(:last-child) {
margin-bottom: 0.5rem;
}
}
}