新增右上角最小化/关闭按钮鼠标滑过符号

pull/96/head
lyswhut 2019-09-05 21:36:00 +08:00
parent 864bef483f
commit 3dd9ad9ead
2 changed files with 40 additions and 1 deletions

View File

@ -0,0 +1,8 @@
### 新增
- 新增右上角最小化/关闭按钮鼠标滑过符号
### 修复
- 修复百度源歌单全部分类无法加载的问题
- 修复更新弹窗无法弹出的问题

View File

@ -83,8 +83,14 @@ each(@themes, {
display: flex;
height: 100%;
-webkit-app-region: no-drag;
&:hover {
button:before {
opacity: 1;
}
}
button {
position: relative;
width: @height-toolbar;
background: none;
border: none;
@ -104,6 +110,19 @@ each(@themes, {
transition: background-color 0.2s ease-in-out;
}
&:before {
display: block;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
font-size: 14px;
line-height: 1;
color: #fff;
opacity: 0;
transition: opacity @transition-theme;
}
&.min:after {
background-color: @color-minBtn;
}
@ -116,6 +135,7 @@ each(@themes, {
&.min:hover:after {
background-color: lighten(@color-minBtn, 10%);
opacity: 1;
}
&.max:hover:after {
background-color: lighten(@color-maxBtn, 10%);
@ -125,4 +145,15 @@ each(@themes, {
}
}
}
.min {
&:before {
content: '';
font-size: 15px;
}
}
.close {
&:before {
content: '×';
}
}
</style>