list.wxss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. /* ==================
  2. 列表
  3. ==================== */
  4. .grayscale {
  5. filter: grayscale(1);
  6. }
  7. .comm-list+.comm-list {
  8. margin-top: 30rpx
  9. }
  10. .comm-list>.item {
  11. transition: all .6s ease-in-out 0s;
  12. transform: translateX(0rpx)
  13. }
  14. .comm-list>.item.move-cur {
  15. transform: translateX(-260rpx)
  16. }
  17. .comm-list>.item .move {
  18. position: absolute;
  19. right: 0;
  20. display: flex;
  21. width: 260rpx;
  22. height: 100%;
  23. transform: translateX(100%)
  24. }
  25. .comm-list>.item .move view {
  26. display: flex;
  27. flex: 1;
  28. justify-content: center;
  29. align-items: center
  30. }
  31. .comm-list.menu-avatar {
  32. overflow: hidden;
  33. }
  34. .comm-list.menu-avatar>.item {
  35. position: relative;
  36. display: flex;
  37. padding-right: 10rpx;
  38. height: 140rpx;
  39. background-color: var(--white);
  40. justify-content: flex-end;
  41. align-items: center
  42. }
  43. .comm-list.menu-avatar>.item>.avatar {
  44. position: absolute;
  45. left: 30rpx
  46. }
  47. .comm-list.menu-avatar>.item .flex .text-cut {
  48. max-width: 510rpx
  49. }
  50. .comm-list.menu-avatar>.item .content {
  51. position: absolute;
  52. left: 146rpx;
  53. width: calc(100% - 96rpx - 60rpx - 120rpx - 20rpx);
  54. line-height: 1.6em;
  55. }
  56. .comm-list.menu-avatar>.item .content.flex-sub {
  57. width: calc(100% - 96rpx - 60rpx - 20rpx);
  58. }
  59. .comm-list.menu-avatar>.item .content>view:first-child {
  60. font-size: 30rpx;
  61. display: flex;
  62. align-items: center
  63. }
  64. .comm-list.menu-avatar>.item .content .tag.small {
  65. display: inline-block;
  66. margin-left: 10rpx;
  67. height: 28rpx;
  68. font-size: 16rpx;
  69. line-height: 32rpx
  70. }
  71. .comm-list.menu-avatar>.item .action {
  72. width: 100rpx;
  73. text-align: center
  74. }
  75. .comm-list.menu-avatar>.item .action view+view {
  76. margin-top: 10rpx
  77. }
  78. .comm-list.menu-avatar.comment>.item .content {
  79. position: relative;
  80. left: 0;
  81. width: auto;
  82. flex: 1;
  83. }
  84. .comm-list.menu-avatar.comment>.item {
  85. padding: 30rpx 30rpx 30rpx 120rpx;
  86. height: auto
  87. }
  88. .comm-list.menu-avatar.comment .avatar {
  89. align-self: flex-start
  90. }
  91. .comm-list.menu>.item {
  92. position: relative;
  93. display: flex;
  94. padding: 0 30rpx;
  95. min-height: 100rpx;
  96. background-color: var(--white);
  97. justify-content: space-between;
  98. align-items: center
  99. }
  100. .comm-list.menu>.item:last-child:after {
  101. border: none
  102. }
  103. .comm-list.menu>.item:after {
  104. position: absolute;
  105. top: 0;
  106. left: 0;
  107. box-sizing: border-box;
  108. width: 200%;
  109. height: 200%;
  110. border-bottom: 1rpx solid #ddd;
  111. border-radius: inherit;
  112. content: " ";
  113. transform: scale(.5);
  114. transform-origin: 0 0;
  115. pointer-events: none
  116. }
  117. .comm-list.menu>.item.grayscale {
  118. background-color: #f5f5f5
  119. }
  120. .comm-list.menu>.item.cur {
  121. background-color: #fcf7e9
  122. }
  123. .comm-list.menu>.item.arrow {
  124. padding-right: 90rpx
  125. }
  126. .comm-list.menu>.item.arrow:before {
  127. position: absolute;
  128. top: 0;
  129. right: 30rpx;
  130. bottom: 0;
  131. display: block;
  132. margin: auto;
  133. width: 30rpx;
  134. height: 30rpx;
  135. color: var(--grey);
  136. content: "\e6a3";
  137. text-align: center;
  138. font-size: 34rpx;
  139. font-family: "icon";
  140. line-height: 30rpx
  141. }
  142. .comm-list.menu>.item button.content {
  143. padding: 0;
  144. background-color: transparent;
  145. justify-content: flex-start
  146. }
  147. .comm-list.menu>.item button.content:after {
  148. display: none
  149. }
  150. .comm-list.menu>.item .avatar-group .avatar {
  151. border-color: var(--white)
  152. }
  153. .comm-list.menu>.item .content>view:first-child {
  154. display: flex;
  155. align-items: center
  156. }
  157. .comm-list.menu>.item .content>text[class*=icon] {
  158. display: inline-block;
  159. margin-right: 10rpx;
  160. width: 1.6em;
  161. text-align: center
  162. }
  163. .comm-list.menu>.item .content>image {
  164. display: inline-block;
  165. margin-right: 10rpx;
  166. width: 1.6em;
  167. height: 1.6em;
  168. vertical-align: middle
  169. }
  170. .comm-list.menu>.item .content {
  171. font-size: 30rpx;
  172. line-height: 1.6em;
  173. flex: 1
  174. }
  175. .comm-list.menu>.item .content .tag.small {
  176. display: inline-block;
  177. margin-left: 10rpx;
  178. height: 28rpx;
  179. font-size: 16rpx;
  180. line-height: 32rpx
  181. }
  182. .comm-list.menu>.item .action .tag:empty {
  183. right: 10rpx
  184. }
  185. .comm-list.menu {
  186. display: block;
  187. overflow: hidden
  188. }
  189. .comm-list.menu.small-border>.item:after {
  190. left: 30rpx;
  191. width: calc(200% - 120rpx)
  192. }
  193. .comm-list.grid>.item {
  194. position: relative;
  195. display: flex;
  196. padding: 20rpx 0 30rpx;
  197. transition-duration: 0s;
  198. flex-direction: column
  199. }
  200. .comm-list.grid>.item:after {
  201. position: absolute;
  202. top: 0;
  203. left: 0;
  204. box-sizing: border-box;
  205. width: 200%;
  206. height: 200%;
  207. border-right: 1px solid rgba(0, 0, 0, .1);
  208. border-bottom: 1px solid rgba(0, 0, 0, .1);
  209. border-radius: inherit;
  210. content: " ";
  211. transform: scale(.5);
  212. transform-origin: 0 0;
  213. pointer-events: none
  214. }
  215. .comm-list.grid>.item text {
  216. display: block;
  217. margin-top: 10rpx;
  218. color: #888;
  219. font-size: 26rpx;
  220. line-height: 40rpx
  221. }
  222. .comm-list.grid>.item [class*=icon] {
  223. position: relative;
  224. display: block;
  225. margin-top: 20rpx;
  226. width: 100%;
  227. font-size: 48rpx
  228. }
  229. .comm-list.grid>.item .tag {
  230. right: auto;
  231. left: 50%;
  232. margin-left: 20rpx
  233. }
  234. .comm-list.grid {
  235. background-color: var(--white);
  236. text-align: center
  237. }
  238. .comm-list.grid.no-border>.item {
  239. padding-top: 10rpx;
  240. padding-bottom: 20rpx
  241. }
  242. .comm-list.grid.no-border>.item:after {
  243. border: none
  244. }
  245. .comm-list.grid.no-border {
  246. padding: 20rpx 10rpx
  247. }
  248. .comm-list.grid.col-3>.item:nth-child(3n):after,
  249. .comm-list.grid.col-4>.item:nth-child(4n):after,
  250. .comm-list.grid.col-5>.item:nth-child(5n):after {
  251. border-right-width: 0
  252. }
  253. .comm-list.card-menu {
  254. overflow: hidden;
  255. margin-right: 30rpx;
  256. margin-left: 30rpx;
  257. border-radius: 20rpx
  258. }