UNPKG

@kelvininc/ui-components

Version:
129 lines (126 loc) 3.47 kB
/** HEADINGS **/ /** LABELS **/ /** SPANS **/ /** PARAGRAPHS **/ /** TODO: CODE/CONSOLE **/ @property --rotation { syntax: "<angle>"; initial-value: 0deg; inherits: false; } @keyframes rotate-border { to { --rotation: 360deg; } } /** * Design Tokens - Auto-generated by Style Dictionary * Do not edit manually - run `pnpm tokens:build` to regenerate */ kv-dropdown-base:not(.hydrated) > [slot=list] { display: none; } :host { /** * @prop --modal-height: The modal's height in px. * @prop --modal-min-height: The modal's minimum height in px. * @prop --modal-width: The modal's width in px. * @prop --modal-min-width: The modal's minimum width in px. * @prop --modal-topbar-height: The modal's topbar height in px. * @prop --modal-topbar-text-color: The modal's text topbar color. * @prop --modal-z-index: The modal's z-index * @prop --modal-overlay-color: The modal's overlay color. * @prop --modal-background-color: The modal's background color. * @prop --modal-close-button-width: The modal's close button width * @prop --modal-close-button-height: The modal's close button height */ --modal-height: fit-content; --modal-min-height: 235px; --modal-width: fit-content; --modal-min-width: 400px; --modal-topbar-height: 50px; --modal-topbar-text-color: var(--modal-title-default); --modal-z-index: 1; --modal-overlay-color: var(--overlay-surface-opacity-80); --modal-background-color: var(--modal-background-default); --modal-close-button-width: var(--button-text-icon-size-regular); --modal-close-button-height: var(--button-text-icon-size-regular); } .modal-overlay { position: fixed; inset: 0; z-index: var(--modal-z-index); background: var(--modal-overlay-color); } .modal-container { position: absolute; overflow: auto; outline: none; top: 0; bottom: 0; left: 0; right: 0; margin: auto; width: var(--modal-width); min-width: var(--modal-min-width); height: var(--modal-height); min-height: var(--modal-min-height); border-radius: var(--modal-radius-default); background-color: var(--modal-background-color); display: flex; flex-direction: column; z-index: var(--modal-z-index); transition: width 0.3s ease-in-out, height 0.3s ease-in-out; } .modal-container .divider { content: ""; display: flex; flex: 1; height: 1px; background: var(--modal-divider-default); flex: none; } .modal-container .topbar { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--spacing-2xl); height: var(--modal-topbar-height); box-sizing: border-box; } .modal-container .topbar .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: Proxima Nova; font-weight: 400; font-size: 12px; line-height: 16px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--modal-topbar-text-color); } .modal-container .topbar .actions { display: inline-flex; align-items: center; gap: var(--spacing-xl); } .modal-container .content { display: flex; flex-direction: column; flex: 1; min-height: 0; } .modal-container .close-button { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; user-select: none; pointer-events: all; } .modal-container .close-button kv-icon { --icon-width: var(--modal-close-button-width); --icon-height: var(--modal-close-button-height); --icon-color: var(--button-text-icon-color-default); }