/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/ui/src/v2/components/segmented-control-v2.css
80 строк
2 KB
Aarav Sareen
feat(app): update all components to use v2 tokens (#33598)
24 июн 2026, 08:33
Не верифицирован
24 июн 2026, 08:33
8aff7b8
Код
Авторство
О чём код?
[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(--v2-background-bg-layer-01); border: none; border-radius: 6px; box-shadow: 0 0 0 0.5px var(--v2-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-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(--v2-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(--v2-border-border-focus); outline-offset: 1px; z-index: 2; } [data-slot="segmented-control-v2-item"]:where([data-pressed]) { background: var(--v2-background-bg-base); color: var(--v2-text-text-base); box-shadow: 0 0 0 0.5px var(--v2-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; }