UNPKG

@kelvininc/ui-components

Version:
77 lines (75 loc) 2.48 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 --background-color: Background color. * @prop --min-height: Minimum height of the relative time picker. */ --background-color: var(--background-container-elevated-slider); --min-height: 233px; } .relative-time-container { display: flex; flex-direction: column; width: 328px; /* stylelint-disable-next-line csstools/value-no-unknown-custom-properties -- vars defined by parent component */ max-height: var(--max-height); background-color: var(--background-color); } .relative-time-container .relative-time-selector { /* stylelint-disable-next-line csstools/value-no-unknown-custom-properties -- vars defined by parent component */ padding: var(--padding-size) 0; display: flex; flex-direction: column; /* stylelint-disable-next-line csstools/value-no-unknown-custom-properties -- vars defined by parent component */ gap: var(--group-gap); overflow: auto; min-height: var(--min-height); } .relative-time-container .relative-time-selector::-webkit-scrollbar { width: 15px; height: 15px; } .relative-time-container .relative-time-selector::-webkit-scrollbar-thumb { border-radius: 10px; background-color: var(--scrollbar-thumb-default); border: 4px solid transparent; background-clip: content-box; } .relative-time-container .relative-time-selector::-webkit-scrollbar-corner { background-color: transparent; } .relative-time-container .relative-time-selector kv-time-picker-select-option { /* stylelint-disable-next-line csstools/value-no-unknown-custom-properties -- vars defined by parent component */ --time-picker-select-option-height: var(--option-height); } .relative-time-container .relative-time-selector--has-scroll kv-time-picker-select-option { --time-picker-select-option-padding: 0 var(--spacing-xs) 0 var(--spacing-2xl); } .relative-time-container .selectable { border-top: 1px solid var(--slider-border-color-default); padding: var(--spacing-xs) 0; } .relative-time-container .selectable kv-single-select-dropdown { --dropdown-max-height: 210px; }