@synergy-design-system/components
Version:
This package provides the base of the Synergy Design System as native web components. It uses [lit](https://www.lit.dev) and parts of [shoelace](https://shoelace.style/). Synergy officially supports the latest two versions of all major browsers (as define
92 lines (81 loc) • 2.01 kB
JavaScript
// src/components/progress-bar/progress-bar.styles.ts
import { css } from "lit";
var progress_bar_styles_default = css`
/* stylelint-disable */
:host {
--height: 1rem;
--track-color: var(--syn-color-neutral-200);
--indicator-color: var(--syn-color-primary-600);
--label-color: var(--syn-color-neutral-0);
display: block;
}
.progress-bar {
position: relative;
background-color: var(--track-color);
height: var(--height);
border-radius: var(--syn-border-radius-pill);
box-shadow: inset var(--syn-shadow-small);
overflow: hidden;
}
.progress-bar__indicator {
height: 100%;
font-family: var(--syn-font-sans);
font-size: 12px;
font-weight: var(--syn-font-weight-normal);
background-color: var(--indicator-color);
color: var(--label-color);
text-align: center;
line-height: var(--height);
white-space: nowrap;
overflow: hidden;
transition:
400ms width,
400ms background-color;
user-select: none;
-webkit-user-select: none;
}
/* Indeterminate */
.progress-bar--indeterminate .progress-bar__indicator {
position: absolute;
animation: indeterminate 2.5s infinite cubic-bezier(0.37, 0, 0.63, 1);
}
.progress-bar--indeterminate.progress-bar--rtl .progress-bar__indicator {
animation-name: indeterminate-rtl;
}
@media (forced-colors: active) {
.progress-bar {
outline: solid 1px SelectedItem;
background-color: var(--syn-color-neutral-0);
}
.progress-bar__indicator {
outline: solid 1px SelectedItem;
background-color: SelectedItem;
}
}
@keyframes indeterminate {
0% {
left: -50%;
width: 50%;
}
75%,
100% {
left: 100%;
width: 50%;
}
}
@keyframes indeterminate-rtl {
0% {
right: -50%;
width: 50%;
}
75%,
100% {
right: 100%;
width: 50%;
}
}
`;
export {
progress_bar_styles_default
};
//# sourceMappingURL=chunk.QUM76UHV.js.map