| .container { | |
| display: flex; | |
| flex-direction: row; | |
| } | |
| .group { | |
| display: inline-block; | |
| label { | |
| position: relative; | |
| display: inline-flex; | |
| justify-content: center; | |
| align-items: center; | |
| padding: 0 1.25rem; | |
| margin: 0; | |
| border: 0.0625rem solid var(--text-secondary); | |
| border-right: none; | |
| height: 2.25rem; | |
| line-height: 2.25rem; | |
| font-size: 0.9375rem; | |
| text-decoration: none; | |
| color: var(--text-secondary); | |
| white-space: nowrap; | |
| cursor: pointer; | |
| &:hover { | |
| border-color: var(--text-hover-secondary); | |
| color: var(--text-hover-secondary); | |
| } | |
| } | |
| &:first-child label { | |
| border-radius: 1.125rem 0 0 1.125rem; | |
| } | |
| &:last-child label { | |
| border-radius: 0 1.125rem 1.125rem 0; | |
| border-right: 0.0625rem solid var(--text-secondary); | |
| } | |
| input:checked + label { | |
| color: #fff; | |
| background-color: var(--text-secondary); | |
| &:hover { | |
| border-color: var(--text-hover-secondary); | |
| background: var(--text-hover-secondary); | |
| color: #fff; | |
| } | |
| } | |
| } | |