xz_jiangzi/pages/newsList/newsList.wxss
dong_bo0602 db41a5b392 1130
2020-11-30 16:55:13 +08:00

162 lines
2.5 KiB
Plaintext

.top-tab{
position: fixed;
top: 0;
left: 0;
right: 0;
background: #fff;
overflow-x: auto;
z-index: 100;
}
.type{
display: flex;
}
.tab-box{
display: inline-flex;
justify-content: center;
align-items: center;
width: 30%;
position: relative;
height: 90rpx;
font-size: 30rpx;
color: #242424;
flex-shrink: 0;
}
.tab-box.active{
color: #9F1512;
}
.tab-box image{
position: absolute;
width: 15rpx;
height: 40rpx;
top: 50%;
margin-top: -20rpx;
display: none;
}
.tab-box.active image{
display: block;
}
.tab-box image.selected-l{
left: 20rpx;
}
.tab-box image.selected-r{
right: 20rpx;
}
.area{
z-index: 100;
overflow-x: auto;
white-space: nowrap;
position: fixed;
top: 90rpx;
left: 0;
right: 0;
border-bottom: 1px solid #DDD;
background: #fff;
}
.area-box{
display: inline-flex;
width: 30%;
height: 90rpx;
/* line-height: 90rpx;
text-align: center; */
align-items: center;
justify-content: center;
padding: 0 20px;
box-sizing: border-box;
position: relative;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 30rpx;
}
.area-box.active{
color: #9F1512;
}
.area-box image{
position: absolute;
width: 15rpx;
height: 40rpx;
top: 50%;
margin-top: -20rpx;
display: none;
}
.area-box.active image{
display: block;
}
.area-box image.selected-l{
left: 20rpx;
}
.area-box image.selected-r{
right: 20rpx;
}
.news{
padding: 30rpx;
border-bottom: 5px solid #FBFBFB;
margin-top: 180rpx;
}
.news-box{
padding: 30rpx 0;
border-bottom: 1px solid #EBEBEB;
display: flex;
flex-direction: column;
}
.news-title{
color: #242424;
font-size: 30rpx;
font-weight: bold;
}
.news-info{
color: #949494;
margin-top: 15rpx;
font-size: 24rpx;
}
.news-info text{
margin-right: 20rpx;
}
.voice-box{
padding-right: 30px;
position: relative;
}
.voice-box iamge{
position: absolute;
top: 0;
right: 0;
width:25rpx;
height: 25rpx;
}
.news-big-pic, .news-small-pic{
margin-top: 10rpx;
}
.news-big-pic{
position: relative;
}
.news-big-pic image{
width: 100%;
}
.news-big-pic image.play-btn{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 80rpx;
height: 80rpx;
}
.news-small-pic image{
width: 30%;
height: 150rpx;
margin-right: 20rpx;
}
.transverse-news{
flex-direction: row;
justify-content: space-between;
}
.news-row-img{
width: 30%;
height: 150rpx;
}
.news-row-img image{
width: 100%;
height: 100%;
}
.news-row-info{
width: 68%;
}