编辑歌曲信息界面优化

remotes/origin/HEAD
邴新科 2 years ago
parent d567e9f136
commit 820b98afed

@ -4,16 +4,6 @@ label {
line-height: 1.2; line-height: 1.2;
display: block; display: block;
} }
.item-desc {
color: #aaa;
font-size: small;
display: block;
line-height: 1.2;
margin-top: 0.2em;
}
.item-desc a {
color: #aaa;
}
form >>> input { form >>> input {
font-family: 'Courier New', Courier, monospace; font-family: 'Courier New', Courier, monospace;
@ -39,7 +29,7 @@ form >>> input {
</el-form-item> </el-form-item>
</label> </label>
<p class="item-desc"> <p class="tip">
下载该加密文件的 JOOX 应用所记录的设备唯一识别码 下载该加密文件的 JOOX 应用所记录的设备唯一识别码
<br /> <br />
参见 参见

@ -1,24 +1,4 @@
<style scoped> <style scoped>
label {
cursor: pointer;
line-height: 1.2;
display: block;
}
.item-desc {
color: #aaa;
font-size: small;
display: block;
line-height: 1.2;
margin-top: 0.2em;
}
.item-desc a {
color: #aaa;
}
form >>> input {
font-family: 'Courier New', Courier, monospace;
}
* >>> .um-edit-dialog { * >>> .um-edit-dialog {
max-width: 90%; max-width: 90%;
width: 30em; width: 30em;
@ -29,57 +9,62 @@ form >>> input {
<el-dialog @close="cancel()" title="音乐标签编辑" :visible="show" custom-class="um-edit-dialog" center> <el-dialog @close="cancel()" title="音乐标签编辑" :visible="show" custom-class="um-edit-dialog" center>
<el-form ref="form" status-icon :model="form" label-width="0"> <el-form ref="form" status-icon :model="form" label-width="0">
<section> <section>
<el-image v-show="!editPicture" :src="imgFile.url || picture" style="width: 100px; height: 100px"> <div class="music-cover">
<div slot="error" class="image-slot el-image__error">暂无封面</div> <el-image v-show="!editPicture" :src="imgFile.url || picture">
</el-image> <div slot="error" class="image-slot el-image__error">暂无封面</div>
<el-upload v-show="editPicture" :auto-upload="false" :on-change="addFile" :on-remove="rmvFile" :show-file-list="true" :limit="1" list-type="picture" action="" drag> </el-image>
<i class="el-icon-upload" /> <el-upload v-show="editPicture" :auto-upload="false" :on-change="addFile" :on-remove="rmvFile" :show-file-list="true" :limit="1" list-type="picture" action="" drag>
<div class="el-upload__text">将新图片拖到此处<em>点击选择</em><br />以替换自动匹配的图片</div> <i class="el-icon-upload" />
<div slot="tip" class="el-upload__tip"> <div class="el-upload__text">将新图片拖到此处<em>点击选择</em><br />以替换自动匹配的图片</div>
新拖到此处的图片将覆盖原始图片 <div slot="tip" class="el-upload__tip">
</div> 新拖到此处的图片将覆盖原始图片
</el-upload> </div>
<i </el-upload>
:class="{'el-icon-edit': !editPicture, 'el-icon-check': editPicture}" <i :class="{'el-icon-edit': !editPicture, 'el-icon-check': editPicture}"
@click="changeCover" @click="changeCover"></i>
></i><br /> </div>
标题:
<span v-show="!editTitle">{{title}}</span> <div class="edit-item">
<el-input v-show="editTitle" v-model="title"></el-input> <div class="label">标题</div>
<i <div class="value" v-show="!editTitle">{{title}}</div>
:class="{'el-icon-edit': !editTitle, 'el-icon-check': editTitle}" <el-input class="input" size="small" v-show="editTitle" v-model="title"/>
@click="editTitle = !editTitle" <i :class="{'el-icon-edit': !editTitle, 'el-icon-check': editTitle}"
></i><br /> @click="editTitle = !editTitle"/>
艺术家: </div>
<span v-show="!editArtist">{{artist}}</span> <div class="edit-item">
<el-input v-show="editArtist" v-model="artist"></el-input> <div class="label">艺术家</div>
<i <div class="value" v-show="!editArtist">{{artist}}</div>
:class="{'el-icon-edit': !editArtist, 'el-icon-check': editArtist}" <el-input class="input" size="small" v-show="editArtist" v-model="artist"/>
@click="editArtist = !editArtist" <i :class="{'el-icon-edit': !editArtist, 'el-icon-check': editArtist}"
></i><br /> @click="editArtist = !editArtist"
专辑: />
<span v-show="!editAlbum">{{album}}</span> </div>
<el-input v-show="editAlbum" v-model="album"></el-input> <div class="edit-item">
<i <div class="label">专辑</div>
:class="{'el-icon-edit': !editAlbum, 'el-icon-check': editAlbum}" <div class="value" v-show="!editAlbum">{{album}}</div>
@click="editAlbum = !editAlbum" <el-input class="input" size="small" v-show="editAlbum" v-model="album"/>
></i><br /> <i :class="{'el-icon-edit': !editAlbum, 'el-icon-check': editAlbum}"
专辑艺术家: @click="editAlbum = !editAlbum"
<span v-show="!editAlbumartist">{{albumartist}}</span> />
<el-input v-show="editAlbumartist" v-model="albumartist"></el-input> </div>
<i <div class="edit-item">
:class="{'el-icon-edit': !editAlbumartist, 'el-icon-check': editAlbumartist}" <div class="label">专辑艺术家</div>
@click="editAlbumartist = !editAlbumartist" <div class="value" v-show="!editAlbumartist">{{albumartist}}</div>
></i><br /> <el-input class="input" size="small" v-show="editAlbumartist" v-model="albumartist"/>
风格: <i :class="{'el-icon-edit': !editAlbumartist, 'el-icon-check': editAlbumartist}"
<span v-show="!editGenre">{{genre}}</span> @click="editAlbumartist = !editAlbumartist"
<el-input v-show="editGenre" v-model="genre"></el-input> />
<i </div>
:class="{'el-icon-edit': !editGenre, 'el-icon-check': editGenre}" <div class="edit-item">
@click="editGenre = !editGenre" <div class="label">风格</div>
></i><br /> <div class="value" v-show="!editGenre">{{genre}}</div>
<el-input class="input" size="small" v-show="editGenre" v-model="genre"/>
<i :class="{'el-icon-edit': !editGenre, 'el-icon-check': editGenre}"
@click="editGenre = !editGenre"
/>
</div>
<p class="item-desc"> <p class="tip">
为了节省您设备的资源请在确定前充分检查避免反复修改<br /> 为了节省您设备的资源请在确定前充分检查避免反复修改<br />
直接关闭此对话框不会保留所作的更改 直接关闭此对话框不会保留所作的更改
</p> </p>

@ -10,186 +10,35 @@
background-color: $dark-bg; background-color: $dark-bg;
} }
// FORM //
.el-radio{ .music-cover{
&__label{ i{
color: $dark-text-main;
}
&__input{
color: $dark-text-info;
.el-radio__inner{
border-color: $dark-border;
background-color: $dark-btn-bg;
}
}
&.is-checked{
.el-radio__inner{
background-color: $blue;
}
.el-radio__label{
font-weight: bold;
}
}
}
.el-checkbox.is-bordered{
border-color: $dark-border;
color: $dark-text-main;
background-color: $dark-btn-bg;
.el-checkbox__inner{
background-color: $dark-btn-bg-highlight;
border-color: $dark-border-highlight;
}
&:hover{
border-color: $dark-border-highlight;
.el-checkbox__inner{
background-color: $dark-btn-bg-highlight;
border-color: $dark-border-highlight;
}
.el-checkbox__label{
color: $dark-text-info;
}
}
&.is-checked{
background-color: $blue;
.el-checkbox__inner{
border-color: white;
}
.el-checkbox__label{
color: white;
font-weight: bold;
}
&:hover{ &:hover{
border-color: $blue; color: $color-checkbox;
.el-checkbox__inner{
background-color: white;
}
}
}
}
// BUTTON
.el-button{
background-color: $dark-btn-bg;
border-color: $dark-border;
color: $dark-text-main;
&:active{
transform: translateY(2px);
}
&--default{
&.is-plain {
background-color: $dark-btn-bg;
&:hover {
background-color: $blue;
border-color: $blue;
color: white;
}
}
&.is-circle {
background-color: $dark-blue;
border-color: $dark-blue;
&:hover {
background-color: $blue;
border-color: $blue;
color: white;
}
} }
} }
.el-image{
&--success{ border: 1px solid $dark-border;
&.is-plain {
background-color: $dark-btn-bg;
&:hover {
background-color: $green;
border-color: $green;
color: white;
}
}
&.is-circle {
background-color: $dark-green;
border-color: $dark-green;
&:hover {
background-color: $green;
border-color: $green;
color: white;
}
}
} }
&--danger{
&.is-plain{
border-color: $dark-border;
background-color: $dark-btn-bg;
&:hover{
background-color: $red;
border-color: $red;
}
}
&.is-circle {
background-color: $dark-red;
border-color: $dark-red;
&:hover {
background-color: $red;
border-color: $red;
color: white;
}
}
}
}
//
.el-upload__tip{
color: $dark-text-info;
} }
.el-upload-dragger{ .edit-item{
background-color: $dark-uploader-bg; .label{
border-color: $dark-border;
.el-upload__text{
color: $dark-text-info;
}
&:hover{
background: $dark-uploader-bg-highlight;
border-color: $dark-border-highlight;
} }
} .value{
// TABLE
.el-table{
background-color: $dark-bg-td;
&:before{ // 线
content: none;
} }
&__header{ .input{
th{ input{
border-bottom-color: $dark-border !important; background-color: transparent !important;
border-bottom: 1px solid $dark-border;
} }
} }
th.el-table__cell{ i{
background-color: $dark-bg-th;
color: $dark-text-info;
}
td{
border-bottom-color: $dark-border !important;
}
tr{
background-color: $dark-bg-td;
color: $dark-text-main;
&:hover{ &:hover{
td{ color: $color-checkbox;
background-color: $dark-bg-th !important;
}
} }
} }
} }
// LINKS
a{
}
// footer // footer
#app-footer { #app-footer {
@ -201,52 +50,6 @@
} }
} }
// ALERT
.el-notification{
background-color: $dark-btn-bg-highlight;
border-color: $dark-border;
&__title{
color: white;
}
&__content{
color: $dark-text-info;
}
}
// DIALOG
.el-dialog{
background-color: $dark-dialog-bg;
.el-dialog__header{
.el-dialog__title{
color: $dark-text-main;
}
}
.el-dialog__body{
color: $dark-text-main;
.el-input{
.el-input__inner{
color: $dark-text-main;
background-color: $dark-btn-bg;
}
.el-input__suffix{
.el-input__suffix-inner{
}
}
.el-input__count{
.el-input__count-inner{
background-color: transparent;
}
}
}
}
.item-desc{
color: $dark-text-info;
}
}
// //
// //
.update-info{ .update-info{

@ -45,5 +45,247 @@ $btn-radius: 6px;
} }
} }
.el-upload__tip{ .el-upload__tip{
text-align: center;
color: $text-comment; color: $text-comment;
} }
// dialog
.el-dialog{
@include border-radius(5px);
&.el-dialog--center{
.el-dialog__body{
padding: 25px 25px 15px;
}
.el-dialog__footer{
padding: 10px 20px 30px;
}
}
}
@media (prefers-color-scheme: dark) {
// FORM
.el-radio{
&__label{
color: $dark-text-main;
}
&__input{
color: $dark-text-info;
.el-radio__inner{
border-color: $dark-border;
background-color: $dark-btn-bg;
}
}
&.is-checked{
.el-radio__inner{
background-color: $blue;
}
.el-radio__label{
font-weight: bold;
}
}
}
.el-checkbox.is-bordered{
border-color: $dark-border;
color: $dark-text-main;
background-color: $dark-btn-bg;
.el-checkbox__inner{
background-color: $dark-btn-bg-highlight;
border-color: $dark-border-highlight;
}
&:hover{
border-color: $dark-border-highlight;
.el-checkbox__inner{
background-color: $dark-btn-bg-highlight;
border-color: $dark-border-highlight;
}
.el-checkbox__label{
color: $dark-text-info;
}
}
&.is-checked{
background-color: $blue;
.el-checkbox__inner{
border-color: white;
}
.el-checkbox__label{
color: white;
font-weight: bold;
}
&:hover{
border-color: $blue;
.el-checkbox__inner{
background-color: white;
}
}
}
}
// BUTTON
.el-button{
background-color: $dark-btn-bg;
border-color: $dark-border;
color: $dark-text-main;
&:active{
transform: translateY(2px);
}
&--default{
&.is-plain {
background-color: $dark-btn-bg;
&:hover {
background-color: $blue;
border-color: $blue;
color: white;
}
}
&.is-circle {
background-color: $dark-blue;
border-color: $dark-blue;
&:hover {
background-color: $blue;
border-color: $blue;
color: white;
}
}
}
&--success{
&.is-plain {
background-color: $dark-btn-bg;
&:hover {
background-color: $green;
border-color: $green;
color: white;
}
}
&.is-circle {
background-color: $dark-green;
border-color: $dark-green;
&:hover {
background-color: $green;
border-color: $green;
color: white;
}
}
}
&--danger{
&.is-plain{
border-color: $dark-border;
background-color: $dark-btn-bg;
&:hover{
background-color: $red;
border-color: $red;
}
}
&.is-circle {
background-color: $dark-red;
border-color: $dark-red;
&:hover {
background-color: $red;
border-color: $red;
color: white;
}
}
}
}
//
.el-upload__tip{
color: $dark-text-info;
}
.el-upload-dragger{
background-color: $dark-uploader-bg;
border-color: $dark-border;
.el-upload__text{
color: $dark-text-info;
}
&:hover{
background: $dark-uploader-bg-highlight;
border-color: $dark-border-highlight;
}
}
// TABLE
.el-table{
background-color: $dark-bg-td;
&:before{ // 线
content: none;
}
&__header{
th{
border-bottom-color: $dark-border !important;
}
}
th.el-table__cell{
background-color: $dark-bg-th;
color: $dark-text-info;
}
td{
border-bottom-color: $dark-border !important;
}
tr{
background-color: $dark-bg-td;
color: $dark-text-main;
&:hover{
td{
background-color: $dark-bg-th !important;
}
}
}
}
// ALERT
.el-notification{
background-color: $dark-btn-bg-highlight;
border-color: $dark-border;
&__title{
color: white;
}
&__content{
color: $dark-text-info;
}
}
// DIALOG
.el-dialog{
background-color: $dark-dialog-bg;
.el-dialog__header{
.el-dialog__title{
color: $dark-text-main;
}
}
.el-dialog__body{
color: $dark-text-main;
.el-input{
.el-input__inner{
border-color: $dark-border;
color: $dark-text-main;
background-color: $dark-btn-bg;
}
.el-input__suffix{
.el-input__suffix-inner{
}
}
.el-input__count{
.el-input__count-inner{
background-color: transparent;
}
}
}
}
.item-desc{
color: $dark-text-info;
}
}
}

