@ni/spright-components
Version:
NI Spright Components
28 lines (23 loc) • 722 B
JavaScript
import { css } from '@ni/fast-element';
import { bodyDisabledFontColor, bodyFont, bodyFontColor, borderHoverColor, borderRgbPartialColor } from '@ni/nimble-components/dist/esm/theme-provider/design-tokens';
import { display } from '../utilities/style/display';
export const styles = css `
${display('inline-block')}
:host {
border: 2px solid ${borderHoverColor};
}
:host(:hover) {
border-width: 4px;
}
:host([disabled]) {
border-color: rgba(${borderRgbPartialColor}, 0.2);
}
slot {
font: ${bodyFont};
color: ${bodyFontColor};
}
:host([disabled]) slot {
color: ${bodyDisabledFontColor};
}
`;
//# sourceMappingURL=styles.js.map