54 lines
909 B
SCSS
54 lines
909 B
SCSS
/* CUSTOM RADIO BOXES */
|
|
/* Completely replaces native radiobox */
|
|
|
|
.radio-group {
|
|
display: flex;
|
|
}
|
|
|
|
.radio-group__option {
|
|
min-width: 30px;
|
|
}
|
|
|
|
.radio {
|
|
position: relative;
|
|
display: inline-block;
|
|
|
|
[type="radio"] {
|
|
position: fixed;
|
|
top: -1px;
|
|
left: -1px;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
height: 48px;
|
|
min-width: 48px;
|
|
padding: 0 7px;
|
|
background-color: #f3f3f3;
|
|
box-shadow: inset 0 1px 2px 1px rgba(50, 50, 50, 0.05);
|
|
border: 2px solid var(--color-primary);
|
|
color: var(--color-font);
|
|
cursor: pointer;
|
|
}
|
|
|
|
:checked + label {
|
|
background-color: #dedede;
|
|
}
|
|
|
|
:focus + label {
|
|
border-color: #3273dc;
|
|
box-shadow: 0 0 0.125em 0 rgba(50,115,220,0.8);
|
|
outline: 0;
|
|
}
|
|
|
|
[disabled] + label {
|
|
pointer-events: none;
|
|
border: none;
|
|
opacity: 0.6;
|
|
filter: grayscale(1);
|
|
}
|
|
}
|