59 lines
1.3 KiB
SCSS
59 lines
1.3 KiB
SCSS
.radiogroup {
|
|
&.radio-list-button {
|
|
input[type="radio"] {
|
|
opacity: 0;
|
|
position: fixed;
|
|
width: 0;
|
|
&:focus-visible + label {
|
|
box-shadow: 0 0 0 2px $blue;
|
|
}
|
|
&:focus + label {
|
|
box-shadow: 0 0 0 2px $blue;
|
|
}
|
|
&:checked + label {
|
|
background: $blue-100;
|
|
box-shadow: 0 0 0 1px $blue;
|
|
}
|
|
}
|
|
label {
|
|
position: relative;
|
|
background: $white;
|
|
height: 3rem;
|
|
transition: all 150ms linear;
|
|
border-radius: $border-radius-lg;
|
|
border: 1px solid $gray-500;
|
|
width: 100%;
|
|
&:hover {
|
|
box-shadow: 0 0 0 4px $blue-100;
|
|
cursor: pointer;
|
|
}
|
|
+ p {
|
|
display: none;
|
|
}
|
|
&.error {
|
|
border: 1px solid $danger;
|
|
+ p {
|
|
display: flex;
|
|
color: $danger;
|
|
}
|
|
}
|
|
&.button-loader {
|
|
padding: 0 40px 0 12px;
|
|
&:after {
|
|
content: url(../../assets/img/icons/button-spinner-blue.svg);
|
|
position: absolute;
|
|
right: 14px;
|
|
width: 16px;
|
|
height: 16px;
|
|
margin-left: 12px;
|
|
animation: rotation 1s infinite linear;
|
|
@keyframes rotation {
|
|
100% {
|
|
transform:rotate(360deg);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|