UNPKG

wix-style-react

Version:
72 lines (58 loc) 1.25 kB
:import { -st-from: '../../Foundation/stylable/colors.st.css'; -st-named: D80, B10, A1; } :import { -st-from: '../../common/Focusable/Focusable.st.css'; -st-default: Focusable; } :import { -st-from: '../../Heading/Heading.st.css'; -st-default: Heading; } .badge { -st-extends: Focusable; position: relative; box-sizing: border-box; width: 40px; height: 18px; text-align: center; border-radius: 2px; background: value(D80); outline: 0; border: 1px solid value(A1); } .badge:focus-visible { box-shadow: 0 0 4px 2px value(B10); } .badge::before { position: absolute; top: 50%; right: -1px; box-sizing: border-box; width: 13px; height: 13px; content: ''; transform: translate(42%, -50%) rotate(-45deg); background: value(D80); outline: 0; border-right: 1px solid value(A1); border-bottom: 1px solid value(A1); border-radius: 2px; } .badge:focus-visible::before { box-shadow: 3px 3px 4px 0 value(B10); } .badgeContent { position: relative; top: -3px; display: inline-block; padding: 0 6px; } .badgeText { -st-extends: Heading; } .badgeText:appearance(H6) { color: value(A1); } /* st-namespace-reference="../../../../src/FunnelChart/FunnelBadge/FunnelBadge.st.css" */