feat: add subtitle support #337
This commit is contained in:
20 files changed
+4958
-4755
No files matched your search
@@ -1,5 +1,5 @@
|
||||
.audio {
|
||||
&-hidden{
|
||||
&-hidden {
|
||||
transform: translateY(-100%);
|
||||
}
|
||||
&-info {
|
||||
@@ -43,29 +43,68 @@
|
||||
gap: 1em;
|
||||
}
|
||||
}
|
||||
&-queue{
|
||||
&-queue {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
align-items: center;
|
||||
gap: 1em;
|
||||
margin-top: 2em;
|
||||
&-track{
|
||||
&-track {
|
||||
display: grid;
|
||||
grid-template-columns: 3em 1fr 6em;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
gap: 1em;
|
||||
&-info-name{
|
||||
&-info-name {
|
||||
transition: $transition-time-fast;
|
||||
}
|
||||
&.active{
|
||||
.audio-queue-track-info-name{
|
||||
&.active {
|
||||
.audio-queue-track-info-name {
|
||||
color: $clr-accent-default;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&-lyrics {
|
||||
max-height: 40vh;
|
||||
overflow:visible;
|
||||
background: rgb(255 255 255 / 0.05);
|
||||
// border: 1px solid rgb(255 255 255 / 0.2);
|
||||
padding: 2em;
|
||||
position: relative;
|
||||
margin-bottom: 2em;
|
||||
border-radius: 20px;
|
||||
&-line {
|
||||
width: fit-content;
|
||||
white-space: wrap;
|
||||
text-align: center;
|
||||
font-size: 1.5em;
|
||||
opacity: 0.5;
|
||||
transform: scale(1);
|
||||
transition: transform $transition-time-default;
|
||||
&[data-active-lyric="true"] {
|
||||
opacity: 1;
|
||||
transform: scale(1.2);
|
||||
}
|
||||
}
|
||||
&[data-has-synced-lyrics="false"] {
|
||||
.audio-lyrics-line {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
&-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow-y: scroll;
|
||||
height: calc(40vh - 4em);
|
||||
width: 100%;
|
||||
overflow-x: visible !important;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user