107 lines
1.6 KiB
Plaintext
107 lines
1.6 KiB
Plaintext
/* packageI/newMedia/newMediaGuide/newMediaGuide.wxss */
|
|
|
|
view,
|
|
text {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* tabs 切换 */
|
|
.tabs {
|
|
background: #fff;
|
|
display: flex;
|
|
justify-content: space-evenly;
|
|
height: 80rpx;
|
|
}
|
|
|
|
.tabs .tabItem {
|
|
font-size: 28rpx;
|
|
color: #747474;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.tabs .tabItem.active {
|
|
font-size: 34rpx;
|
|
color: #ef3532;
|
|
position: relative;
|
|
}
|
|
|
|
.tabs .tabItem.active::after {
|
|
content: '';
|
|
display: block;
|
|
width: 56rpx;
|
|
height: 6rpx;
|
|
background-color: #ef3532;
|
|
border-radius: 10rpx;
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
/* 分类 */
|
|
.categories {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
padding: 24rpx 28rpx 8rpx;
|
|
overflow-x: scroll;
|
|
}
|
|
|
|
.categories::after {
|
|
content: ' ';
|
|
height: 50rpx;
|
|
flex-shrink: 0;
|
|
width: 28rpx;
|
|
}
|
|
|
|
.category-item {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 50rpx;
|
|
padding: 0 38rpx;
|
|
color: #717171;
|
|
font-size: 24rpx;
|
|
white-space: nowrap;
|
|
background-color: white;
|
|
border-radius: 32rpx;
|
|
}
|
|
|
|
.category-item_active {
|
|
color: white;
|
|
background-color: #f14e4e;
|
|
}
|
|
|
|
.category-item:not(:last-child) {
|
|
margin-right: 28rpx;
|
|
}
|
|
|
|
/* 内容项 */
|
|
.ad-articles {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
margin: 24rpx 30rpx 0;
|
|
}
|
|
|
|
.ad-article-item {
|
|
margin-bottom: 10rpx;
|
|
padding-bottom: 21rpx;
|
|
width: 340rpx;
|
|
border-radius: 10rpx;
|
|
background-color: white;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.loadingimg {
|
|
width: 4rem;
|
|
height: 4rem;
|
|
margin: 0 auto;
|
|
padding: 100rpx 0;
|
|
box-sizing: content-box;
|
|
}
|
|
|
|
.loadingimg image {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|