style.less 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. @color:#1983F6;
  2. .con {
  3. .top {
  4. display: flex;
  5. justify-content: space-between;
  6. align-items: center;
  7. }
  8. .ui-button{
  9. font-size: @color;
  10. }
  11. .second-line {
  12. margin-top: 18px;
  13. display: flex;
  14. justify-content: space-between;
  15. align-items: center;
  16. .btn{
  17. .ui-button{
  18. font-size: 14px;
  19. position: relative;
  20. padding: 0 20px;
  21. display: flex;
  22. align-items: center;
  23. border-radius: 4px;
  24. >span{
  25. display: inline-block;
  26. margin-right: 4px;
  27. }
  28. &:hover{
  29. .upload-list{
  30. display: block;
  31. }
  32. }
  33. i {
  34. font-size: 12px;
  35. transform: scale(0.923);
  36. cursor: default;
  37. }
  38. }
  39. }
  40. }
  41. >.list{
  42. margin-top: 32px;
  43. position: relative;
  44. .img{
  45. width: 50px;
  46. height: 50px;
  47. position: relative;
  48. overflow: hidden;
  49. cursor: pointer;
  50. >img{
  51. width: 100%;
  52. height: 100%;
  53. object-fit: cover;
  54. background: #F5F7FA;
  55. }
  56. }
  57. .audio{
  58. position: relative;
  59. text-align: left;
  60. }
  61. .total-number {
  62. margin-top: 14px;
  63. text-align: right;
  64. font-size: 14px;
  65. color: #646566;
  66. }
  67. // TODO:受到src/assets/style/component.less里.nodata的干扰
  68. .nodata {
  69. position: absolute;
  70. text-align: center;
  71. width: 100%;
  72. margin: 0;
  73. top: 150px;
  74. > span {
  75. color: #646566;
  76. }
  77. }
  78. .upload-task-list {
  79. z-index: 1;
  80. position: absolute;
  81. right: 0;
  82. bottom: 32px;
  83. }
  84. }
  85. }
  86. .handle{
  87. display: flex;
  88. justify-content: center;
  89. .iconfont{
  90. cursor: pointer;
  91. margin: 0 7.5px;
  92. color: #202020;
  93. }
  94. .oper {
  95. cursor: pointer;
  96. position: relative;
  97. align-items: center;
  98. >i{
  99. z-index: 9;
  100. }
  101. &:hover {
  102. > ul {
  103. display: block;
  104. }
  105. }
  106. > ul {
  107. max-width: 124px;
  108. display: none;
  109. background: #fff;
  110. box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.16);
  111. top: 18px;
  112. left: 50%;
  113. z-index: 999;
  114. transform: translateX(-50%);
  115. position: absolute;
  116. &::before{
  117. border: 10px solid transparent;
  118. border-bottom: 10px solid #fff;
  119. width: 0;
  120. height: 0px;
  121. content: "";
  122. display: inline-block;
  123. position: absolute;
  124. top: -20px;
  125. left: 50%;
  126. transform: translateX(-50%);
  127. }
  128. > li {
  129. line-height: 35px;
  130. height: 35px;
  131. padding-left: 15px;
  132. text-align: left!important;
  133. min-width: 98px;
  134. &:hover {
  135. background: #EBEBEB;
  136. }
  137. }
  138. }
  139. }
  140. }
  141. .filter > div {
  142. min-width: 290px;
  143. height: 40px;
  144. border: 1px solid #EBEDF0;
  145. display: flex;
  146. align-items: center;
  147. border-radius: 20px;
  148. position: relative;
  149. font-size: 14px;
  150. vertical-align: middle;
  151. background: #F7F8FA;
  152. padding: 10px 20px 10px 20px;
  153. color: #C8C9CC;
  154. &.active{
  155. border: 1px solid #0076F6;
  156. }
  157. }
  158. .filter>div>.search {
  159. flex: 0 0 auto;
  160. margin-right: 12px;
  161. font-size: 18px;
  162. }
  163. .filter > div > select,
  164. .filter > div > input {
  165. flex: 1 0 auto;
  166. box-sizing: border-box;
  167. height: 100%;
  168. border: none;
  169. background: none;
  170. outline: none;
  171. // 为啥不生效?
  172. &::-webkit-input-placeholder {
  173. color: #C8C9CC;
  174. }
  175. &::-moz-placeholder{ /* Mozilla Firefox 19+ */
  176. color: #C8C9CC;
  177. }
  178. &:-moz-placeholder{ /* Mozilla Firefox 4 to 18 */
  179. color: #C8C9CC;
  180. }
  181. &:-ms-input-placeholder{ /* Internet Explorer 10-11 */
  182. color: #C8C9CC;
  183. }
  184. }
  185. .filter > div >.del{
  186. cursor: pointer;
  187. flex: 0 0 auto;
  188. font-size: 20px;
  189. }
  190. .submit {
  191. background-color: #0076F6 !important;
  192. border: 1px solid #0076F6 !important;
  193. }
  194. .cancel{
  195. background: #EBEBEB;
  196. }
  197. .ui-button-rect{
  198. border-radius: 4px !important;
  199. align-items: center;
  200. vertical-align: middle;
  201. color: #fff;
  202. display: flex;
  203. justify-content: center;
  204. padding: 0 16px;
  205. line-height: 36px;
  206. height: 36px;
  207. text-align: center;
  208. >i{
  209. margin-left: 4px;
  210. }
  211. }
  212. .ui-input{
  213. background-color: #fff;
  214. border: 1px solid rgba(#909090,0.5);
  215. color: #909090;
  216. }
  217. .ma-line{
  218. background-color: #EBEBEB;
  219. height: 1px;
  220. width: 100%;
  221. }
  222. .panorama{
  223. padding: 24px 30px;
  224. }
  225. .comfirmhover{
  226. &:hover{
  227. color: @color!important;
  228. }
  229. &:active{
  230. color: rgba(255, 255, 255, 0.5)!important;
  231. }
  232. }
  233. .cancelhover{
  234. &:hover{
  235. color: #FA5555!important;
  236. }
  237. }
  238. // 列表为空时,上传按钮的样式。因为在“我的作品”和“我的素材”里位置不一样,所以只能写在这里。
  239. .upload-btn-in-table {
  240. cursor: pointer;
  241. width: 100px;
  242. height: 36px;
  243. background: linear-gradient(144deg, #00AEFB 0%, #0076F6 100%);
  244. border-radius: 22px;
  245. border: none;
  246. font-size: 14px;
  247. color: #FFFFFF;
  248. margin-top: 20px;
  249. }
  250. // 左上角上传素材按钮的提示icon,hover时的样式和一般的有tooltip的元素不一样
  251. .hover-tips.hover-tips-upload-icon {
  252. &:hover {
  253. color: #fff !important;
  254. cursor: default;
  255. }
  256. // tip的方框
  257. > div {
  258. top: -30px;
  259. left: -30px;
  260. transform: translateX(0);
  261. // tip的箭头
  262. &::before {
  263. position: absolute;
  264. bottom: -14px;
  265. transform: translateX(0);
  266. left: 30px;
  267. }
  268. .remark {
  269. line-height: 20px;
  270. }
  271. }
  272. }