This commit is contained in:
jl-zhoujl2
2023-05-08 17:07:15 +08:00
parent d51d58967f
commit c47f65dc36
3 changed files with 127 additions and 57 deletions

View File

@ -561,11 +561,34 @@
.rank-list {
padding: 4px 12px;
position: relative;
height: 158px;
height: 156px;
overflow-y: auto;
// &::-webkit-scrollbar {
// display: none;
// }
/*设置宽度,轨道颜色*/
&::-webkit-scrollbar {
display: none;
width: 6px;
height: 6px;
// padding-right: 3px;
}
/*滚动条*/
&::-webkit-scrollbar-thumb {
background: #cacfe6;
border-radius: 10px;
}
/*增加悬停样式*/
&::-webkit-scrollbar-thumb:hover {
background: #dcdfeb;
}
/*滚动轨道样式*/
&::-webkit-scrollbar-track-piece {
background: #eeeeee;
border-radius: 3px;
}
&>p {
@ -575,59 +598,81 @@
color: #9f9f9f;
font-family: "黑体";
font-size: 14px;
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
&>span:first-child {
padding-left: 19px;
padding-right: 23px;
&>span {
display: block;
text-align: center;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
&>span:not(.people-rank):first-child {
padding-left: 19px;
padding-right: 40px;
.list-star {
position: absolute;
left: 14px;
}
&>span:last-child {
padding-left: 23px;
.list-block {
width: 40px;
}
&>span:not(.people-rank):last-child {
padding-left: 40px;
.list-person-block {
width: 30px;
}
.star0,
.star1,
.star2 {
.list-province {
width: 60px;
}
.list-score {
width: 50px;
}
.list-person-score {
width: 16px;
}
.list-name {
width: 60px;
}
.star1 {
background-image: url("~@/assets/highQuality/star1.png");
background-size: 100% 100%;
background-repeat: no-repeat;
height: 21px;
width: 20px;
position: absolute;
left: 8px;
top: 3px;
text-align: center;
line-height: 24px;
color: #FFFFFF;
font-weight: bold;
position: relative;
z-index: 1;
}
.star2 {
.star1;
background-image: url("~@/assets/highQuality/star2.png");
background-size: 100% 100%;
background-repeat: no-repeat;
}
.star3 {
.star1;
background-image: url("~@/assets/highQuality/star3.png");
background-size: 100% 100%;
background-repeat: no-repeat;
}
}
&>p:last-child {
border-bottom: 0;
}
.rank-list-star1 {
position: absolute;
top: 7px;
left: 24px;
z-index: 0;
height: 20px;
}
.rank-list-star2 {
.rank-list-star1;
top: 37px;
}
.rank-list-star3 {
.rank-list-star1;
top: 67px;
}
}
}