//引入全局配置 @import "c/conf"; @import "c/mx"; @import "c/f"; .m-news { position: relative; margin: 30rpx auto; .wrap { box-sizing: border-box; width: 690rpx; padding: 0 0 20rpx; margin: 0 auto; // border-radius: 10rpx; // overflow: hidden; background: rgba(255, 255, 255, 1); border-bottom: 1rpx solid #e7eeee; .cpt-title { display: flex; flex-direction: row; justify-content: space-between; // border-bottom: 1rpx solid #e7eeee; line-height: 30rpx; .cpt-title-m { font-size: 26rpx; color: #999; padding: 20rpx; image { position: relative; // top: -1rpx; width: 17rpx; height: 17rpx; } } .cpt-title-t { position: relative; margin: 10rpx 0 0; padding: 14rpx 20rpx 26rpx; font-size: 34rpx; height: 30rpx; font-family: Source Han Serif SC; font-weight: bold; color: rgba(51, 51, 51, 1); &::before { content: ""; position: absolute; top: 14rpx; left: 0; width: 6rpx; height: 30rpx; background: rgba(230, 0, 0, 1); border-radius: 3rpx; } } } .m-tabs { position: relative; white-space: nowrap; -webkit-overflow-scrolling: touch; margin: 10rpx -30rpx; width: 750rpx; height: 70rpx; background: rgba(255, 255, 255, 1); overflow-x: scroll; &::-webkit-scrollbar { width: 0; height: 0; color: transparent; } .tab { @include toe; position: relative; display: inline-block; text-align: center; // width: 195rpx; padding: 0 30rpx; line-height: 70rpx; font-size: 28rpx; font-family: Source Han Serif SC; font-weight: 500; color: rgba(153, 153, 153, 1); transition: all $ad1 ease-in-out; &::after { content: ""; position: absolute; display: block; left: 0; right: 0; bottom: 5rpx; margin: 0 auto; width: 66rpx; height: 6rpx; background: rgba(230, 0, 0, 1); border-radius: 4rpx; opacity: 0; transform: scale(0); transition: all $ad1 ease-in-out; } &.z-on { color: #333; font-weight: bold; &::after { opacity: 1; transform: scale(1); } } } } .hint { text-align: center; line-height: 150rpx; font-size: 34rpx; color: #999; } .list { padding: 1rpx 0 1rpx; .item { position: relative; padding: 20rpx 0; padding-right: 280rpx; // border-bottom: 1rpx solid #eee; &:last-child { border-bottom: none; } &.item-nopic { padding-right: 0; .title { height: auto; min-height: 55rpx; } .info { margin-right: 0; } } > image { position: absolute; width: 220rpx; height: 124rpx; right: 0; top: 20rpx; border-radius: 10rpx; background-color: #eeeeee; } .title { @include toeM(2); margin: -10rpx 0 10rpx; min-height: 110rpx; max-height: 110rpx; font-size: 34rpx; font-family: Source Han Serif SC; font-weight: 500; color: rgba(51, 51, 51, 1); line-height: 55rpx; } .info { padding: 10rpx 0; margin-top: 40rpx; margin-right: -280rpx; line-height: 26rpx; font-size: 26rpx; font-family: Source Han Serif SC; font-weight: 500; color: rgba(153, 153, 153, 1); overflow: hidden; > image { display: inline-block; margin-right: 10rpx; width: 26rpx; height: 26rpx; vertical-align: bottom; } > text { @include toe; display: inline-block; max-width: 65%; vertical-align: bottom; } } } .item2 { position: relative; padding: 20rpx 0; // border-bottom: 1rpx solid #eee; &:last-child { border-bottom: none; } .title { height: 50rpx; font-size: 34rpx; font-family: Source Han Serif SC; font-weight: 500; color: rgba(51, 51, 51, 1); line-height: 40rpx; overflow: hidden; } .content { @include toe; height: 40rpx; font-size: 28rpx; font-family: Source Han Serif SC; font-weight: 500; color: rgba(51, 51, 51, 1); line-height: 40rpx; } .info { margin-top: 15rpx; line-height: 52rpx; font-size: 26rpx; font-family: Source Han Serif SC; font-weight: 500; color: rgba(153, 153, 153, 1); overflow: hidden; > image { display: inline-block; margin-right: 10rpx; width: 52rpx; height: 52rpx; vertical-align: bottom; border-radius: 100%; } > text { @include toe; display: inline-block; max-width: 65%; vertical-align: bottom; } } } .item3 { position: relative; padding: 20rpx 0; // border-bottom: 1rpx solid #eee; &:last-child { border-bottom: none; } .title { height: 50rpx; font-size: 34rpx; font-family: Source Han Serif SC; font-weight: 500; color: rgba(51, 51, 51, 1); line-height: 40rpx; overflow: hidden; } .content { @include toe; height: 40rpx; font-size: 28rpx; font-family: Source Han Serif SC; font-weight: 500; color: rgba(51, 51, 51, 1); line-height: 40rpx; } .info { margin-top: 15rpx; padding: 10rpx 0; line-height: 26rpx; font-size: 26rpx; font-family: Source Han Serif SC; font-weight: 500; color: rgba(153, 153, 153, 1); overflow: hidden; > image { display: inline-block; margin-right: 10rpx; width: 26rpx; height: 26rpx; vertical-align: bottom; } > text { @include toe; display: inline-block; max-width: 65%; vertical-align: bottom; } } } } .more { margin-bottom: 20rpx; margin-right: 25rpx; text-align: right; color: #4896de; line-height: 48rpx; font-size: 26rpx; image { position: relative; top: 15rpx; margin-left: 10rpx; vertical-align: top; width: 9rpx; height: 18rpx; } } } }