@ -66,6 +66,7 @@
} }
.btn-like{ .btn-like{
cursor: pointer;
&:active{ &:active{
@include transform(translateY(2px)) @include transform(translateY(2px))
} }

@ -3,19 +3,17 @@ $blue : #409EFF;
$red : #F56C6C; $red : #F56C6C;
$green : #85ce61; $green : #85ce61;
// TEXT COLOR // TEXT COLOR
$text-main : #2C3E50; $text-main : #2C3E50;
$text-comment : #777; $text-copyright : #777;
$color-link : $blue; $text-comment : #999;
$color-link : $blue;
// FONT SIZE // FONT SIZE
$fz-main: 14px; $fz-main: 14px;
$fz-mini-title: 13px; $fz-mini-title: 13px;
$fz-mini-content: 12px; $fz-mini-content: 12px;
// DARK MODE // DARK MODE
$dark-border : lighten(black, 25%); $dark-border : lighten(black, 25%);
$dark-border-highlight : lighten(black, 55%); $dark-border-highlight : lighten(black, 55%);

@ -3,12 +3,7 @@
@import "gaps"; @import "gaps";
@import "element-ui-overwrite"; @import "element-ui-overwrite";
// UNIVERSAL STYLE
// MAIN CONTENT // MAIN CONTENT
body{ body{
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -40,24 +35,94 @@ audio{
margin-top: 20px; margin-top: 20px;
} }
//
.music-cover{
margin-bottom: 20px;
display: flex;
justify-content: center;
align-items: center;
flex-flow: column nowrap;
i{
margin-top: 10px;
@extend .btn-like;
&:hover{
color: $color-checkbox;
}
}
.el-image{
padding: 5px;
@include border-radius(5px);
border: 1px solid $color-border-el;
width: 150px;
height: 150px;
}
}
.edit-item{
display: flex;
justify-content: flex-start;
align-items: center;
.label{
font-weight: bold;
width: 80px;
text-align: right;
flex-shrink: 0;
}
.value{
padding: 5px 0;
height: 20px;
line-height: 20px;
margin-left: 10px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.input{
margin-left: 10px;
input{
font-family: inherit;
height: 30px;
line-height: 20px;
@include border-radius(0);
border: none;
border-bottom: 1px solid $color-border-el;
padding: 5px 5px;
}
}
i{
margin-left: 10px;
@extend .btn-like;
&:hover{
color: $color-checkbox;
}
}
}
.tip{
margin-top: 20px;
color: $text-comment;
font-size: $fz-mini-content;
a{
color: inherit;
}
}
// footer // footer
#app-footer { #app-footer {
margin-top: 40px; margin-top: 40px;
text-align: center; text-align: center;
color: $text-comment; color: $text-copyright;
line-height: 1.3; line-height: 1.3;
font-size: $fz-mini-content; font-size: $fz-mini-content;
a { a {
padding-left: 0.2rem; padding-left: 0.2rem;
padding-right: 0.2rem; padding-right: 0.2rem;
color: darken($text-comment, 10%); color: darken($text-copyright, 10%);
&:hover{ &:hover{
color: $color-link; color: $color-link;
} }
} }
} }
// //
.update-info{ .update-info{
@include border-radius(8px); @include border-radius(8px);

Loading…
Cancel
Save