index.wxss 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /* 宫格导航 */
  2. .hmly-nav{
  3. width: 90%;
  4. height: 132rpx;
  5. margin: 0rpx auto;
  6. margin-top: 40rpx;
  7. display: flex;
  8. justify-content: space-between;
  9. align-items: center;
  10. align-content: center;
  11. }
  12. .hmly-nav-item{
  13. width: 94rpx;
  14. font-size: 20rpx;
  15. text-align: center;
  16. line-height: 35rpx;
  17. color: #aaa;
  18. }
  19. .hmly-nav-icon{
  20. width: 84rpx;
  21. height: 84rpx;
  22. }
  23. /* 猜你喜欢 */
  24. .hmly-like{
  25. width: 90%;
  26. margin: 0rpx auto;
  27. margin-top: 40rpx;
  28. }
  29. .hmly-like-item-box{
  30. width: 100%;
  31. display: flex;
  32. justify-content: space-between;
  33. overflow: hidden;
  34. }
  35. .hmly-like-item{
  36. width: 210rpx;
  37. height: 310rpx;
  38. border-radius: 15rpx;
  39. }
  40. .hmly-like-img{
  41. width: 210rpx;
  42. height: 210rpx;
  43. border-radius: 15rpx;
  44. position: relative;
  45. }
  46. .hmly-like-item-icon{
  47. width: 100%;
  48. height: 100%;
  49. border-radius: 15rpx;
  50. }
  51. .hmly-like-text{
  52. font-size: 28rpx;
  53. color: #333;
  54. margin-top: 10rpx;
  55. display: -webkit-box;
  56. -webkit-line-clamp: 2;/*行数n*/
  57. -webkit-box-orient: vertical;
  58. overflow: hidden;
  59. text-overflow: ellipsis;
  60. }
  61. .hmly-like-cover{
  62. width: 190rpx;
  63. height: 40rpx;
  64. /* 透明背景层 */
  65. background-image: linear-gradient(rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 1));
  66. /* opacity: 0.3; */
  67. position: absolute;
  68. bottom: 0rpx;
  69. color: #fff;
  70. font-size: 25rpx;
  71. padding: 5rpx 10rpx;
  72. border-bottom-left-radius: 15rpx;
  73. border-bottom-right-radius: 15rpx;
  74. }
  75. .hmly-data-notip{
  76. width: 100%;
  77. height: 300rpx;
  78. padding-top: 150rpx;
  79. }
  80. .hmly-tip{
  81. width: auto;
  82. height: 100rpx;
  83. text-align: center;
  84. margin: 0rpx auto;
  85. color: red;
  86. font-weight: 800;
  87. }