mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-17 01:56:35 +00:00
Merge pull request #485 from Stremio/feature-progress-bar-opacity
Feature progress bar opacity
This commit is contained in:
commit
3cf71c66fd
2 changed files with 11 additions and 1 deletions
|
|
@ -85,6 +85,7 @@ const MetaItem = React.memo(({ className, type, name, poster, posterShape, playI
|
|||
progress > 0 ?
|
||||
<div className={styles['progress-bar-layer']}>
|
||||
<div className={styles['progress-bar']} style={{ width: `${Math.max(0, Math.min(1, progress)) * 100}%` }} />
|
||||
<div className={styles['progress-bar-background']} />
|
||||
</div>
|
||||
:
|
||||
null
|
||||
|
|
|
|||
|
|
@ -126,7 +126,6 @@
|
|||
right: 1rem;
|
||||
height: 0.45rem;
|
||||
border-radius: 0.45rem;
|
||||
background-color: var(--overlay-color);
|
||||
overflow: hidden;
|
||||
|
||||
.progress-bar {
|
||||
|
|
@ -134,6 +133,16 @@
|
|||
height: 100%;
|
||||
background-color: var(--primary-foreground-color);
|
||||
}
|
||||
|
||||
.progress-bar-background {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: var(--primary-foreground-color);
|
||||
opacity: 0.3;
|
||||
}
|
||||
}
|
||||
|
||||
.new-videos {
|
||||
|
|
|
|||
Loading…
Reference in a new issue