Add backdrop to progress indicator
This commit is contained in:
parent
57edddb058
commit
234bd2526a
2 changed files with 14 additions and 4 deletions
|
@ -14,5 +14,9 @@ export default function ClaimPreviewProgress(props: Props) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return <div className="claim-preview__progress" style={{ width: `${(position / duration) * 100}%` }} />;
|
return (
|
||||||
|
<div className="claim-preview__progress-section">
|
||||||
|
<div className="claim-preview__progress-bar" style={{ width: `${(position / duration) * 100}%` }} />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1115,12 +1115,18 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.claim-preview__progress {
|
$claim-preview-progress-bar-height: 5px;
|
||||||
|
|
||||||
|
.claim-preview__progress-section {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
height: 4px;
|
height: $claim-preview-progress-bar-height;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-top: 1px solid rgba(0, 0, 0, 0.2);
|
background-color: rgba(0, 0, 0, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.claim-preview__progress-bar {
|
||||||
|
height: $claim-preview-progress-bar-height;
|
||||||
background-color: var(--color-primary);
|
background-color: var(--color-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue