comment.less 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. @ventSpace: zxm;
  2. /*文件上传列表-begin*/
  3. .selected-file-warp,
  4. .comment-file-his-list {
  5. margin: 10px 20px;
  6. &.in-comment {
  7. margin: 10px 6px;
  8. }
  9. }
  10. .selected-file-list {
  11. display: flex;
  12. flex-wrap: wrap;
  13. justify-content: space-between;
  14. margin-right: -6px;
  15. .item {
  16. box-sizing: border-box;
  17. display: inline-block;
  18. flex: 1 1 0%;
  19. height: 118px;
  20. margin: 0 6px 6px 0;
  21. min-width: 140px;
  22. max-width: 200px;
  23. width: 150px;
  24. &.empty {
  25. height: 0;
  26. margin-bottom: 0;
  27. margin-top: 0;
  28. }
  29. .complex {
  30. border: 1px solid #e0e0e0;
  31. box-sizing: border-box;
  32. height: 100%;
  33. position: relative;
  34. .content {
  35. display: flex;
  36. flex-direction: column;
  37. height: 100%;
  38. box-sizing: border-box;
  39. .content-top {
  40. align-items: center;
  41. background-color: #f5f5f5;
  42. display: flex;
  43. flex: 1 1 0%;
  44. justify-content: center;
  45. .content-icon {
  46. background-position: 50%;
  47. background-size: contain !important;
  48. height: 55px;
  49. width: 40px;
  50. display: inline-block;
  51. overflow: hidden;
  52. text-align: left;
  53. text-indent: -9999px;
  54. }
  55. .content-image {
  56. background-position: 50%;
  57. background-repeat: no-repeat;
  58. background-size: cover;
  59. height: 100%;
  60. width: 100%;
  61. }
  62. }
  63. .content-bottom {
  64. align-items: center;
  65. background-color: #fff;
  66. display: flex;
  67. flex-basis: 30px;
  68. font-size: 13px;
  69. justify-content: flex-start;
  70. padding: 0 10px;
  71. span {
  72. overflow: hidden;
  73. text-overflow: ellipsis;
  74. white-space: nowrap;
  75. }
  76. }
  77. }
  78. .layer {
  79. opacity: 0;
  80. background-color: #f5f5f5;
  81. cursor: pointer;
  82. display: flex;
  83. flex-direction: column;
  84. height: 100%;
  85. left: 0;
  86. position: absolute;
  87. top: 0;
  88. transition: opacity 0.2s;
  89. width: 100%;
  90. &:hover {
  91. opacity: 1;
  92. }
  93. .next {
  94. height: 75px;
  95. padding: 5px;
  96. .text {
  97. color: #1e88e5 !important;
  98. align-items: center;
  99. display: flex;
  100. flex-basis: 30px;
  101. font-size: 12px;
  102. justify-content: flex-start;
  103. padding: 3px 7px 4px;
  104. word-break: break-all;
  105. display: -webkit-box;
  106. line-height: 14px;
  107. overflow: hidden;
  108. text-overflow: ellipsis;
  109. }
  110. }
  111. .buttons {
  112. flex-basis: 32px;
  113. text-align: right;
  114. display: flex;
  115. align-items: flex-end;
  116. padding-right: 5px;
  117. justify-content: flex-end;
  118. .opt-icon {
  119. background-color: #fff;
  120. border-radius: 2px;
  121. cursor: pointer;
  122. height: 24px;
  123. width: 32px;
  124. margin: 5px;
  125. text-align: center;
  126. .anticon-delete:hover {
  127. color: red;
  128. }
  129. .anticon-download:hover {
  130. color: #1e88e5 !important;
  131. }
  132. }
  133. }
  134. }
  135. .layer-image {
  136. background: #000;
  137. &:hover {
  138. opacity: 0.6;
  139. }
  140. .next {
  141. .text {
  142. color: #fff !important;
  143. }
  144. }
  145. .opt-icon {
  146. color: #000 !important;
  147. .anticon-delete:hover {
  148. color: red;
  149. }
  150. }
  151. }
  152. }
  153. }
  154. }
  155. .jeecg-comment-files {
  156. margin: 0 20px;
  157. padding-top: 3px;
  158. padding-bottom: 3px;
  159. &.@{ventSpace}-alert-info {
  160. background-color: #f5f5f5;
  161. border: 1px solid #f5f5f5;
  162. }
  163. .j-icon {
  164. cursor: pointer;
  165. display: inline-block;
  166. border: 1px solid #e6f7ff;
  167. padding: 2px 7px;
  168. margin: 0 10px;
  169. &:hover,
  170. &:focus,
  171. &:active {
  172. border-color: #fff;
  173. color: #096dd9;
  174. }
  175. .inner-button {
  176. display: inline-block;
  177. color: #9e9e9e;
  178. &:hover,
  179. &:focus,
  180. &:active {
  181. /*border-color: #fff;*/
  182. /* color: #096dd9;*/
  183. color: #000;
  184. }
  185. span {
  186. margin-right: 3px;
  187. }
  188. }
  189. }
  190. }
  191. .comment-file-list {
  192. .detail-item {
  193. display: flex;
  194. flex-direction: row;
  195. align-items: stretch;
  196. line-height: 24px;
  197. border-bottom: 1px solid #f0f0f0;
  198. height: 100%;
  199. .item-title {
  200. display: flex;
  201. align-items: center;
  202. justify-content: flex-end;
  203. flex-shrink: 0;
  204. flex-grow: 0;
  205. min-width: 100px;
  206. width: 20%;
  207. max-width: 220px;
  208. background-color: #fafafa;
  209. border-right: 1px solid #f0f0f0;
  210. /* border-left: 1px solid #f0f0f0;*/
  211. padding: 10px 0;
  212. white-space: nowrap;
  213. text-overflow: ellipsis;
  214. overflow: hidden;
  215. }
  216. .item-content {
  217. border-right: 1px solid #f0f0f0;
  218. flex-grow: 1;
  219. padding-left: 10px;
  220. display: flex;
  221. align-items: center;
  222. justify-content: flex-start;
  223. .anticon {
  224. &:hover {
  225. color: #40a9ff;
  226. }
  227. }
  228. }
  229. }
  230. }