style.less 5.6 KB

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