#31 : Update colors, set reversed progress indicator
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
/**
|
||||
* Progress value
|
||||
*/
|
||||
export let value = 0.5
|
||||
export let value = 0
|
||||
|
||||
$: width = Math.min(value * MAX_PERCENT, MAX_PERCENT)
|
||||
$: width = Math.max(value * MAX_PERCENT, 0)
|
||||
</script>
|
||||
|
||||
<div
|
||||
@@ -20,8 +20,11 @@
|
||||
></div>
|
||||
|
||||
<style>
|
||||
:root {
|
||||
--sc-color-hex-dark-50p: rgba(30, 30, 30, 0.5)
|
||||
}
|
||||
.sc-carousel-progress__indicator {
|
||||
height: 100%;
|
||||
background-color: gray;
|
||||
background-color: var(--sc-color-hex-dark-50p);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user