common.wxss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. /*
  2. 公共样式
  3. 注:hmly为喜马拉雅的缩写
  4. */
  5. /* 轮播图 */
  6. .hmly-swiper {
  7. width: 100%;
  8. height: 100%;
  9. border-radius: 15rpx;
  10. }
  11. .hmly-swiper-container {
  12. width: 90%;
  13. height: 280rpx;
  14. margin: 0rpx auto;
  15. position: relative;
  16. border-radius: 15rpx;
  17. overflow: hidden;
  18. }
  19. .hmly-swiper-item {
  20. width: 100%;
  21. height: 100%;
  22. border-radius: 15rpx;
  23. }
  24. .hmly-swiper-item>image {
  25. width: 100%;
  26. height: 100%;
  27. border-radius: 15rpx;
  28. }
  29. .hmly-dots {
  30. width: auto;
  31. height: 10rpx;
  32. position: absolute;
  33. bottom: 20rpx;
  34. border-radius: 50rpx;
  35. left: 240rpx;
  36. display: flex;
  37. justify-content: space-between;
  38. align-items: center;
  39. padding: 3rpx 10rpx;
  40. }
  41. .hmly-dots-item {
  42. width: 8rpx;
  43. height: 8rpx;
  44. margin: 0rpx 8rpx;
  45. border-radius: 50%;
  46. background-color: #cdcdcd;
  47. transition: all .3s;
  48. }
  49. .hmly-dot-active {
  50. width: 10rpx;
  51. height: 10rpx;
  52. background-color: #fff;
  53. }
  54. /* 主要内容列表样式 */
  55. .hmly-content-list {
  56. width: 90%;
  57. margin: 0rpx auto;
  58. margin-top: 10rpx;
  59. }
  60. .hmly-content {
  61. width: 100%;
  62. height: auto;
  63. padding: 20rpx 0rpx;
  64. display: flex;
  65. justify-content: space-between;
  66. border-bottom: 1rpx solid #f1f1f1;
  67. }
  68. .hmly-content-img {
  69. width: 232rpx;
  70. height: 232rpx;
  71. border-radius: 15rpx;
  72. }
  73. .hmly-content-img>image {
  74. width: 100%;
  75. height: 100%;
  76. border-radius: 15rpx;
  77. }
  78. .hmly-content-right {
  79. width: 530rpx;
  80. height: 100%;
  81. margin-left: 20rpx;
  82. display: flex;
  83. flex-direction: column;
  84. }
  85. .hmly-content-title {
  86. width: 100%;
  87. height: 138rpx;
  88. overflow: hidden;
  89. display: flex;
  90. flex-direction: column;
  91. }
  92. .hmly-title-text {
  93. width: 100%;
  94. font-size: 35rpx;
  95. color: #333;
  96. text-align: left;
  97. display: -webkit-box;
  98. -webkit-line-clamp: 1;
  99. /*行数n*/
  100. -webkit-box-orient: vertical;
  101. overflow: hidden;
  102. text-overflow: ellipsis;
  103. }
  104. .hmly-introduction {
  105. width: 100%;
  106. font-size: 28rpx;
  107. color: #cdcdcd;
  108. text-align: left;
  109. padding: 15rpx 0rpx;
  110. display: -webkit-box;
  111. -webkit-line-clamp: 2;
  112. /*行数n*/
  113. -webkit-box-orient: vertical;
  114. overflow: hidden;
  115. text-overflow: ellipsis;
  116. }
  117. .hmly-count {
  118. width: 100%;
  119. height: 50rpx;
  120. display: flex;
  121. justify-content: start;
  122. align-items: center;
  123. }
  124. .hmly-play-count {
  125. font-size: 25rpx;
  126. color: #cdcdcd;
  127. margin-right: 30rpx;
  128. }
  129. .hmly-ji-count {
  130. font-size: 25rpx;
  131. color: #cdcdcd;
  132. }
  133. /* 登录样式 */
  134. .hmly-logo {
  135. width: 128rpx;
  136. height: 128rpx;
  137. margin: 0rpx auto;
  138. position: relative;
  139. top: 200rpx;
  140. }
  141. .hmly-logo-img {
  142. width: 100%;
  143. height: 100%;
  144. }
  145. .hmly-login-button {
  146. width: 80%;
  147. margin: 0rpx auto;
  148. position: relative;
  149. top: 500rpx;
  150. }
  151. .hmly-wechat-login,
  152. .phone-login {
  153. width: 100%;
  154. height: 80rpx;
  155. border-radius: 50rpx;
  156. border: 0rpx;
  157. outline: none;
  158. }
  159. .hmly-wechat-login button {
  160. background-color: #70e500;
  161. border-radius: 50rpx;
  162. border: none;
  163. color: #fff;
  164. }
  165. .hmly-phone-login {
  166. margin-top: 40rpx;
  167. }
  168. .hmly-phone-login button {
  169. border-radius: 50rpx;
  170. border: 1rpx solid #70e500;
  171. background-color: #fff;
  172. color: #70e500;
  173. }
  174. /*蒙板*/
  175. .hmly-cover {
  176. position: fixed;
  177. top: 0;
  178. right: 0;
  179. bottom: 0;
  180. left: 0;
  181. width: 100%;
  182. height: 100%;
  183. z-index: 9000;
  184. background: rgba(0, 0, 0, 0.6);
  185. opacity: 0.7;
  186. }
  187. /* bar相关 */
  188. .hmly-margin-top-bottom {
  189. margin-top: 20rpx;
  190. margin-bottom: 30rpx;
  191. }
  192. .hmly-bar-title {
  193. width: 100%;
  194. height: 56rpx;
  195. padding: 20rpx 0rpx;
  196. text-align: center;
  197. }
  198. .hmly-title-left {
  199. float: left;
  200. font-size: 37rpx;
  201. font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  202. font-weight: 800;
  203. color: #333;
  204. }
  205. .hmly-title-right {
  206. float: right;
  207. font-size: 26rpx;
  208. color: #aaa;
  209. }