fix: 歌词页视觉效果缺陷 (#1649)

master
memorydream 3 years ago committed by GitHub
parent cb59eb94a1
commit c1efcb895c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -192,6 +192,7 @@
@click="clickLyricLine(line.time)" @click="clickLyricLine(line.time)"
@dblclick="clickLyricLine(line.time, true)" @dblclick="clickLyricLine(line.time, true)"
> >
<div class="content">
<span v-if="line.contents[0]">{{ line.contents[0] }}</span> <span v-if="line.contents[0]">{{ line.contents[0] }}</span>
<br /> <br />
<span <span
@ -204,6 +205,7 @@
> >
</div> </div>
</div> </div>
</div>
</transition> </transition>
</div> </div>
<div class="close-button" @click="toggleLyrics"> <div class="close-button" @click="toggleLyrics">
@ -697,20 +699,23 @@ export default {
&:hover { &:hover {
background: var(--color-secondary-bg-for-transparent); background: var(--color-secondary-bg-for-transparent);
} }
&:active {
.content {
transform-origin: center left;
transform: scale(0.95); transform: scale(0.95);
} transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
span { span {
opacity: 0.28; opacity: 0.28;
cursor: default; cursor: default;
font-size: 0.9em; font-size: 1em;
transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
} }
span.translation { span.translation {
opacity: 0.2; opacity: 0.2;
font-size: 0.825em; font-size: 0.925em;
}
} }
} }
@ -722,20 +727,18 @@ export default {
margin-top: 0.1em; margin-top: 0.1em;
} }
.highlight { .highlight div.content {
transform-origin: center left; transform: scale(1);
transform: scale(1.05); span {
}
.highlight span {
opacity: 0.98; opacity: 0.98;
display: inline-block; display: inline-block;
} }
.highlight span.translation { span.translation {
opacity: 0.65; opacity: 0.65;
} }
} }
}
::-webkit-scrollbar { ::-webkit-scrollbar {
display: none; display: none;

Loading…
Cancel
Save