common.wxss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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;/*行数n*/
  99. -webkit-box-orient: vertical;
  100. overflow: hidden;
  101. text-overflow: ellipsis;
  102. }
  103. .hmly-introduction{
  104. width: 100%;
  105. font-size: 28rpx;
  106. color: #cdcdcd;
  107. text-align: left;
  108. padding: 15rpx 0rpx;
  109. display: -webkit-box;
  110. -webkit-line-clamp: 2;/*行数n*/
  111. -webkit-box-orient: vertical;
  112. overflow: hidden;
  113. text-overflow: ellipsis;
  114. }
  115. .hmly-count{
  116. width: 100%;
  117. height: 50rpx;
  118. display: flex;
  119. justify-content: start;
  120. align-items: center;
  121. }
  122. .hmly-play-count{
  123. font-size: 25rpx;
  124. color: #cdcdcd;
  125. margin-right: 30rpx;
  126. }
  127. .hmly-ji-count{
  128. font-size: 25rpx;
  129. color: #cdcdcd;
  130. }
  131. /* 登录样式 */
  132. .hmly-logo {
  133. width: 128rpx;
  134. height: 128rpx;
  135. margin: 0rpx auto;
  136. position: relative;
  137. top: 200rpx;
  138. }
  139. .hmly-logo-img {
  140. width: 100%;
  141. height: 100%;
  142. }
  143. .hmly-login-button {
  144. width: 80%;
  145. margin: 0rpx auto;
  146. position: relative;
  147. top: 500rpx;
  148. }
  149. .hmly-wechat-login, .phone-login {
  150. width: 100%;
  151. height: 80rpx;
  152. border-radius: 50rpx;
  153. border: 0rpx;
  154. outline: none;
  155. }
  156. .hmly-wechat-login button {
  157. background-color: #70e500;
  158. border-radius: 50rpx;
  159. border: none;
  160. color: #fff;
  161. }
  162. .hmly-phone-login {
  163. margin-top: 40rpx;
  164. }
  165. .hmly-phone-login button {
  166. border-radius: 50rpx;
  167. border: 1rpx solid #70e500;
  168. background-color: #fff;
  169. color: #70e500;
  170. }
  171. /*蒙板*/
  172. .hmly-cover{
  173. position: fixed;
  174. top: 0;
  175. right: 0;
  176. bottom: 0;
  177. left: 0;
  178. width: 100%;
  179. height: 100%;
  180. z-index: 9000;
  181. background: rgba(0, 0, 0, 0.6);
  182. opacity: 0.7;
  183. }
  184. /* bar相关 */
  185. .hmly-margin-top-bottom {
  186. margin-top: 20rpx;
  187. margin-bottom: 30rpx;
  188. }
  189. .hmly-bar-title {
  190. width: 100%;
  191. height: 56rpx;
  192. padding: 20rpx 0rpx;
  193. text-align: center;
  194. }
  195. .hmly-title-left {
  196. float: left;
  197. font-size: 37rpx;
  198. font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  199. font-weight: 800;
  200. color: #333;
  201. }
  202. .hmly-title-right {
  203. float: right;
  204. font-size: 26rpx;
  205. color: #aaa;
  206. }