@kelvininc/ui-components
Version:
Kelvin UI Components
89 lines • 2.12 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 --tab-item-icon-size: The size of tab navigation icon;
* @prop --tab-item-icon-color: The color of tab navigation icon;
*/
height: inherit;
}
:host .tab-item-container {
height: 100%;
display: flex;
align-items: center;
padding: 0 var(--kv-spacing-6x, 24px);
user-select: none;
white-space: nowrap;
cursor: pointer;
}
:host .tab-item-container.selected .label {
color: var(--kv-text, #fff);
}
:host .tab-item-container.disabled {
cursor: not-allowed;
pointer-events: none;
}
:host .tab-item-container.disabled .label {
color: var(--kv-text-step-5, #707070);
}
:host .tab-item-container .label {
font-family: var(--kv-primary-font, "proxima-nova", sans-serif, "Arial");
font-size: 16px;
font-weight: 600;
font-stretch: normal;
font-style: normal;
line-height: 24px;
letter-spacing: normal;
text-transform: none;
color: var(--kv-text-step-4, #bebebe);
}
:host .tab-item-container.small {
margin: 0 var(--kv-spacing-4x, 16px);
}
:host .tab-item-container.small .label {
font-family: var(--kv-primary-font, "proxima-nova", sans-serif, "Arial");
font-size: 12px;
font-weight: 600;
font-stretch: normal;
font-style: normal;
line-height: 18px;
letter-spacing: normal;
text-transform: none;
}
:host .tab-item-container .icon {
margin-left: var(--kv-spacing, 4px);
}
:host .tab-item-container .icon kv-icon {
--icon-width: var(--tab-item-icon-size, 16px);
--icon-height: var(--tab-item-icon-size, 16px);
--icon-color: var(--tab-item-icon-color, var(--kv-text, #fff));
}
:host .tab-item-container .notification-dot {
width: 6px;
height: 6px;
border-radius: 50%;
margin-left: var(--kv-spacing-2x, 8px);
background-color: var(--kv-error, #e11900);
animation: circleGrow 0.25s;
}
@keyframes circleGrow {
from {
transform: scale(0);
}
to {
transform: scale(1);
}
}