You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

186 lines
4.1 KiB

.container {
background-color: #1352c3; /* 背景颜色 */
padding: 20rpx; /* 内边距 */
color: white; /* 字体颜色 */
}
.header {
display: flex; /* 横向布局 */
flex-direction: column; /* 垂直排列 */
align-items: center; /* 向中居中 */
margin-top: 20rpx;
}
.tabs {
display: flex; /* 横向排列 */
margin-bottom: 20rpx; /* 下边距 */
border: 2rpx solid white;
border-radius: 20rpx;
font-weight: bold;
}
.tab {
padding: 10rpx 20rpx; /* 内边距 */
cursor: pointer; /* 鼠标悬停时显示为指针 */
border-left: 2rpx solid white;
text-align: center;
width:150rpx;
}
.tab.active {
background-color: #1684fc; /* 激活状态的背景颜色 */
border-radius: 20rpx 0rpx 0rpx 20rpx; /* 圆角 */
text-align: center;
width:150rpx;
}
.ranking-container {
display: flex; /* 横向排列 */
flex-direction:row;
justify-content: center; /* 居中对齐 */
margin-top: 20rpx; /* 上边距 */
height: 300rpx;
width: 600rpx;
align-items: flex-end;
}
.rank-item {
background-color: white; /* 排名框背景颜色 */
border-radius: 10rpx; /* 圆角 */
padding: 10rpx; /* 内边距 */
margin: 0 10rpx; /* 水平间距 */
display: flex; /* 横向布局 */
flex-direction: column; /* 垂直排列 */
align-items: center; /* 水平居中 */
width: 200rpx; /* 固定宽度 */
height: 600rpx; /* 固定高度 */
}
.rank-item-first{
display: flex; /* 横向排列 */
flex-direction: column; /* 垂直排列 */
align-items: center; /* 水平居中 */
width: 200rpx; /* 固定宽度 */
height: 300rpx; /* 固定高度 */
background-color: #fff;
border-radius: 40rpx 40rpx 0rpx 0rpx;
box-shadow: 4rpx 4rpx 8rpx #797979;
margin-bottom: 10rpx;
}
.rank-item-second{
display: flex; /* 横向排列 */
flex-direction: column; /* 垂直排列 */
align-items: center; /* 水平居中 */
width: 200rpx; /* 固定宽度 */
height: 250rpx; /* 固定高度 */
background-color: #fff;
border-radius: 40rpx 0rpx 0rpx 40rpx;
box-shadow: 4rpx 4rpx 8rpx #797979;
margin-bottom: 10rpx;
}
.rank-item-third{
display: flex; /* 横向排列 */
flex-direction: column; /* 垂直排列 */
align-items: center; /* 水平居中 */
width: 200rpx; /* 固定宽度 */
height: 225rpx; /* 固定高度 */
background-color: #fff;
border-radius: 0rpx 40rpx 40rpx 0rpx;
box-shadow: 4rpx 4rpx 8rpx #797979;
margin-bottom: 10rpx;
}
.crown-icon1 {
width: 80rpx; /* 冠军图标大小 */
height: 80rpx; /* 冠军图标大小 */
margin-bottom: 15rpx; /* 下边距 */
}
.crown-icon2 {
width: 70rpx; /* 冠军图标大小 */
height: 70rpx; /* 冠军图标大小 */
margin-bottom: 5rpx; /* 下边距 */
}
.crown-icon3 {
width: 65rpx; /* 冠军图标大小 */
height: 65rpx; /* 冠军图标大小 */
}
.head-icon1{
width: 100rpx;
height: 100rpx;
margin-bottom: 10rpx; /* 下边距 */
}
.head-icon2{
width: 85rpx;
height: 85rpx;
margin-bottom: 5rpx; /* 下边距 */
}
.head-icon3{
width: 80rpx;
height: 80rpx;
margin-bottom: 5rpx; /* 下边距 */
}
.name {
font-size: 28rpx; /* 名字字体大小 */
font-weight: bold;
color: #999999;
}
.score {
color: #f63e3d; /* 成绩颜色 */
font-size: 26rpx; /* 成绩字体大小 */
font-weight: bold;
}
.container2 {
width: 750rpx;
}
.ranking-list {
background-color: white; /* 列表背景 */
border-radius: 10rpx; /* 圆角效果 */
display:flex;
flex-direction:column;
align-items: center; /* 垂直居中 */
}
.rank-item {
display: flex; /* 横向布局 */
flex-direction: row;
align-items: center; /* 垂直居中 */
justify-content: space-between; /* 在行内两端对齐 */
border-radius: 0;
border-bottom: 1rpx solid #1352c3; /* 下边框 */
width:80%;
height: 100rpx;
font-size: 36rpx; /* 字体大小 */
}
.rank {
color: #999999; /* 排名颜色 */
}
.icon {
margin: 40rpx;
width: 80rpx; /* 图标大小 */
height: 80rpx; /* 图标大小 */
}
.name {
flex: 1; /* 名字占用剩余空间 */
text-align: left; /* 向左对齐 */
}
.score {
flex: 0 0 0rpx; /* 固定宽度显示分数 */
font-size: 36rpx;
color: #f63e3d; /* 分数颜色 */
}