@kelvininc/ui-components
Version:
Kelvin UI Components
49 lines (48 loc) • 1.38 kB
CSS
/** HEADINGS **/
/** LABELS **/
/** SPANS **/
/** PARAGRAPHS **/
/** CODE/CONSOLE **/
@property --rotation {
syntax: "<angle>";
initial-value: 0deg;
inherits: false;
}
@keyframes rotate-border {
to {
--rotation: 360deg;
}
}
:host {
/**
* @prop --container-white-space: The white space strategy for the tooltip container (default: normal).
* @prop --container-max-width: The max width for the tooltip container (default: 240px).
*/
--container-white-space: normal;
--container-width: fit-content;
--container-max-width: 280px;
}
.tooltip-container {
height: fit-content;
width: var(--container-width);
max-width: var(--container-max-width);
display: inline-block;
word-wrap: break-word;
background-color: var(--kv-neutral-6, #3f3f3f);
box-shadow: 0 8px 16px -4px rgba(var(--kv-neutral-6-rgb, 63, 63, 63), 0.25), 0 0 1px 0 rgba(var(--kv-neutral-3-rgb, 221, 221, 221), 0.31);
user-select: none;
border-radius: 2px;
padding: var(--kv-spacing, 4px) var(--kv-spacing-2x, 8px);
white-space: var(--container-white-space);
}
.tooltip-container .tooltip-text {
font-family: var(--kv-primary-font, "proxima-nova", sans-serif, "Arial");
font-size: 14px;
font-weight: 600;
font-stretch: normal;
font-style: normal;
line-height: 21px;
letter-spacing: normal;
text-transform: none;
color: var(--kv-neutral-2, #e5e5e5);
}