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 8.63 kB
import { css } from 'lit'; export const styles = css `:host{--icon-size: 1rem}[part=icon]{--size: 1rem}[part~=base]{-webkit-transition:color .15s ease-in-out,background .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:color .15s ease-in-out,box-shadow .15s ease-in-out,background .15s ease-in-out;transition:color .15s ease-in-out,box-shadow .15s ease-in-out,background .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;padding:max(var(--is-large, 1)*max(8px, -1 * 8px)*var(--ig-spacing-large, var(--ig-spacing, --ig-spacing)),var(--is-medium, 1)*max(6px, -1 * 6px)*var(--ig-spacing-medium, var(--ig-spacing, --ig-spacing)),var(--is-small, 1)*max(4px, -1 * 4px)*var(--ig-spacing-small, var(--ig-spacing, --ig-spacing)))}:host([variant=flat]){--shadow-color: var(--ig-icon-button-shadow-color, hsla(var(--ig-gray-900), 0.15));--background: var(--ig-icon-button-background, transparent);--foreground: var(--ig-icon-button-foreground, hsla(var(--ig-gray-600), var(--ig-gray-a)));--hover-background: var(--ig-icon-button-hover-background, hsla(var(--ig-gray-900), 0.05));--hover-foreground: var(--ig-icon-button-hover-foreground, hsla(var(--ig-gray-700), var(--ig-gray-a)));--focus-background: var(--ig-icon-button-focus-background, transparent);--focus-foreground: var(--ig-icon-button-focus-foreground, hsla(var(--ig-gray-600), var(--ig-gray-a)));--focus-hover-background: var(--ig-icon-button-focus-hover-background, hsla(var(--ig-gray-900), 0.05));--focus-hover-foreground: var(--ig-icon-button-focus-hover-foreground, hsla(var(--ig-gray-700), var(--ig-gray-a)));--active-background: var(--ig-icon-button-active-background, hsla(var(--ig-gray-900), 0.05));--active-foreground: var(--ig-icon-button-active-foreground, hsla(var(--ig-gray-700), var(--ig-gray-a)));--border-color: var(--ig-icon-button-border-color, transparent);--focus-border-color: var(--ig-icon-button-focus-border-color, hsla(var(--ig-gray-900), 0.15));--disabled-background: var(--ig-icon-button-disabled-background, transparent);--disabled-foreground: var(--ig-icon-button-disabled-foreground, hsla(var(--ig-gray-900), 0.2));--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) * 2.5rem), 2.5rem));--size: var(--ig-icon-button-size, max(var(--is-large, 1) * max(2rem, -1 * 2rem), var(--is-medium, 1) * max(1.75rem, -1 * 1.75rem), var(--is-small, 1) * max(1.5rem, -1 * 1.5rem)));--default-size: var(--ig-icon-button-default-size, 2);--component-size: var(--ig-size, var(--default-size))}:host([variant=flat]) [part="base focused"]{border-color:var(--border-color);-webkit-box-shadow:0 0 0 .1875rem var(--focus-border-color);box-shadow:0 0 0 .1875rem var(--focus-border-color)}:host([variant=contained]){--shadow-color: var(--ig-icon-button-shadow-color, hsla(var(--ig-primary-400), 0.5));--background: var(--ig-icon-button-background, hsla(var(--ig-primary-500), var(--ig-primary-a)));--foreground: var(--ig-icon-button-foreground, color-mix(in oklch, var(--ig-primary-500-contrast) 80%, transparent));--hover-background: var(--ig-icon-button-hover-background, hsla(var(--ig-primary-400), var(--ig-primary-a)));--hover-foreground: var(--ig-icon-button-hover-foreground, color-mix(in oklch, var(--ig-primary-500-contrast) 100%, transparent));--focus-background: var(--ig-icon-button-focus-background, hsla(var(--ig-primary-500), var(--ig-primary-a)));--focus-foreground: var(--ig-icon-button-focus-foreground, color-mix(in oklch, var(--ig-primary-500-contrast) 80%, transparent));--focus-hover-background: var(--ig-icon-button-focus-hover-background, hsla(var(--ig-primary-400), var(--ig-primary-a)));--focus-hover-foreground: var(--ig-icon-button-focus-hover-foreground, color-mix(in oklch, var(--ig-primary-500-contrast) 100%, transparent));--active-background: var(--ig-icon-button-active-background, hsla(var(--ig-primary-400), var(--ig-primary-a)));--active-foreground: var(--ig-icon-button-active-foreground, color-mix(in oklch, var(--ig-primary-500-contrast) 100%, transparent));--border-color: var(--ig-icon-button-border-color, transparent);--focus-border-color: var(--ig-icon-button-focus-border-color, hsla(var(--ig-primary-400), 0.5));--disabled-background: var(--ig-icon-button-disabled-background, hsla(var(--ig-primary-400), 0.5));--disabled-foreground: var(--ig-icon-button-disabled-foreground, color-mix(in oklch, var(--ig-primary-500-contrast) 30%, transparent));--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) * 2.5rem), 2.5rem));--size: var(--ig-icon-button-size, max(var(--is-large, 1) * max(2rem, -1 * 2rem), var(--is-medium, 1) * max(1.75rem, -1 * 1.75rem), var(--is-small, 1) * max(1.5rem, -1 * 1.5rem)));--default-size: var(--ig-icon-button-default-size, 2);--component-size: var(--ig-size, var(--default-size))}:host([variant=contained]) [part~=base]:hover igc-icon,:host([variant=contained]) [part~=base]:active igc-icon{color:var(--hover-foreground)}:host([variant=contained]) [part="base focused"]{-webkit-box-shadow:0 0 0 .1875rem var(--focus-border-color);box-shadow:0 0 0 .1875rem var(--focus-border-color)}:host([variant=outlined]){--shadow-color: var(--ig-icon-button-shadow-color, hsla(var(--ig-gray-900), 0.15));--background: var(--ig-icon-button-background, transparent);--foreground: var(--ig-icon-button-foreground, hsla(var(--ig-gray-600), var(--ig-gray-a)));--hover-background: var(--ig-icon-button-hover-background, hsla(var(--ig-gray-900), 0.05));--hover-foreground: var(--ig-icon-button-hover-foreground, hsla(var(--ig-gray-700), var(--ig-gray-a)));--focus-background: var(--ig-icon-button-focus-background, transparent);--focus-foreground: var(--ig-icon-button-focus-foreground, hsla(var(--ig-gray-600), var(--ig-gray-a)));--focus-hover-background: var(--ig-icon-button-focus-hover-background, hsla(var(--ig-gray-900), 0.05));--focus-hover-foreground: var(--ig-icon-button-focus-hover-foreground, hsla(var(--ig-gray-700), var(--ig-gray-a)));--active-background: var(--ig-icon-button-active-background, hsla(var(--ig-gray-900), 0.05));--active-foreground: var(--ig-icon-button-active-foreground, hsla(var(--ig-gray-700), var(--ig-gray-a)));--border-color: var(--ig-icon-button-border-color, hsla(var(--ig-gray-500), var(--ig-gray-a)));--focus-border-color: var(--ig-icon-button-focus-border-color, hsla(var(--ig-gray-900), 0.15));--disabled-background: var(--ig-icon-button-disabled-background, transparent);--disabled-foreground: var(--ig-icon-button-disabled-foreground, hsla(var(--ig-gray-900), 0.2));--disabled-border-color: var(--ig-icon-button-disabled-border-color, hsla(var(--ig-gray-900), 0.15));--border-radius: var(--ig-icon-button-border-radius, clamp(0rem, calc(var(--ig-radius-factor, 1) * 2.5rem), 2.5rem));--size: var(--ig-icon-button-size, max(var(--is-large, 1) * max(2rem, -1 * 2rem), var(--is-medium, 1) * max(1.75rem, -1 * 1.75rem), var(--is-small, 1) * max(1.5rem, -1 * 1.5rem)));--default-size: var(--ig-icon-button-default-size, 2);--component-size: var(--ig-size, var(--default-size))}:host([variant=outlined]) [part~=base]{border-width:.125rem}:host([variant=outlined]) [part~=base]:hover,:host([variant=outlined]) [part~=base]:active{border-color:var(--foreground)}:host([variant=outlined]) [part="base focused"]{border-color:var(--border-color);-webkit-box-shadow:0 0 0 .1875rem var(--focus-border-color);box-shadow:0 0 0 .1875rem var(--focus-border-color)}:host([variant=outlined]) [part="base focused"]:hover,:host([variant=outlined]) [part="base focused"]:active{border-color:var(--foreground)}:host([variant=outlined]) [part~=base]:hover igc-icon,:host([variant=outlined]) [part~=base]:active igc-icon,:host([variant=flat]) [part~=base]:hover igc-icon,:host([variant=flat]) [part~=base]:active igc-icon{color:var(--hover-foreground)}:host([variant=outlined]) [part="base focused"] igc-icon,:host([variant=flat]) [part="base focused"] igc-icon{color:var(--focus-foreground)}:host([variant=outlined]) [part="base focused"]:hover igc-icon,:host([variant=outlined]) [part="base focused"]:active igc-icon,:host([variant=flat]) [part="base focused"]:hover igc-icon,:host([variant=flat]) [part="base focused"]:active igc-icon{color:var(--focus-hover-foreground)}:host([disabled]) [part~=base],:host(:disabled) [part~=base]{-webkit-box-shadow:none;box-shadow:none}`; //# sourceMappingURL=icon-button.indigo.css.js.map