2024-02-08 11:49:46 +03:00
|
|
|
div.m3.m3-segmented-buttons
|
2024-02-12 19:11:33 +03:00
|
|
|
padding: 0
|
|
|
|
height: 40px
|
2024-02-22 11:22:32 +03:00
|
|
|
display: flex
|
2024-02-08 11:49:46 +03:00
|
|
|
border-radius: 20px
|
2024-02-12 19:11:33 +03:00
|
|
|
box-sizing: border-box
|
2024-02-08 11:49:46 +03:00
|
|
|
|
|
|
|
& > button.m3.m3-button-segment
|
2025-04-03 10:33:23 +03:00
|
|
|
width: auto
|
2024-02-08 11:49:46 +03:00
|
|
|
height: 40px
|
2025-04-03 10:33:23 +03:00
|
|
|
padding: 10px
|
2024-02-08 23:18:34 +03:00
|
|
|
min-width: 108px
|
2024-02-12 20:55:58 +03:00
|
|
|
border-radius: 0
|
2025-04-03 10:33:23 +03:00
|
|
|
margin: 0 -0.5px
|
|
|
|
display: inline-flex
|
2024-02-12 20:55:58 +03:00
|
|
|
background-color: transparent
|
2024-02-08 23:18:34 +03:00
|
|
|
border: 1px solid var(--md-sys-color-outline)
|
2024-02-08 11:49:46 +03:00
|
|
|
|
2024-02-12 20:55:58 +03:00
|
|
|
&:first-child
|
|
|
|
border-radius: 20px 0 0 20px
|
|
|
|
|
|
|
|
&:last-child
|
|
|
|
border-radius: 0 20px 20px 0
|
2024-02-12 19:11:33 +03:00
|
|
|
|
2024-02-09 22:25:46 +03:00
|
|
|
& > span
|
|
|
|
color: var(--md-sys-color-on-surface)
|
|
|
|
|
2024-02-22 11:22:32 +03:00
|
|
|
& > svg
|
|
|
|
opacity: 0
|
|
|
|
|
|
|
|
& > text
|
|
|
|
fill: var(--md-sys-color-on-surface)
|
|
|
|
|
|
|
|
&:not(.selected)
|
|
|
|
& > svg
|
|
|
|
display: none
|
|
|
|
|
|
|
|
&::after, &::before
|
|
|
|
content: ''
|
|
|
|
width: 6px
|
|
|
|
position: relative
|
2024-02-09 22:25:46 +03:00
|
|
|
|
2024-02-13 22:31:16 +03:00
|
|
|
&:disabled
|
|
|
|
border: 1px solid color-mix(in srgb, var(--md-sys-color-outline) 12%, transparent)
|
|
|
|
|
|
|
|
& > *
|
|
|
|
opacity: 38%
|
|
|
|
|
2024-02-12 19:11:33 +03:00
|
|
|
&.selected
|
|
|
|
background-color: var(--md-sys-color-secondary-container)
|
2024-02-08 11:49:46 +03:00
|
|
|
|
2024-02-22 11:22:32 +03:00
|
|
|
& > svg
|
|
|
|
opacity: 1
|
|
|
|
|
2024-02-12 20:55:58 +03:00
|
|
|
& > span
|
|
|
|
color: var(--md-sys-color-on-secondary-container)
|
2024-02-08 11:49:46 +03:00
|
|
|
|
2024-02-12 20:55:58 +03:00
|
|
|
& > text
|
|
|
|
fill: var(--md-sys-color-on-secondary-container)
|
2024-02-09 22:16:00 +03:00
|
|
|
|
|
|
|
& > span.m3.m3-button-segment-state-layer
|
|
|
|
width: 100%
|
|
|
|
height: 100%
|
2025-04-03 10:33:23 +03:00
|
|
|
position: absolute
|
2024-02-09 22:16:00 +03:00
|
|
|
|
|
|
|
& > span.m3.m3-button-segment-state-layer, span.m3.m3-ripple-domain
|
|
|
|
transition: .2s cubic-bezier(0.2, 0, 0, 1)
|
|
|
|
|
|
|
|
&:hover
|
|
|
|
& > span.m3.m3-button-segment-state-layer
|
|
|
|
background-color: color-mix(in srgb, var(--md-sys-color-on-secondary-container) 8%, transparent)
|
|
|
|
|
|
|
|
&:is(&:active, &:focus-visible)
|
|
|
|
& > span.m3.m3-button-segment-state-layer
|
|
|
|
background-color: color-mix(in srgb, var(--md-sys-color-on-secondary-container) 12%, transparent)
|
|
|
|
|
|
|
|
&:active
|
|
|
|
& > span.m3.m3-ripple-domain > span.m3.ripple
|
|
|
|
background-color: color-mix(in srgb, var(--md-sys-color-on-secondary-container) 12%, transparent)
|