103 lines
1.5 KiB
Plaintext
103 lines
1.5 KiB
Plaintext
page{
|
|
background-color: #fff;
|
|
}
|
|
.news-type{
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background-color: #fff;
|
|
z-index: 100;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
overflow-x: auto;
|
|
border-bottom: 1px solid #DDD;
|
|
}
|
|
.type-box{
|
|
width: 25%;
|
|
line-height: 80rpx;
|
|
font-size: 32rpx;
|
|
text-align: center;
|
|
flex-shrink: 0;
|
|
}
|
|
.type-box.active{
|
|
color: #f55054;
|
|
}
|
|
.news-list{
|
|
margin-top: 80rpx;
|
|
padding: 20rpx;
|
|
}
|
|
.news-box{
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 20rpx 0;
|
|
border-bottom: 1px solid #DDD;
|
|
}
|
|
.news-img{
|
|
width: 30%;
|
|
height: 150rpx;
|
|
overflow: hidden;
|
|
text-align: center;
|
|
}
|
|
.news-img image{
|
|
height: 100%;
|
|
border-radius: 10rpx;
|
|
}
|
|
.news-info{
|
|
width: 68%;
|
|
}
|
|
.news-title{
|
|
font-size: 32rpx;
|
|
font-weight: bold;
|
|
overflow: hidden;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
}
|
|
.news-date{
|
|
font-size: 30rpx;
|
|
color: #bbb;
|
|
margin-top: 15rpx;
|
|
}
|
|
.style3, .style4{
|
|
flex-direction: column;
|
|
}
|
|
.style3 .news-info, .style3 .news-img, .style4 .news-info{
|
|
width: 100%;
|
|
}
|
|
.style3 .news-img{
|
|
height: auto;
|
|
margin-top: 10rpx;
|
|
}
|
|
.style3 .news-img image, .style5 .news-info{
|
|
width: 100%;
|
|
}
|
|
.style5{
|
|
flex-direction: column;
|
|
}
|
|
.news-img-container .img-box{
|
|
width: 32%;
|
|
margin-right: 2%;
|
|
height: 150rpx;
|
|
border-radius: 10rpx;
|
|
display: inline-block;
|
|
text-align: center;
|
|
}
|
|
.img-box image{
|
|
height: 100%;
|
|
}
|
|
.news-img-container .img-box:last-child{
|
|
margin-right: 0;
|
|
}
|
|
.news-img-container{
|
|
margin-top: 10rpx;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|