移除多余样式
parent
d801d55c3c
commit
6aa7f2a0ee
|
@ -6,7 +6,7 @@
|
||||||
<div :class="$style.lyricSpace"></div>
|
<div :class="$style.lyricSpace"></div>
|
||||||
</div>
|
</div>
|
||||||
<transition enter-active-class="animated fadeIn" leave-active-class="animated fadeOut">
|
<transition enter-active-class="animated fadeIn" leave-active-class="animated fadeOut">
|
||||||
<div :class="[$style.lyricSelectContent, 'select', 'scroll']" v-if="isShowLrcSelectContent" @contextmenu="handleCopySelectText">
|
<div :class="[$style.lyricSelectContent, 'select', 'scroll', 'lyricSelectContent']" v-if="isShowLrcSelectContent" @contextmenu="handleCopySelectText">
|
||||||
<div v-for="(info, index) in lyric.lines" :key="index" :class="[$style.lyricSelectline, { [$style.lrcActive]: lyric.line == index }]">
|
<div v-for="(info, index) in lyric.lines" :key="index" :class="[$style.lyricSelectline, { [$style.lrcActive]: lyric.line == index }]">
|
||||||
<span>{{info.text}}</span>
|
<span>{{info.text}}</span>
|
||||||
<br v-if="info.translation"/>
|
<br v-if="info.translation"/>
|
||||||
|
|
|
@ -162,25 +162,25 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.bg {
|
// .bg {
|
||||||
position: absolute;
|
// position: absolute;
|
||||||
width: 100%;
|
// width: 100%;
|
||||||
height: 100%;
|
// height: 100%;
|
||||||
top: 0;
|
// top: 0;
|
||||||
left: 0;
|
// left: 0;
|
||||||
background-size: 110% 110%;
|
// background-size: 110% 110%;
|
||||||
filter: blur(60px);
|
// filter: blur(60px);
|
||||||
z-index: -1;
|
// z-index: -1;
|
||||||
}
|
// }
|
||||||
.bg2 {
|
// .bg2 {
|
||||||
position: absolute;
|
// position: absolute;
|
||||||
width: 100%;
|
// width: 100%;
|
||||||
height: 100%;
|
// height: 100%;
|
||||||
top: 0;
|
// top: 0;
|
||||||
left: 0;
|
// left: 0;
|
||||||
z-index: -1;
|
// z-index: -1;
|
||||||
background-color: rgba(255, 255, 255, .8);
|
// background-color: rgba(255, 255, 255, .8);
|
||||||
}
|
// }
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -299,6 +299,9 @@ export default {
|
||||||
.lyric {
|
.lyric {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
.lyricSelectContent {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.comment {
|
.comment {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
@ -346,131 +349,6 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.right {
|
|
||||||
flex: 0 0 60%;
|
|
||||||
// padding: 0 30px;
|
|
||||||
position: relative;
|
|
||||||
transition: flex-basis @transition-theme;
|
|
||||||
|
|
||||||
&:before {
|
|
||||||
position: absolute;
|
|
||||||
z-index: 1;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
content: ' ';
|
|
||||||
height: 100px;
|
|
||||||
width: 100%;
|
|
||||||
background-image: linear-gradient(0deg,rgba(255,255,255,0) 0%,@color-theme_2-background_1 95%);
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
&:after {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
content: ' ';
|
|
||||||
height: 100px;
|
|
||||||
width: 100%;
|
|
||||||
background-image: linear-gradient(-180deg,rgba(255,255,255,0) 0%,@color-theme_2-background_1 95%);
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.lyric {
|
|
||||||
text-align: center;
|
|
||||||
height: 100%;
|
|
||||||
overflow: hidden;
|
|
||||||
font-size: 16px;
|
|
||||||
cursor: grab;
|
|
||||||
&.draging {
|
|
||||||
cursor: grabbing;
|
|
||||||
}
|
|
||||||
:global {
|
|
||||||
.lrc-content {
|
|
||||||
line-height: 1.2;
|
|
||||||
margin: 16px 0;
|
|
||||||
overflow-wrap: break-word;
|
|
||||||
color: @color-player-detail-lyric;
|
|
||||||
|
|
||||||
.translation {
|
|
||||||
transition: @transition-theme !important;
|
|
||||||
transition-property: font-size, color;
|
|
||||||
font-size: .9em;
|
|
||||||
margin-top: 5px;
|
|
||||||
}
|
|
||||||
.line {
|
|
||||||
transition-property: font-size, color !important;
|
|
||||||
background: none !important;
|
|
||||||
-webkit-text-fill-color: unset;
|
|
||||||
// -webkit-text-fill-color: none !important;
|
|
||||||
}
|
|
||||||
&.active {
|
|
||||||
.line {
|
|
||||||
color: @color-theme;
|
|
||||||
}
|
|
||||||
.translation {
|
|
||||||
font-size: 1em;
|
|
||||||
color: @color-theme;
|
|
||||||
}
|
|
||||||
span {
|
|
||||||
// color: @color-theme;
|
|
||||||
font-size: 1.2em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
span {
|
|
||||||
transition: @transition-theme !important;
|
|
||||||
transition-property: font-size !important;
|
|
||||||
font-size: 1em;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-color: rgba(77, 77, 77, 0.9);
|
|
||||||
background-image: -webkit-linear-gradient(top, @color-theme, @color-theme);
|
|
||||||
-webkit-text-fill-color: transparent;
|
|
||||||
-webkit-background-clip: text;
|
|
||||||
background-size: 0 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// p {
|
|
||||||
// padding: 8px 0;
|
|
||||||
// line-height: 1.2;
|
|
||||||
// overflow-wrap: break-word;
|
|
||||||
// transition: @transition-theme !important;
|
|
||||||
// transition-property: color, font-size;
|
|
||||||
// }
|
|
||||||
// .lrc-active {
|
|
||||||
// color: @color-theme;
|
|
||||||
// font-size: 1.2em;
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
.lyricSelectContent {
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
// text-align: center;
|
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
font-size: 16px;
|
|
||||||
background-color: @color-theme_2-background_1;
|
|
||||||
z-index: 10;
|
|
||||||
color: @color-player-detail-lyric;
|
|
||||||
|
|
||||||
.lyricSelectline {
|
|
||||||
padding: 8px 0;
|
|
||||||
overflow-wrap: break-word;
|
|
||||||
transition: @transition-theme !important;
|
|
||||||
transition-property: color, font-size;
|
|
||||||
line-height: 1.3;
|
|
||||||
}
|
|
||||||
.lyricSelectlineTransition {
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
.lrc-active {
|
|
||||||
color: @color-theme;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.lyric-space {
|
|
||||||
height: 70%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.comment {
|
.comment {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -491,14 +369,6 @@ each(@themes, {
|
||||||
background-color: ~'@{color-@{value}-theme_2-background_1}';
|
background-color: ~'@{color-@{value}-theme_2-background_1}';
|
||||||
// color: ~'@{color-@{value}-theme_2-font}';
|
// color: ~'@{color-@{value}-theme_2-font}';
|
||||||
}
|
}
|
||||||
.right {
|
|
||||||
&:before {
|
|
||||||
background-image: linear-gradient(0deg,rgba(255,255,255,0) 0%,~'@{color-@{value}-theme_2-background_1}' 95%);
|
|
||||||
}
|
|
||||||
&:after {
|
|
||||||
background-image: linear-gradient(-180deg,rgba(255,255,255,0) 0%,~'@{color-@{value}-theme_2-background_1}' 95%);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.header {
|
.header {
|
||||||
&.controlBtnLeft {
|
&.controlBtnLeft {
|
||||||
.controBtn {
|
.controBtn {
|
||||||
|
@ -542,56 +412,6 @@ each(@themes, {
|
||||||
box-shadow: 0 0 4px ~'@{color-@{value}-theme-hover}';
|
box-shadow: 0 0 4px ~'@{color-@{value}-theme-hover}';
|
||||||
// border-color: ~'@{color-@{value}-theme-hover}';
|
// border-color: ~'@{color-@{value}-theme-hover}';
|
||||||
}
|
}
|
||||||
.lyric {
|
|
||||||
:global {
|
|
||||||
.lrc-content {
|
|
||||||
color: ~'@{color-@{value}-player-detail-lyric}';
|
|
||||||
|
|
||||||
&.active {
|
|
||||||
.translation {
|
|
||||||
color: ~'@{color-@{value}-player-detail-lyric-active}';
|
|
||||||
}
|
|
||||||
.line {
|
|
||||||
color: ~'@{color-@{value}-player-detail-lyric-active}';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
span {
|
|
||||||
background-color: ~'@{color-@{value}-player-detail-lyric}';
|
|
||||||
background-image: -webkit-linear-gradient(top, ~'@{color-@{value}-player-detail-lyric-active}', ~'@{color-@{value}-player-detail-lyric-active}');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// .lrc-active {
|
|
||||||
// color: ~'@{color-@{value}-theme}';
|
|
||||||
// }
|
|
||||||
.lyricSelectContent {
|
|
||||||
background-color: ~'@{color-@{value}-theme_2-background_1}';
|
|
||||||
color: ~'@{color-@{value}-player-detail-lyric}';
|
|
||||||
.lrc-active {
|
|
||||||
color: ~'@{color-@{value}-theme}';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.footerLeftControlBtns {
|
|
||||||
color: ~'@{color-@{value}-theme_2-font}';
|
|
||||||
}
|
|
||||||
.footerLeftControlBtn {
|
|
||||||
&.active {
|
|
||||||
color: ~'@{color-@{value}-theme}';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.progress {
|
|
||||||
background-color: ~'@{color-@{value}-player-progress}';
|
|
||||||
}
|
|
||||||
.progress-bar1 {
|
|
||||||
background-color: ~'@{color-@{value}-player-progress-bar1}';
|
|
||||||
}
|
|
||||||
.progress-bar2 {
|
|
||||||
background-color: ~'@{color-@{value}-player-progress-bar2}';
|
|
||||||
}
|
|
||||||
.play-btn {
|
|
||||||
color: ~'@{color-@{value}-player-detail-play-btn}';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue