UNPKG

@synergy-design-system/components

Version:

This package provides the base of the Synergy Design System as native web components. It uses [lit](https://www.lit.dev) and parts of [shoelace](https://shoelace.style/). Synergy officially supports the latest two versions of all major browsers (as define

59 lines (49 loc) 1.51 kB
// src/components/checkbox/checkbox.custom.styles.ts import { css } from "lit"; var checkbox_custom_styles_default = css` .checkbox__control { border-radius: var(--syn-input-border-radius-small); } :host([data-user-invalid]) .checkbox__control { border-color: var(--syn-input-border-color-focus-error); } /** #429: Use token for opacity */ .checkbox--disabled { opacity: var(--syn-input-disabled-opacity); } /** * Hover * Applies the hover state to the whole component */ .checkbox:not(.checkbox--checked):not(.checkbox--disabled):hover .checkbox__control { background-color: var(--syn-input-background-color-hover); border-color: var(--syn-input-border-color-hover); } /** * Checked/indeterminate + hover * Applies the hover state to the whole component */ .checkbox.checkbox--checked:not(.checkbox--disabled):hover .checkbox__control, .checkbox.checkbox--indeterminate:not(.checkbox--disabled):hover .checkbox__control { background-color: var(--syn-color-primary-900); border-color: var(--syn-color-primary-900); } .checkbox__label { line-height: var(--syn-line-height-normal); margin-inline-start: var(--syn-spacing-x-small); position: relative; } .checkbox--small .checkbox__label { top: -3px; } .checkbox--medium .checkbox__label { top: -3px; } .checkbox--large .checkbox__label { top: -2px; } `; export { checkbox_custom_styles_default }; //# sourceMappingURL=chunk.Y3LNC7J6.js.map