123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /**index.wxss**/
  2. @import '../../../app.wxss';
  3. .component{
  4. width: 100%;
  5. position: relative;
  6. overflow: hidden;
  7. background: #fff;
  8. border-radius: 15rpx;
  9. box-shadow: 0 0 20rpx 10rpx rgba(0, 0, 0, .05);
  10. margin-bottom: 22rpx;
  11. padding: 20rpx 0;
  12. }
  13. .img{
  14. width: 38.5%;
  15. height: 0;
  16. position: relative;
  17. overflow: hidden;
  18. border-radius: 10rpx;
  19. background: #eee;
  20. padding-bottom: 22.8%;
  21. margin-left: 20rpx;
  22. z-index: 1;
  23. }
  24. .component .flex-item {
  25. position: relative;
  26. overflow: hidden;
  27. margin: 0 20rpx;
  28. z-index: 1;
  29. }
  30. .layer {
  31. width: 100%;
  32. position: absolute;
  33. left: 0;
  34. top: 0;
  35. bottom: 0;
  36. z-index: 10;
  37. }
  38. .title {
  39. width: 100%;
  40. display: block;
  41. font-size: 26rpx;
  42. line-height: 40rpx;
  43. margin-top: 22rpx;
  44. max-height: 79rpx;
  45. overflow: hidden;
  46. text-overflow: ellipsis;
  47. display: -webkit-box;
  48. -webkit-box-orient: vertical;
  49. -webkit-line-clamp: 2;
  50. }
  51. .date {
  52. width: 100%;
  53. display: block;
  54. font-size: 20rpx;
  55. line-height: 28rpx;
  56. color: #848484;
  57. margin-top: 14rpx;
  58. }
  59. .icon{
  60. display: block;
  61. width: 32rpx;
  62. position: absolute;
  63. right: 0;
  64. bottom: 0;
  65. }