mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-23 18:56:29 +02:00
40 lines
764 B
SCSS
40 lines
764 B
SCSS
.radio-button-group {
|
|
display: flex;
|
|
|
|
/* Border */
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 0.25rem;
|
|
height: 2rem;
|
|
}
|
|
|
|
.radio-button-group__label {
|
|
/* Center the content */
|
|
align-items: center;
|
|
display: inline-flex;
|
|
|
|
border-right: 1px solid #d1d5db;
|
|
padding: 0.5rem;
|
|
|
|
/* For not selected radio */
|
|
background-color: transparent;
|
|
color: #ccc;
|
|
}
|
|
|
|
.radio-button-group__label:last-child {
|
|
/* Remove the right border from the last label */
|
|
border-right-color: transparent;
|
|
}
|
|
|
|
.radio-button-group__label--selected {
|
|
/* For selected radio */
|
|
background-color: #3b82f6;
|
|
color: #fff;
|
|
|
|
margin-top: -1px;
|
|
margin-bottom: -1px;
|
|
}
|
|
|
|
.radio-button-group__input {
|
|
/* Hide it */
|
|
display: none;
|
|
} |