@kelvininc/ui-components
Version:
Kelvin UI Components
63 lines (61 loc) • 1.8 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 --progress-bar-height: The height of the progress bar
* @prop --progress-bar-background-color: The color of the progress bar container
* @prop --progress-bar-filler-success-color: The color of the progress bar filler
* @prop --progress-bar-filler-error-color: The color of the progress bar filler when in error
*/
--progress-bar-height: 2px;
--progress-height: 14px;
}
.step-progress-bar-container {
display: flex;
height: var(--progress-height);
position: relative;
align-items: center;
justify-content: space-between;
}
.step-progress-bar-container .progress-bar {
width: 100%;
height: var(--progress-bar-height);
border-radius: calc(var(--progress-bar-height) / 2);
background-color: var(--progress-bar-background-color);
padding: 0 calc(var(--progress-bar-height) / 2);
}
.step-progress-bar-container .progress-bar-filler {
position: absolute;
height: var(--progress-bar-height);
background-color: var(--progress-bar-filler-success-color);
border-radius: calc(var(--progress-bar-height) / 2);
}
.step-progress-bar-container .progress-bar-filler.error {
background-color: var(--progress-bar-filler-error-color);
}
.step-progress-bar-container .steps-container {
position: absolute;
left: 0;
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
}
:host {
--progress-bar-background-color: var(--kv-neutral-6, #3f3f3f);
--progress-bar-filler-success-color: var(--kv-success, #05a357);
--progress-bar-filler-error-color: var(--kv-error, #e11900);
}