Add updated scroll container to unsync lyrics
This commit is contained in:
parent
86c3e54119
commit
eeefe9d9dc
1 changed files with 17 additions and 1 deletions
|
@ -8,7 +8,23 @@ interface UnsynchronizedLyricsProps extends Omit<FullLyricsMetadata, 'lyrics'> {
|
|||
}
|
||||
|
||||
const UnsynchronizedLyricsContainer = styled.div`
|
||||
padding: 5rem 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 10vh 0 6vh;
|
||||
overflow: scroll;
|
||||
transform: translateY(-2rem);
|
||||
|
||||
mask-image: linear-gradient(
|
||||
180deg,
|
||||
transparent 5%,
|
||||
rgba(0, 0, 0, 100%) 20%,
|
||||
rgba(0, 0, 0, 100%) 85%,
|
||||
transparent 95%
|
||||
);
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
padding: 5vh 0;
|
||||
}
|
||||
`;
|
||||
|
||||
export const UnsynchronizedLyrics = ({
|
||||
|
|
Reference in a new issue