@kelvininc/ui-components
Version:
Kelvin UI Components
128 lines (127 loc) • 3.09 kB
CSS
/** HEADINGS **/
/** LABELS **/
/** SPANS **/
/** PARAGRAPHS **/
/** CODE/CONSOLE **/
@property --rotation {
syntax: "<angle>";
initial-value: 0deg;
inherits: false;
}
@keyframes rotate-border {
to {
--rotation: 360deg;
}
}
/** HEADINGS **/
/** LABELS **/
/** SPANS **/
/** PARAGRAPHS **/
/** CODE/CONSOLE **/
@property --rotation {
syntax: "<angle>";
initial-value: 0deg;
inherits: false;
}
@keyframes rotate-border {
to {
--rotation: 360deg;
}
}
.summary-card-container {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
box-sizing: border-box;
display: flex;
flex-direction: column;
width: 124px;
height: 110px;
padding: var(--kv-spacing-4x, 16px) var(--kv-spacing-2x, 8px);
border: solid 1px var(--kv-neutral-4, #bebebe);
border-radius: 4px;
}
.summary-card-container .label,
.summary-card-container .subtitle,
.summary-card-container .description {
user-select: none;
transition: all 0.5s ease-out;
}
.summary-card-container .label {
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;
margin-bottom: var(--kv-spacing, 4px);
color: var(--kv-text, #fff);
}
.summary-card-container .label.number {
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;
}
.summary-card-container .subtitle {
font-family: var(--kv-primary-font, "proxima-nova", sans-serif, "Arial");
font-size: 14px;
font-weight: 400;
font-stretch: normal;
font-style: normal;
line-height: 21px;
letter-spacing: normal;
text-transform: none;
color: var(--kv-text, #fff);
}
.summary-card-container .description {
font-family: var(--kv-primary-font, "proxima-nova", sans-serif, "Arial");
font-size: 12px;
font-weight: 400;
font-stretch: normal;
font-style: normal;
line-height: 18px;
letter-spacing: normal;
text-transform: none;
color: var(--kv-text-step-3, #ddd);
}
.summary-card-container.loading .label,
.summary-card-container.loading .subtitle,
.summary-card-container.loading .description {
height: 12px;
}
.summary-card-container.loading .label {
margin-top: 6px;
width: 36px;
}
.summary-card-container.loading .subtitle {
margin-top: 14px;
width: 60px;
}
.summary-card-container.loading .description {
margin-top: 3px;
width: 70px;
}
.loading .label,
.loading .subtitle,
.loading .description {
background: linear-gradient(90deg, rgba(var(--kv-neutral-7-rgb, 42, 42, 42), 0.3) 0%, var(--kv-neutral-7, #2a2a2a) 50%, rgba(var(--kv-neutral-7-rgb, 42, 42, 42), 0.3) 100%);
background-size: 200%;
animation: ghostGradientAnimation 0.8s infinite ease-out;
transition: all 1s ease-in;
border-radius: 4px;
}
@keyframes ghostGradientAnimation {
0% {
background-position: -100% 0;
}
100% {
background-position: 100% 0;
}
}