comment.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. @import "../sass/mixins";
  2. $maincolor : #ff6b1a;
  3. .v-mod-comment{
  4. background: #FFFFFF;
  5. font-size: px2rem(28);
  6. .comment-hd{
  7. text-align: center;
  8. padding: px2rem(70) 0 px2rem(20) 0;
  9. h2{
  10. span{
  11. display: inline-block;
  12. color: #181818;
  13. font-size: px2rem(32);
  14. padding: 0 px2rem(30);
  15. position: relative;
  16. }
  17. }
  18. }
  19. .comment-hd1{
  20. h2{
  21. span{
  22. em{
  23. position: absolute;
  24. top: px2rem(-20);
  25. right: px2rem(-30);
  26. color: $maincolor;
  27. font-size: px2rem(20);
  28. width: px2rem(55);
  29. height: px2rem(40);
  30. line-height: px2rem(32);
  31. background: url(../../img/icon-num.png) no-repeat;
  32. background-size: 100%;
  33. }
  34. }
  35. }
  36. ul{
  37. text-align: center;
  38. position: relative;
  39. margin-top: px2rem(30);
  40. &:before{
  41. content: '';
  42. position: absolute;
  43. left: 50%;
  44. margin-left: px2rem(-10);
  45. border-left: 1px solid #c8c8c8;
  46. height: 100%;
  47. transform: skewX(-30deg);
  48. }
  49. li{
  50. color: #181818;
  51. display: inline-block;
  52. margin: 0 px2rem(30);
  53. &.active{
  54. color: $maincolor;
  55. }
  56. }
  57. }
  58. }
  59. .comment-hd2{
  60. h2{
  61. span{
  62. &:before{
  63. content: '';
  64. position: absolute;
  65. top: 0;
  66. left: 0;
  67. width: 100%;
  68. height: 100%;
  69. border-left: 1px solid #c8c8c8;
  70. border-right: 1px solid #c8c8c8;
  71. transform: skewX(-45deg);
  72. }
  73. }
  74. }
  75. p{
  76. color: $maincolor;
  77. margin-top: px2rem(12);
  78. }
  79. }
  80. .tag-cont{
  81. }
  82. .tag-panel{
  83. display: none;
  84. &.active{
  85. display: block;
  86. }
  87. }
  88. .tip-count{
  89. line-height: px2rem(70);
  90. color: #919090;
  91. padding: 0 px2rem(24);
  92. border-bottom: 1px solid #ebebeb;
  93. em{
  94. font-size: px2rem(24);
  95. }
  96. }
  97. .list-comment{
  98. }
  99. .item-comment{
  100. @include clearfix();
  101. padding: px2rem(20) px2rem(24) px2rem(30) px2rem(24);
  102. }
  103. .item-fl{
  104. width: px2rem(70);
  105. height: px2rem(70);
  106. border-radius: 50%;
  107. overflow: hidden;
  108. float: left;
  109. background: url(../../img/pic-head.png) no-repeat;
  110. background-size: 100%;
  111. img{
  112. display: block;
  113. overflow: hidden;
  114. width: 100%;
  115. height: 100%;
  116. }
  117. }
  118. .item-fr{
  119. margin-left: px2rem(84);
  120. }
  121. .info{
  122. display: flex;
  123. justify-content: space-between;
  124. }
  125. .info-fl{
  126. h4{
  127. color: #666666;
  128. }
  129. p{
  130. color: #919090;
  131. margin-top: px2rem(16);
  132. }
  133. }
  134. .info-fr{
  135. span{
  136. display: inline-block;
  137. height: px2rem(36);
  138. line-height: px2rem(36);
  139. padding-left: px2rem(48);
  140. color: #888888;
  141. font-size: px2rem(24);
  142. &.icon-zan{
  143. background: url(../../img/icon-zan.png) no-repeat;
  144. background-size: auto 100%;
  145. }
  146. &.icon-comment{
  147. background: url(../../img/icon-comment.png) no-repeat;
  148. background-size: auto 100%;
  149. margin-left: px2rem(30);
  150. }
  151. }
  152. }
  153. .cont{
  154. p{
  155. font-size: px2rem(32);
  156. color: #181818;
  157. line-height: px2rem(48);
  158. padding: px2rem(20) 0;
  159. }
  160. }
  161. .list-pic{
  162. @include clearfix;
  163. &.ext-list{
  164. .item-pic{
  165. width: px2rem(297);
  166. height: px2rem(297);
  167. }
  168. }
  169. }
  170. .item-pic{
  171. float: left;
  172. width: px2rem(180);
  173. height: px2rem(180);
  174. background-image: url(../../img/bg-pic.png);
  175. background-size: cover;
  176. margin: 0 px2rem(8) px2rem(8) 0;
  177. }
  178. .list-post{
  179. li{
  180. color: #181818;
  181. line-height: px2rem(50);
  182. }
  183. span{
  184. color: $maincolor;
  185. }
  186. }
  187. .tip{
  188. font-size: px2rem(24);
  189. color: #888888;
  190. line-height: px2rem(40);
  191. background: #f2f2f2;
  192. border-radius: px2rem(20);
  193. padding: 0 px2rem(30);
  194. margin-top: px2rem(20);
  195. @include ellipsis();
  196. }
  197. .btn-more{
  198. display: block;
  199. color: $maincolor;
  200. font-size: px2rem(32);
  201. line-height: px2rem(88);
  202. text-align: center;
  203. border: 1px solid #f59967;
  204. border-radius: px2rem(40);
  205. margin: 0 px2rem(24);
  206. }
  207. .no-comment{
  208. text-align: center;
  209. padding-top: px2rem(260);
  210. background: url(../../img/bg-comment.png) center px2rem(20) no-repeat;
  211. background-size: px2rem(240) auto;
  212. color: #999;
  213. }
  214. }