refactor: 用透明度来代表是否选中

This commit is contained in:
maxmon 2023-04-13 00:39:54 +08:00
parent f1168a9315
commit 9f9b3db46c
1 changed files with 11 additions and 1 deletions

View File

@ -968,9 +968,19 @@ export default {
box-sizing: content-box;
border: 2px solid #0000;
text-align: center;
opacity: .2;
}
.type:hover {
opacity: .8;
}
@media screen and (max-width: 768px) {
/* 防止手机点击后持续的hover效果 */
.type:hover {
opacity: .2;
}
}
.type.selected {
border: 2px solid #000;
opacity: 1;
}
.result.selected {
position: relative;