write-comments.css 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. /* 发表评论 */
  2. .write-comments {
  3. background: #f9f9f9;
  4. margin-top: 2px;
  5. margin-bottom: -40px;
  6. padding-bottom: 40px;
  7. }
  8. .write-comments .comments-box {
  9. background: #fff;
  10. padding: 30px 20px;
  11. box-shadow: 0 0 4px rgba(0, 0, 0, .05);
  12. display: flex;
  13. }
  14. .write-comments .comments-box .goods-msg {
  15. padding: 20px 50px 20px 30px;
  16. width: 278px;
  17. border-right: 1px dotted #ddd;
  18. }
  19. .write-comments .comments-box .goods-msg .img {
  20. width: 100px;
  21. height: 100px;
  22. margin: auto;
  23. font-size: 0;
  24. }
  25. .write-comments .comments-box .goods-msg .img img {
  26. width: 100%;
  27. height: 100%;
  28. }
  29. .write-comments .comments-box .goods-msg .name {
  30. display: block;
  31. margin-top: 15px;
  32. line-height: 20px;
  33. margin-bottom: 10px;
  34. font-size: 13px;
  35. }
  36. .write-comments .comments-box .goods-msg .name:hover {
  37. color: #e1251b;
  38. }
  39. .write-comments .comments-box .goods-msg .sku {
  40. color: #999;
  41. }
  42. .write-comments .comments-box .goods-msg .order-number {
  43. margin-top: 30px;
  44. color: #999;
  45. }
  46. .write-comments .comments-box .goods-msg .order-number .number {
  47. color: #000;
  48. font-family: arial;
  49. }
  50. .write-comments .comments-box .goods-msg .order-number .number:hover {
  51. color: #e1251b;
  52. }
  53. .write-comments .comments-box .goods-msg .deal-time {
  54. margin-top: 5px;
  55. color: #999;
  56. }
  57. .write-comments .comments-box .goods-msg .deal-time .number {
  58. font-family: arial;
  59. }
  60. .write-comments .comments-box .operation {
  61. padding: 20px 40px 0;
  62. margin-left: 20px;
  63. flex: 1;
  64. }
  65. .write-comments .comments-box .operation .item {
  66. display: flex;
  67. margin-bottom: 30px;
  68. }
  69. .write-comments .comments-box .operation .item .tit {
  70. width: 80px;
  71. line-height: 38px;
  72. }
  73. .write-comments .comments-box .operation .item .star-box {
  74. display: flex;
  75. align-items: center;
  76. /* margin-left: 80px; */
  77. }
  78. .write-comments .comments-box .operation .item .star-box .text {
  79. margin-right: 10px;
  80. }
  81. .write-comments .comments-box .operation .item .star-box .stars {
  82. display: flex;
  83. height: 14px;
  84. align-items: center;
  85. }
  86. .write-comments .comments-box .operation .item .star-box .stars .star,
  87. .write-comments .comments-box .operation .item .star-box .stars .star-gray {
  88. width: 14px;
  89. height: 14px;
  90. background: url(../images/icons.png) no-repeat;
  91. margin-left: 3px;
  92. cursor: pointer;
  93. }
  94. .write-comments .comments-box .operation .item .star-box .stars .star {
  95. background-position: -42px -138px;
  96. }
  97. .write-comments .comments-box .operation .item .star-box .stars .star-gray {
  98. background-position: -61px -138px;
  99. }
  100. .write-comments .comments-box .operation .item .comments {
  101. flex: 1;
  102. display: flex;
  103. flex-wrap: wrap;
  104. margin-top: -20px;
  105. }
  106. .write-comments .comments-box .operation .item .comments .c-item {
  107. padding: 10px 15px;
  108. line-height: 16px;
  109. border: 1px solid #eee;
  110. margin: 20px 15px 0 0;
  111. -moz-transition: all 0.2s;
  112. -webkit-transition: all 0.2s;
  113. -o-transition: all 0.2s;
  114. transition: all 0.2s;
  115. cursor: pointer;
  116. min-width: 80px;
  117. text-align: center;
  118. }
  119. .write-comments .comments-box .operation .item .comments .c-item:nth-child(5n) {
  120. margin-right: 0;
  121. }
  122. .write-comments .comments-box .operation .item .comments .c-item:hover,
  123. .write-comments .comments-box .operation .item .comments .c-item.active {
  124. border-color: #e1251b;
  125. color: #e1251b;
  126. }
  127. .write-comments .comments-box .operation .item .des-box {
  128. flex: 1;
  129. position: relative;
  130. border: 1px solid #eee;
  131. padding: 7px 10px 35px 10px;
  132. }
  133. .write-comments .comments-box .operation .item .des-box .des {
  134. width: 100%;
  135. height: 80px;
  136. line-height: 20px;
  137. border: 0;
  138. font-size: 12px;
  139. font-family: "微软雅黑";
  140. resize: none;
  141. }
  142. .write-comments .comments-box .operation .item .des-content {
  143. flex: 1;
  144. line-height: 22px;
  145. padding-top: 8px;
  146. }
  147. .write-comments .comments-box .operation .item .des-content span{
  148. width:800px;
  149. white-space: pre-wrap;
  150. overflow: hidden;
  151. text-overflow: ellipsis;
  152. display: -webkit-box;
  153. -webkit-box-orient: vertical;
  154. position: relative;
  155. line-height: 1.5;
  156. word-wrap: break-word;
  157. }
  158. .write-comments .comments-box .operation .item .des-box .des-tip {
  159. position: absolute;
  160. bottom: 5px;
  161. left: 10px;
  162. right: 10px;
  163. width: auto;
  164. background: #fff;
  165. height: 25px;
  166. line-height: 25px;
  167. text-align: right;
  168. color: #999;
  169. }
  170. .write-comments .comments-box .operation .item .img-box {
  171. flex: 1;
  172. display: flex;
  173. flex-wrap: wrap;
  174. align-items: center;
  175. margin: 0 0 -15px -15px;
  176. }
  177. .write-comments .comments-box .operation .item .img-box .file-img {
  178. display: block;
  179. border: 1px solid #eee;
  180. width: 110px;
  181. height: 110px;
  182. text-align: center;
  183. line-height: 110px;
  184. font-size: 24px;
  185. font-family: arial;
  186. color: #ccc;
  187. margin: 0 0 15px 15px;
  188. }
  189. .write-comments .comments-box .operation .item .img-box .file-img img {
  190. width: 100%;
  191. height: 100%;
  192. vertical-align: top;
  193. }
  194. .write-comments .comments-box .operation .item .img-box .img-des {
  195. color: #999;
  196. width: 112px;
  197. text-align: center;
  198. margin-bottom: 15px;
  199. }
  200. .write-comments .btn-box {
  201. background: #fff;
  202. margin-top: 20px;
  203. margin-bottom: 20px;
  204. padding: 20px 0;
  205. display: flex;
  206. justify-content: center;
  207. align-items: center;
  208. box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
  209. }
  210. .write-comments .btn-box .agree-box {
  211. cursor: pointer;
  212. margin-left: 20px;
  213. }
  214. .write-comments .btn-box .agree-box .text {
  215. margin-left: 5px;
  216. }
  217. .write-comments .btn-box .btn {
  218. padding: 0 40px;
  219. line-height: 38px;
  220. color: #fff;
  221. background: #e1251b;
  222. border-radius: 2px;
  223. }
  224. .write-comments .btn-box .btn:hover {
  225. opacity: 0.9;
  226. }
  227. .write-comments .btn-box .btn.back {
  228. background: #f9f9f9;
  229. color: #000;
  230. border: 1px solid #ddd;
  231. padding: 0 38px;
  232. line-height: 36px;
  233. }
  234. .write-comments .btn-box .btn.back:hover {
  235. opacity: 1;
  236. background: #fff;
  237. }
  238. /* 发表评论 end */