bangdan.wxss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. .hmly-top-nav {
  2. width: 100%;
  3. height: 80rpx;
  4. display: flex;
  5. justify-content: start;
  6. }
  7. .hmly-scroll-wrapper {
  8. white-space: nowrap;
  9. -webkit-overflow-scrolling: touch;
  10. background: #FFF;
  11. padding-left: 20rpx;
  12. width: 90%;
  13. height: 85rpx;
  14. box-sizing: border-box;
  15. }
  16. ::-webkit-scrollbar {
  17. width: 0;
  18. height: 0;
  19. color: transparent;
  20. }
  21. .hmly-navigate-item {
  22. display: inline-block;
  23. text-align: center;
  24. height: 90rpx;
  25. line-height: 90rpx;
  26. margin-right: 80rpx;
  27. }
  28. .hmly-names {
  29. font-size: 28rpx;
  30. color: #3c3c3c;
  31. }
  32. .hmly-names.active {
  33. color: #ff520f;
  34. font-weight: bold;
  35. font-size: 34rpx;
  36. }
  37. .hmly-currtline {
  38. margin: -8rpx auto 0 auto;
  39. width: 100rpx;
  40. height: 1rpx;
  41. border-radius: 4rpx;
  42. }
  43. .hmly-currtline.active {
  44. background: #ff520f;
  45. transition: all .3s;
  46. }
  47. .hmly-pull-down {
  48. width: 10%;
  49. height: 25rpx;
  50. padding: 30rpx 0rpx;
  51. background-color: rgb(249, 249, 249);
  52. text-align: center;
  53. color: #ff520f;
  54. line-height: 30rpx
  55. }
  56. /* 内容区的代码 */
  57. .hmly-content-item {
  58. width: 100%;
  59. display: flex;
  60. justify-content: space-around;
  61. align-items: center;
  62. padding: 20rpx 0rpx;
  63. }
  64. .hmly-index-number {
  65. width: 15%;
  66. height: auto;
  67. padding: 20rpx 0rpx;
  68. text-align: center;
  69. font-size: 50rpx;
  70. color: #ff520f;
  71. }
  72. .hmly-content-item image {
  73. width: 140rpx;
  74. height: 140rpx;
  75. margin-top: 10rpx;
  76. border-radius: 15rpx;
  77. }
  78. .hmly-content-left {
  79. padding: 10rpx 0rpx;
  80. margin-left: 30rpx;
  81. width: 60%;
  82. height: auto;
  83. border-bottom: 1rpx solid #f1f1f1;
  84. }
  85. .hmly-content-title {
  86. font-size: 35rpx;
  87. height: 40rpx;
  88. color: #000;
  89. display: -webkit-box;
  90. -webkit-line-clamp: 2;
  91. /*行数n*/
  92. -webkit-box-orient: vertical;
  93. overflow: hidden;
  94. text-overflow: ellipsis;
  95. }
  96. .hmly-content-text {
  97. height: 40rpx;
  98. display: -webkit-box;
  99. -webkit-line-clamp: 1;
  100. /*行数n*/
  101. -webkit-box-orient: vertical;
  102. overflow: hidden;
  103. text-overflow: ellipsis;
  104. font-size: 27rpx;
  105. text-align: left;
  106. color: #ccc;
  107. margin-top: 15rpx;
  108. }
  109. .hmly-count {
  110. font-size: 27rpx;
  111. color: #ccc;
  112. display: flex;
  113. justify-content: start;
  114. margin-top: 15rpx;
  115. }
  116. .hmly-menu {
  117. width: 100%;
  118. height: 200rpx;
  119. position: fixed;
  120. top: 0rpx;
  121. z-index: 9999;
  122. display: flex;
  123. justify-content: space-around;
  124. align-items: center;
  125. flex-wrap: wrap;
  126. background: #fff;
  127. }
  128. .hmly-menu-item {
  129. color: #000;
  130. width: auto;
  131. font-size: 32rpx;
  132. padding: 20rpx 10rpx;
  133. margin: 0rpx 15rpx;
  134. position: relative;
  135. }
  136. .hmly-menu-item-active {
  137. font-size: 32rpx;
  138. font-weight: 700;
  139. transition: all .3s;
  140. color: #333333;
  141. }
  142. .hmly-menu-item-active:after {
  143. content: '';
  144. width: 40rpx;
  145. height: 8rpx;
  146. position: absolute;
  147. bottom: 0rpx;
  148. left: 50rpx;
  149. border-radius: 15rpx;
  150. background: #ff520f;
  151. }