82 lines
1.8 KiB
CSS
82 lines
1.8 KiB
CSS
[data-slot="segmented-control-v2"].segmented-control-v2--full-width {
|
|
width: 100%;
|
|
}
|
|
|
|
[data-slot="segmented-control-v2"] {
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
padding: 0;
|
|
width: 232px;
|
|
max-width: 100%;
|
|
height: 28px;
|
|
background: var(--background-bg-layer-01);
|
|
border: none;
|
|
border-radius: 6px;
|
|
box-shadow: 0 0 0 0.5px var(--border-border-base);
|
|
flex: none;
|
|
}
|
|
|
|
[data-slot="segmented-control-v2-item"] {
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 0 12px;
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
height: 28px;
|
|
margin: 0;
|
|
border: none;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
cursor: pointer;
|
|
font-family: var(--font-family-sans), var(--sans);
|
|
font-style: normal;
|
|
font-weight: 440;
|
|
font-size: 13px;
|
|
line-height: 100%;
|
|
letter-spacing: -0.04px;
|
|
font-variant-numeric: tabular-nums;
|
|
font-variation-settings: "slnt" 0;
|
|
color: var(--text-text-muted);
|
|
transition:
|
|
background-color 0.12s ease,
|
|
color 0.12s ease,
|
|
box-shadow 0.12s ease;
|
|
}
|
|
|
|
[data-slot="segmented-control-v2-item"]:where(:disabled) {
|
|
cursor: not-allowed;
|
|
opacity: 0.45;
|
|
}
|
|
|
|
[data-slot="segmented-control-v2-item"]:where(:focus-visible) {
|
|
outline: 2px solid var(--border-border-focus);
|
|
outline-offset: 1px;
|
|
z-index: 2;
|
|
}
|
|
|
|
[data-slot="segmented-control-v2-item"]:where([data-pressed]) {
|
|
background: var(--background-bg-base);
|
|
color: var(--text-text-base);
|
|
box-shadow: 0 0 0 0.5px var(--border-border-strong);
|
|
z-index: 1;
|
|
}
|
|
|
|
[data-slot="segmented-control-v2-item-label"] {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 0;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|