/* pages/daren/daren.wxss */ @import "../../utils/styles/main.wxss"; @import "../../utils/styles/icon.wxss"; @import "../../utils/styles/animation.wxss"; @import "../../utils/styles/base.wxss"; .empty-data { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .content-bg { margin-top: 10px; padding-top: 5px; /* border-top:1px #dadada solid; */ background-color: #eef0f0; } .content { margin-left: 10rpx; clear: both; overflow: hidden; width: 100%; } .content .left, .content .right { width: 49%; } .content .left { float: left; } .content .right { float: right; } .item { display: inline-block; background: #fff; margin-bottom: 10rpx; border-radius: 10px; /* box-shadow:0px 0px 5px 5px #eef0ed; */ border: 1px #eef0ed solid; width: 100%; } .item-img { width: 100%; border-radius: 10rpx 15rpx 0 0; } .item-title { margin-left: 10rpx; font-size: 14px; font-family: 'PingFang SC-Medium'; /*只显示2行 */ overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .description { margin: 10rpx 5rpx 10rpx 10rpx; font-size: 12px; color: gray; /*只显示三行 */ overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; } .author-view { padding: 10rpx 0 10rpx 10rpx; } .avatar { width: 35px; height: 35px; border-radius: 100%; float: left; margin-right: 10px; } .author-name { font-size: 13px; font-family: 'PingFang SC-Medium'; color: rgb(58, 57, 57); display: block; } .time { font-size: 11px; font-family: 'PingFang SC-Medium'; color: gray; display: block; }