style.less 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  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. flex:1;
  58. display: flex;
  59. flex-direction: column;
  60. .img{
  61. width: 50px;
  62. height: 50px;
  63. position: relative;
  64. overflow: hidden;
  65. cursor: pointer;
  66. > img{
  67. width: 100%;
  68. height: 100%;
  69. object-fit: cover;
  70. background: #F5F7FA;
  71. }
  72. }
  73. .img.dirIcon {
  74. > img {
  75. object-fit: contain;
  76. background: initial;
  77. }
  78. }
  79. .audio{
  80. position: relative;
  81. text-align: left;
  82. }
  83. .textItem {
  84. > .name {
  85. > .not-search-res {
  86. > .dirName {
  87. font-size: 14px;
  88. word-break: break-all;
  89. white-space: normal;
  90. display: -webkit-box;
  91. -webkit-box-orient: vertical;
  92. -webkit-line-clamp: 2;
  93. overflow: hidden;
  94. cursor: pointer;
  95. }
  96. > .not-dir {
  97. font-size: 14px;
  98. word-break: break-all;
  99. white-space: normal;
  100. display: -webkit-box;
  101. -webkit-box-orient: vertical;
  102. -webkit-line-clamp: 2;
  103. overflow: hidden;
  104. }
  105. }
  106. > .search-res {
  107. > .dirName {
  108. > .self-name {
  109. font-size: 14px;
  110. overflow: hidden;
  111. white-space: pre;
  112. text-overflow: ellipsis;
  113. cursor: pointer;
  114. }
  115. > .parent-name-wrap {
  116. margin-top: 7px;
  117. margin-left: 4px;
  118. font-size: 12px;
  119. color: #646566;
  120. > .parent-name {
  121. color: #0076F6;
  122. text-decoration: underline;
  123. overflow: hidden;
  124. white-space: pre;
  125. text-overflow: ellipsis;
  126. cursor: pointer;
  127. }
  128. }
  129. }
  130. > .not-dir {
  131. > .self-name {
  132. font-size: 14px;
  133. overflow: hidden;
  134. white-space: pre;
  135. text-overflow: ellipsis;
  136. }
  137. > .parent-name-wrap {
  138. margin-top: 7px;
  139. margin-left: 4px;
  140. font-size: 12px;
  141. color: #646566;
  142. > .parent-name {
  143. color: #0076F6;
  144. text-decoration: underline;
  145. overflow: hidden;
  146. white-space: pre;
  147. text-overflow: ellipsis;
  148. cursor: pointer;
  149. }
  150. }
  151. }
  152. }
  153. }
  154. > .not-name {
  155. }
  156. }
  157. .total-number {
  158. margin-top: 14px;
  159. text-align: right;
  160. font-size: 14px;
  161. color: #646566;
  162. }
  163. // TODO:受到src/assets/style/component.less里.nodata的干扰
  164. .nodata {
  165. position: absolute;
  166. text-align: center;
  167. width: 100%;
  168. margin: 0;
  169. top: 150px;
  170. z-index: 100;
  171. > span {
  172. color: #646566;
  173. }
  174. }
  175. .upload-task-list {
  176. z-index: 1;
  177. position: absolute;
  178. right: 0;
  179. bottom: 32px;
  180. }
  181. }
  182. }
  183. .handle{
  184. display: flex;
  185. justify-content: center;
  186. .iconfont{
  187. cursor: pointer;
  188. margin: 0 7.5px;
  189. color: #202020;
  190. }
  191. .oper {
  192. cursor: pointer;
  193. position: relative;
  194. align-items: center;
  195. >i{
  196. z-index: 9;
  197. }
  198. &:hover {
  199. > ul {
  200. display: block;
  201. }
  202. }
  203. > ul {
  204. max-width: 124px;
  205. display: none;
  206. background: #fff;
  207. box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.16);
  208. top: 18px;
  209. left: 50%;
  210. z-index: 999;
  211. transform: translateX(-50%);
  212. position: absolute;
  213. &::before{
  214. border: 10px solid transparent;
  215. border-bottom: 10px solid #fff;
  216. width: 0;
  217. height: 0px;
  218. content: "";
  219. display: inline-block;
  220. position: absolute;
  221. top: -20px;
  222. left: 50%;
  223. transform: translateX(-50%);
  224. }
  225. > li {
  226. line-height: 35px;
  227. height: 35px;
  228. padding-left: 15px;
  229. text-align: left!important;
  230. min-width: 98px;
  231. &:hover {
  232. background: #EBEBEB;
  233. }
  234. }
  235. }
  236. }
  237. }
  238. .filter > div {
  239. min-width: 290px;
  240. height: 40px;
  241. border: 1px solid #EBEDF0;
  242. display: flex;
  243. align-items: center;
  244. border-radius: 20px;
  245. position: relative;
  246. font-size: 14px;
  247. vertical-align: middle;
  248. background: #F7F8FA;
  249. padding: 10px 20px 10px 20px;
  250. color: #C8C9CC;
  251. &.active{
  252. border: 1px solid #0076F6;
  253. }
  254. }
  255. .filter>div>.search {
  256. flex: 0 0 auto;
  257. margin-right: 12px;
  258. font-size: 18px;
  259. }
  260. .filter > div > select,
  261. .filter > div > input {
  262. flex: 1 0 auto;
  263. box-sizing: border-box;
  264. height: 100%;
  265. border: none;
  266. background: none;
  267. outline: none;
  268. // 为啥不生效?
  269. &::-webkit-input-placeholder {
  270. color: #C8C9CC;
  271. }
  272. &::-moz-placeholder{ /* Mozilla Firefox 19+ */
  273. color: #C8C9CC;
  274. }
  275. &:-moz-placeholder{ /* Mozilla Firefox 4 to 18 */
  276. color: #C8C9CC;
  277. }
  278. &:-ms-input-placeholder{ /* Internet Explorer 10-11 */
  279. color: #C8C9CC;
  280. }
  281. }
  282. .filter > div >.del{
  283. cursor: pointer;
  284. flex: 0 0 auto;
  285. font-size: 20px;
  286. }
  287. .submit {
  288. background-color: #0076F6 !important;
  289. border: 1px solid #0076F6 !important;
  290. }
  291. .cancel{
  292. background: #EBEBEB;
  293. }
  294. .ui-button-rect{
  295. border-radius: 4px !important;
  296. align-items: center;
  297. vertical-align: middle;
  298. color: #fff;
  299. display: flex;
  300. justify-content: center;
  301. padding: 0 16px;
  302. line-height: 36px;
  303. height: 36px;
  304. text-align: center;
  305. >i{
  306. margin-left: 4px;
  307. }
  308. }
  309. .ui-input{
  310. background-color: #fff;
  311. border: 1px solid rgba(#909090,0.5);
  312. color: #909090;
  313. }
  314. .ma-line{
  315. background-color: #EBEBEB;
  316. height: 1px;
  317. width: 100%;
  318. }
  319. .panorama{
  320. padding: 24px 30px;
  321. height: 100%;
  322. display: flex;
  323. flex-direction: column;
  324. }
  325. .comfirmhover{
  326. &:hover{
  327. color: @color!important;
  328. }
  329. &:active{
  330. color: rgba(255, 255, 255, 0.5)!important;
  331. }
  332. }
  333. .cancelhover{
  334. &:hover{
  335. color: #FA5555!important;
  336. }
  337. }
  338. // 列表为空时,上传按钮的样式。因为在“我的作品”和“我的素材”里位置不一样,所以只能写在这里。
  339. .upload-btn-in-table {
  340. cursor: pointer;
  341. // width: 100px;
  342. height: 36px;
  343. background: linear-gradient(144deg, #00AEFB 0%, #0076F6 100%);
  344. border-radius: 22px;
  345. border: none;
  346. font-size: 14px;
  347. color: #FFFFFF;
  348. margin-top: 20px;
  349. padding: 0 16px;
  350. }
  351. input::placeholder,
  352. textarea::placeholder {
  353. font-size: 14px;
  354. color: #C8C9CC !important;
  355. }