123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- /**index.wxss**/
- @import '../../../app.wxss';
-
- .component{
- width: 100%;
- position: relative;
- overflow: hidden;
- background: #fff;
- border-radius: 15rpx;
- box-shadow: 0 0 20rpx 10rpx rgba(0, 0, 0, .05);
- margin-bottom: 22rpx;
- padding: 20rpx 0;
- }
-
- .img{
- width: 38.5%;
- height: 0;
- position: relative;
- overflow: hidden;
- border-radius: 10rpx;
- background: #eee;
- padding-bottom: 22.8%;
- margin-left: 20rpx;
- z-index: 1;
- }
-
- .component .flex-item {
- position: relative;
- overflow: hidden;
- margin: 0 20rpx;
- z-index: 1;
- }
-
- .layer {
- width: 100%;
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- z-index: 10;
- }
-
- .title {
- width: 100%;
- display: block;
- font-size: 26rpx;
- line-height: 40rpx;
- margin-top: 22rpx;
- max-height: 79rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- }
-
- .date {
- width: 100%;
- display: block;
- font-size: 20rpx;
- line-height: 28rpx;
- color: #848484;
- margin-top: 14rpx;
- }
-
- .icon{
- display: block;
- width: 32rpx;
- position: absolute;
- right: 0;
- bottom: 0;
- }
|