UNPKG

igniteui-webcomponents

Version:

Ignite UI for Web Components is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.

3 lines 9.46 kB
import { css } from 'lit'; export const styles = css `[part~=base]{border-radius:var(--border-radius);width:var(--size);height:var(--size)}:host([variant=flat]){--shadow-color: var(--ig-icon-button-shadow-color, transparent);--background: var(--ig-icon-button-background, transparent);--foreground: var(--ig-icon-button-foreground, hsla(var(--ig-gray-900), var(--ig-gray-a)));--hover-background: var(--ig-icon-button-hover-background, hsla(var(--ig-gray-500), 0.08));--hover-foreground: var(--ig-icon-button-hover-foreground, hsla(var(--ig-gray-900), var(--ig-gray-a)));--focus-background: var(--ig-icon-button-focus-background, hsla(var(--ig-gray-500), 0.16));--focus-foreground: var(--ig-icon-button-focus-foreground, hsla(var(--ig-gray-900), var(--ig-gray-a)));--focus-hover-background: var(--ig-icon-button-focus-hover-background, hsla(var(--ig-gray-500), 0.24));--focus-hover-foreground: var(--ig-icon-button-focus-hover-foreground, hsla(var(--ig-gray-900), var(--ig-gray-a)));--active-background: var(--ig-icon-button-active-background, hsla(var(--ig-gray-500), 0.32));--active-foreground: var(--ig-icon-button-active-foreground, hsla(var(--ig-gray-900), var(--ig-gray-a)));--border-color: var(--ig-icon-button-border-color, transparent);--focus-border-color: var(--ig-icon-button-focus-border-color, transparent);--disabled-background: var(--ig-icon-button-disabled-background, transparent);--disabled-foreground: var(--ig-icon-button-disabled-foreground, hsla(var(--ig-gray-500), var(--ig-gray-a)));--disabled-border-color: var(--ig-icon-button-disabled-border-color, transparent);--border-radius: var(--ig-icon-button-border-radius, clamp(0rem, calc(var(--ig-radius-factor, 1) * 1.25rem), 1.25rem));--size: var(--ig-icon-button-size, max(var(--is-large, 1) * max(2.25rem, -1 * 2.25rem), var(--is-medium, 1) * max(1.875rem, -1 * 1.875rem), var(--is-small, 1) * max(1.5rem, -1 * 1.5rem)));--default-size: var(--ig-icon-button-default-size, 3);--component-size: var(--ig-size, var(--default-size))}:host([variant=flat]) [part~=base]{color:var(--foreground);background:var(--background);border:.0625rem solid var(--border-color)}:host([variant=flat]) [part~=base]:hover{background:var(--hover-background);color:var(--hover-foreground)}:host([variant=flat]) [part~=base]:active{background:var(--active-background);color:var(--active-foreground)}:host([variant=flat]) [part="base focused"]{background:var(--focus-background);color:var(--focus-foreground)}:host([variant=flat]) [part="base focused"]:hover{background:var(--focus-hover-background);color:var(--focus-hover-foreground)}:host([variant=flat]) [part="base focused"]:active{background:var(--active-background);color:var(--active-foreground)}:host([variant=flat]) igc-icon{color:var(--foreground)}:host([variant=flat]) ::slotted(igc-ripple){border-radius:var(--border-radius)}:host([variant=contained]){--shadow-color: var(--ig-icon-button-shadow-color, transparent);--background: var(--ig-icon-button-background, hsla(var(--ig-gray-900), 0.08));--foreground: var(--ig-icon-button-foreground, hsla(var(--ig-gray-900), var(--ig-gray-a)));--hover-background: var(--ig-icon-button-hover-background, hsla(var(--ig-gray-900), 0.12));--hover-foreground: var(--ig-icon-button-hover-foreground, hsla(var(--ig-gray-900), var(--ig-gray-a)));--focus-background: var(--ig-icon-button-focus-background, hsla(var(--ig-gray-900), 0.16));--focus-foreground: var(--ig-icon-button-focus-foreground, hsla(var(--ig-gray-900), var(--ig-gray-a)));--focus-hover-background: var(--ig-icon-button-focus-hover-background, hsla(var(--ig-gray-900), 0.2));--focus-hover-foreground: var(--ig-icon-button-focus-hover-foreground, hsla(var(--ig-gray-900), var(--ig-gray-a)));--active-background: var(--ig-icon-button-active-background, hsla(var(--ig-gray-900), 0.24));--active-foreground: var(--ig-icon-button-active-foreground, hsla(var(--ig-gray-900), var(--ig-gray-a)));--border-color: var(--ig-icon-button-border-color, transparent);--focus-border-color: var(--ig-icon-button-focus-border-color, transparent);--disabled-background: var(--ig-icon-button-disabled-background, hsla(var(--ig-gray-900), 0.04));--disabled-foreground: var(--ig-icon-button-disabled-foreground, hsla(var(--ig-gray-500), var(--ig-gray-a)));--disabled-border-color: var(--ig-icon-button-disabled-border-color, transparent);--border-radius: var(--ig-icon-button-border-radius, clamp(0rem, calc(var(--ig-radius-factor, 1) * 1.25rem), 1.25rem));--size: var(--ig-icon-button-size, max(var(--is-large, 1) * max(2.25rem, -1 * 2.25rem), var(--is-medium, 1) * max(1.875rem, -1 * 1.875rem), var(--is-small, 1) * max(1.5rem, -1 * 1.5rem)));--default-size: var(--ig-icon-button-default-size, 3);--component-size: var(--ig-size, var(--default-size))}:host([variant=contained]) [part~=base]{background:var(--background);color:var(--foreground);border:.0625rem solid var(--border-color)}:host([variant=contained]) [part~=base]:hover{background:var(--hover-background);color:var(--hover-foreground)}:host([variant=contained]) [part~=base]:active{background:var(--active-background);color:var(--active-foreground)}:host([variant=contained]) [part="base focused"]{background:var(--focus-background);color:var(--focus-foreground)}:host([variant=contained]) [part="base focused"]:hover{background:var(--focus-hover-background);color:var(--focus-hover-foreground)}:host([variant=contained]) [part="base focused"]:active{background:var(--active-background);color:var(--active-foreground)}:host([variant=contained]) igc-icon{color:var(--foreground)}:host([variant=contained]) ::slotted(igc-ripple){border-radius:var(--border-radius)}:host([variant=outlined]){--shadow-color: var(--ig-icon-button-shadow-color, transparent);--background: var(--ig-icon-button-background, transparent);--foreground: var(--ig-icon-button-foreground, hsla(var(--ig-gray-900), var(--ig-gray-a)));--hover-background: var(--ig-icon-button-hover-background, hsla(var(--ig-gray-500), 0.08));--hover-foreground: var(--ig-icon-button-hover-foreground, hsla(var(--ig-gray-900), var(--ig-gray-a)));--focus-background: var(--ig-icon-button-focus-background, hsla(var(--ig-gray-500), 0.16));--focus-foreground: var(--ig-icon-button-focus-foreground, hsla(var(--ig-gray-900), var(--ig-gray-a)));--focus-hover-background: var(--ig-icon-button-focus-hover-background, hsla(var(--ig-gray-500), 0.24));--focus-hover-foreground: var(--ig-icon-button-focus-hover-foreground, hsla(var(--ig-gray-900), var(--ig-gray-a)));--active-background: var(--ig-icon-button-active-background, hsla(var(--ig-gray-500), 0.32));--active-foreground: var(--ig-icon-button-active-foreground, hsla(var(--ig-gray-900), var(--ig-gray-a)));--border-color: var(--ig-icon-button-border-color, hsla(var(--ig-gray-300), var(--ig-gray-a)));--focus-border-color: var(--ig-icon-button-focus-border-color, hsla(var(--ig-gray-300), var(--ig-gray-a)));--disabled-background: var(--ig-icon-button-disabled-background, transparent);--disabled-foreground: var(--ig-icon-button-disabled-foreground, hsla(var(--ig-gray-500), var(--ig-gray-a)));--disabled-border-color: var(--ig-icon-button-disabled-border-color, hsla(var(--ig-gray-300), var(--ig-gray-a)));--border-radius: var(--ig-icon-button-border-radius, clamp(0rem, calc(var(--ig-radius-factor, 1) * 1.25rem), 1.25rem));--size: var(--ig-icon-button-size, max(var(--is-large, 1) * max(2.25rem, -1 * 2.25rem), var(--is-medium, 1) * max(1.875rem, -1 * 1.875rem), var(--is-small, 1) * max(1.5rem, -1 * 1.5rem)));--default-size: var(--ig-icon-button-default-size, 3);--component-size: var(--ig-size, var(--default-size))}:host([variant=outlined]) [part~=base]{color:var(--foreground);background:var(--background);border:.0625rem solid var(--border-color)}:host([variant=outlined]) [part~=base]:hover{background:var(--hover-background);color:var(--hover-foreground)}:host([variant=outlined]) [part~=base]:active{background:var(--active-background);color:var(--active-foreground)}:host([variant=outlined]) [part="base focused"]{background:var(--focus-background);color:var(--focus-foreground);border-color:var(--focus-border-color)}:host([variant=outlined]) [part="base focused"]:hover{background:var(--focus-hover-background);color:var(--focus-hover-foreground)}:host([variant=outlined]) [part="base focused"]:active{background:var(--active-background);color:var(--active-foreground)}:host([variant=outlined]) igc-icon{color:var(--foreground)}:host([variant=outlined]) ::slotted(igc-ripple){border-radius:var(--border-radius)}:host([disabled]) [part~=base],:host(:disabled) [part~=base]{background:var(--disabled-background);color:var(--disabled-foreground);border-color:var(--disabled-border-color)}:host([disabled]) igc-icon,:host(:disabled) igc-icon{color:var(--disabled-foreground)}:host([disabled][variant=contained]) [part~=base],:host(:disabled[variant=contained]) [part~=base]{background:var(--disabled-background);color:var(--disabled-foreground);border-color:var(--disabled-border-color)}:host([disabled][variant=contained]) igc-icon,:host(:disabled[variant=contained]) igc-icon{color:var(--disabled-foreground)}:host([disabled][variant=outlined]) [part~=base],:host(:disabled[variant=outlined]) [part~=base]{background:var(--disabled-background);color:var(--disabled-foreground);border-color:var(--disabled-border-color)}:host([disabled][variant=outlined]) igc-icon,:host(:disabled[variant=outlined]) igc-icon{color:var(--disabled-foreground)}`; //# sourceMappingURL=icon-button.common.css.js.map