/*!
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
// This file uses uncommon vendor prefixes not covered by our compilers
// sass-lint:disable no-vendor-prefixes
.ouiProgress {
position: relative;
overflow: hidden;
background-color: $ouiColorLightShade;
}
// Progress bars come in different sizes.
$ouiProgressSizes: (
xs: $ouiSizeXS / 2,
s: $ouiSizeXS,
m: $ouiSizeS,
l: $ouiSize,
);
@each $name, $size in $ouiProgressSizes {
.ouiProgress--#{$name} {
height: $size;
}
}
// https://css-tricks.com/html5-progress-element/
// Good resource if you need to work in here. There's some gotchas with
// dealing with cross-browser progress bars.
.ouiProgress--native {
display: block;
width: 100%;
appearance: none;
border: none;
&::-webkit-progress-bar {
background-color: $ouiColorLightShade;
}
&::-webkit-progress-value {
transition: width $ouiAnimSpeedNormal linear;
}
&::-moz-progress-bar {
transition: width $ouiAnimSpeedNormal linear;
}
}
/**
* An indeterminate bar has an unreliable end time. Because of a Firefox animation issue,
* we apply this style to a
instead of a