UNPKG

wix-style-react

Version:
62 lines (53 loc) 1.78 kB
@st-import [ --wds-segmented-toggle-border-radius-medium, --wds-segmented-toggle-border-radius-small, --wds-color-text-disabled, --wds-color-border-standard-secondary, --wds-color-border-standard-secondary-disabled, --wds-color-fill-standard-tertiary ] from '@wix/design-system-tokens/all.st.css'; :import { -st-from: '../Foundation/stylable/colors.st.css'; -st-named: F00, D10-30, D80, D55, B30, B40; } .root { -st-states: disabled, newColorsBranding, size(enum(small, medium));; /* Positioning */ display: flex; /* Sizing */ box-sizing: border-box; /* Border & Spacing */ border-radius: var(--wds-segmented-toggle-border-radius-medium, 6px); box-shadow: 0 0 0 1px var(--wds-color-border-standard-secondary, value(B30)); /* Styles */ background: var(--wds-color-fill-standard-tertiary, value(D80)); /* Disable native focus */ outline:none; } .root:newColorsBranding { box-shadow: 0 0 0 1px var(--wds-color-border-standard-secondary, value(B40)); } .root:size(small) { border-radius: var(--wds-segmented-toggle-border-radius-small, 6px); } .root:disabled { box-shadow: 0 0 0 1px var(--wds-color-border-standard-secondary-disabled, value(D10-30)); } .divider { -st-states: disabled, transparent; /* Sizing */ flex-basis: auto; width: 1px; min-width: 1px; background-color: var(--wds-color-border-standard-secondary, value(B30)); } .root:newColorsBranding .divider:not(:transparent) { background-color: var(--wds-color-border-standard-secondary, value(B40)); } .divider:disabled { background-color: var(--wds-color-border-standard-secondary-disabled, value(D10-30)); } .divider:transparent { background-color: transparent; } /* st-namespace-reference="../../../src/SegmentedToggle/SegmentedToggle.st.css" */