hensei-web/components/common/Segment/index.module.scss
Justin Edmund 4c5fb3c28d Rename all files and fix imports
* Renaming index.scss files to index.module.scss
* Changing `import from` to `import styles from`
2023-06-23 13:19:38 -07:00

42 lines
694 B
SCSS

.Segment {
color: $grey-55;
cursor: pointer;
flex-grow: 1;
font-size: 1.4rem;
font-weight: $normal;
min-width: 100px;
&:hover label {
background: var(--page-hover);
color: var(--text-primary);
}
& input {
display: none;
&:checked + label {
background: var(--background);
color: var(--text-primary);
}
}
& label {
border-radius: $unit * 3;
display: block;
text-align: center;
white-space: nowrap;
overflow: hidden;
padding: 8px 12px;
text-overflow: ellipsis;
cursor: pointer;
&:before {
background: #fff;
}
}
@include breakpoint(phone) {
min-width: initial;
width: 100%;
}
}