hensei-web/components/reps/RepSegment/index.module.scss

68 lines
1.1 KiB
SCSS

.segment {
border-radius: $card-corner;
color: $grey-55;
cursor: pointer;
font-size: 1.4rem;
font-weight: $normal;
min-width: 100px;
&:hover label {
background: var(--button-bg);
color: var(--text-primary);
.wrapper > * {
opacity: 1;
}
}
& input {
display: none;
&:checked + label {
background: var(--button-bg);
color: var(--text-primary);
.wrapper > * {
opacity: 1;
}
}
}
& label {
border-radius: $card-corner;
display: block;
font-size: $font-small;
font-weight: $medium;
text-align: center;
white-space: nowrap;
overflow: hidden;
padding: $unit;
padding-bottom: $unit * 1.5;
text-overflow: ellipsis;
cursor: pointer;
&:before {
background: #fff;
}
@include breakpoint(small-tablet) {
border-radius: 100px;
padding-bottom: $unit;
}
.wrapper {
display: flex;
flex-direction: column;
gap: $unit;
}
}
@include breakpoint(small-tablet) {
min-width: initial;
width: 100%;
.rep {
display: none;
}
}
}