detail.wxss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. /**基础风格样式**/
  2. @import '/assets/libs/towxml/style/main.wxss';
  3. /**主题配色(浅色样式)**/
  4. @import '/assets/libs/towxml/style/theme/light.wxss';
  5. .cover {
  6. height: 180px;
  7. position: relative;
  8. background-size: cover;
  9. background-position: center center;
  10. }
  11. .cover > .overlay {
  12. text-align: center;
  13. background: rgba(0, 0, 0, 0.6);
  14. color: #fff;
  15. height: 100%;
  16. width: 100%;
  17. }
  18. .cover .intro {
  19. position: absolute;
  20. top: 50px;
  21. left: 0;
  22. text-align: center;
  23. width: 100%;
  24. color: #fff;
  25. }
  26. .title {
  27. position: relative;
  28. padding: 15px;
  29. color: #666;
  30. background:#fff;
  31. border-bottom: 1px solid #eee;
  32. }
  33. .title .h1 {
  34. font-size: 22px;
  35. line-height: 25px;
  36. }
  37. .title .date {
  38. margin-top: 5px;
  39. font-size: 12px;
  40. color:#bbb;
  41. }
  42. .content {
  43. padding:15px;
  44. background:#fff;
  45. }
  46. .thumbs {
  47. padding:15px;
  48. margin: 0px auto;
  49. text-align: center;
  50. background:#fff;
  51. }
  52. .thumbs .like,.thumbs .dislike {
  53. display: inline-block;
  54. width: 44px;
  55. height: 44px;
  56. line-height: 44px;
  57. color: #999;
  58. text-align: center;
  59. background-color: #bebebe;
  60. background-position: center center;
  61. background-repeat: no-repeat;
  62. transition: background-color 300ms linear;
  63. border-radius: 22px;
  64. background-clip: padding-box;
  65. vertical-align: middle;
  66. }
  67. .thumbs .like {
  68. position: relative;
  69. margin-right: 5px;
  70. background-color: #46c37b;
  71. }
  72. .thumbs .like:hover {
  73. background-color: #08aa73;
  74. }
  75. .thumbs .dislike {
  76. position: relative;
  77. margin-left: 5px;
  78. }
  79. .thumbs .dislike:hover {
  80. background-color: #999;
  81. }
  82. .thumbs i.fa {
  83. font-size: 20px;
  84. color: #fff;
  85. }
  86. .thumbs .progress {
  87. position: relative;
  88. display: inline-block;
  89. vertical-align: -18%;
  90. }
  91. .thumbs .bar {
  92. width: 110px;
  93. height: 7px;
  94. overflow: hidden;
  95. background-color: #dcdcdc;
  96. border-radius: 4px;
  97. background-clip: padding-box;
  98. }
  99. .thumbs .bar .current {
  100. display: block;
  101. height: 100%;
  102. width: 50%;
  103. background-color: #46c37b;
  104. transition: width 300ms linear;
  105. }
  106. .thumbs .num {
  107. position: absolute;
  108. top: -18px;
  109. display: block;
  110. width: 100%;
  111. font-style: normal;
  112. font-size: 10px;
  113. color: #999;
  114. text-align: center;
  115. }
  116. .thumbs .num i {
  117. position: absolute;
  118. right: 55%;
  119. color: #46c37b;
  120. font-style: normal;
  121. }
  122. .thumbs .num span {
  123. position: absolute;
  124. left: 55%;
  125. }
  126. .commentlist .zan-card__detail-row .zan-card__left-col {
  127. display: flex;
  128. justify-content: space-between;
  129. }
  130. .commentlist .zan-card__detail-row .zan-card__left-col .post-like {
  131. margin-right: 10px;
  132. }
  133. .zan-card {
  134. border-bottom: 1px solid #eee;
  135. padding: 10px 15px;
  136. }
  137. .zan-card__thumb {
  138. width: 60px;
  139. height: 60px;
  140. }
  141. .zan-card__thumb image {
  142. border-radius: 50%;
  143. width: 50px;
  144. height: 50px;
  145. }
  146. .zan-card__detail {
  147. margin-left: 70px;
  148. }
  149. .zan-card__detail .h2w__p {
  150. margin-bottom:20rpx;
  151. }
  152. .author {
  153. margin-right: 10px;
  154. }
  155. .comment-author {
  156. margin-right: 10px;
  157. }
  158. .postcomment .zan-field__input {
  159. height:22px;
  160. }
  161. .h2w, .h2w__pre {
  162. font-size: 28rpx;
  163. }
  164. .h2w__main {
  165. margin: 0;
  166. padding-top: 10rpx;
  167. }