index.less 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. .cloudNew_layout {
  2. display: flex;
  3. min-width: 1200px;
  4. height: calc(100vh - 98px);
  5. flex-direction: column;
  6. gap: 6px;
  7. }
  8. .cloudNew_search {}
  9. .cloudNew {
  10. display: flex;
  11. flex: 1 0;
  12. overflow: hidden;
  13. height: 100%;
  14. .folder {
  15. width: 238px;
  16. border-right: 1px solid #e8eaec;
  17. overflow: hidden;
  18. display: flex;
  19. flex-direction: column;
  20. .top {
  21. border-bottom: 1px solid #e8eaec;
  22. padding: 6px;
  23. display: flex;
  24. flex-direction: column;
  25. flex: 0 1;
  26. }
  27. .bottom {
  28. padding: 4px 6px 4px 2px;
  29. flex: 1 0;
  30. overflow: hidden;
  31. overflow-y: auto;
  32. }
  33. }
  34. }
  35. .material {
  36. flex: 1 0;
  37. overflow: hidden;
  38. display: flex;
  39. flex-direction: column;
  40. .operates {
  41. border-bottom: 1px solid #e8eaec;
  42. padding: 8px 16px;
  43. flex: 0 1;
  44. display: flex;
  45. justify-content: space-between;
  46. }
  47. .left_bts {
  48. display: flex;
  49. flex-wrap: wrap;
  50. gap: 10px;
  51. align-items: center;
  52. }
  53. .content {
  54. width: 100%;
  55. flex: 1 0;
  56. overflow: hidden;
  57. min-height: 100px;
  58. }
  59. .content_scroll {
  60. height: 100%;
  61. overflow-y: auto;
  62. padding: 12px;
  63. div.content_scroll_div {
  64. display: flex;
  65. // gap: 10px;
  66. flex-wrap: wrap;
  67. }
  68. .placeholder {
  69. position: absolute;
  70. pointer-events: none;
  71. color: #6c6c6c;
  72. width: 100%;
  73. height: 100%;
  74. font-weight: 600;
  75. font-size: 18px;
  76. display: flex;
  77. justify-content: center;
  78. align-items: center;
  79. z-index: 100;
  80. background-color: rgba(255, 224, 224, 0.5);
  81. border: 1px dashed 9b9b9b;
  82. top: 0;
  83. left: 0;
  84. }
  85. .dragOver {
  86. color: red;
  87. border: 1px dashed red;
  88. }
  89. }
  90. .content_row {
  91. padding: 4px;
  92. >div {
  93. border-radius: 6px;
  94. }
  95. }
  96. .content_col {
  97. user-select: none;
  98. /* 对大多数浏览器有效 */
  99. -webkit-user-select: none;
  100. /* Safari */
  101. -moz-user-select: none;
  102. /* Firefox */
  103. -ms-user-select: none;
  104. /* Internet Explorer/Edge */
  105. &:hover .body .detailBt {
  106. display: inline;
  107. }
  108. }
  109. .content_cover {
  110. padding: 10px;
  111. background-color: #ececec;
  112. border-top-left-radius: 6px;
  113. border-top-right-radius: 6px;
  114. position: relative;
  115. display: flex;
  116. justify-content: center;
  117. align-items: center;
  118. transition: all 0.2s;
  119. .checkbox {
  120. position: absolute;
  121. top: 6px;
  122. left: 10px;
  123. z-index: 1;
  124. }
  125. .coverImg {
  126. max-width: 100%;
  127. max-height: 100%;
  128. }
  129. .file_info {
  130. position: absolute;
  131. bottom: 5px;
  132. padding: 0 10px;
  133. display: flex;
  134. justify-content: space-between;
  135. width: 100%;
  136. z-index: 1;
  137. >div {
  138. background-color: rgba(0, 0, 0, 0.75);
  139. padding: 0 4px;
  140. border-radius: 4px;
  141. color: #fff;
  142. font-size: 12px;
  143. }
  144. }
  145. .playr {
  146. position: absolute;
  147. width: 35px;
  148. height: 35px;
  149. top: 50%;
  150. left: 50%;
  151. transform: translate(-50%, -50%);
  152. >img {
  153. width: 100%;
  154. height: 100%;
  155. }
  156. }
  157. .imgPreview {
  158. position: absolute;
  159. top: 50%;
  160. left: 50%;
  161. color: #fff;
  162. padding: 1px 8px;
  163. transform: translate(-50%, -50%);
  164. background-color: rgba(0, 0, 0, 0.55);
  165. border-radius: 6px;
  166. opacity: 0;
  167. transition: opacity 0.2s;
  168. z-index: 1;
  169. }
  170. .move {
  171. position: absolute;
  172. top: 6px;
  173. right: 10px;
  174. cursor: grab;
  175. color: rgb(153, 153, 153);
  176. opacity: 0;
  177. }
  178. &:hover {
  179. .file_info>div {
  180. opacity: 0.25;
  181. }
  182. .imgPreview {
  183. opacity: 1;
  184. }
  185. .move {
  186. opacity: 1;
  187. }
  188. }
  189. }
  190. .body {
  191. padding: 6px 10px;
  192. display: flex;
  193. justify-content: space-between;
  194. align-items: center;
  195. gap: 10px;
  196. .title {
  197. flex: 1 0;
  198. overflow: hidden;
  199. span:hover {
  200. color: #1890ff;
  201. }
  202. }
  203. .detailBt {
  204. font-size: 12px;
  205. display: none;
  206. transition: opacity ease-in-out .2s;
  207. }
  208. }
  209. .actions {
  210. // border-top: 1px solid rgba(0, 0, 0, .06);
  211. padding: 4px 10px;
  212. display: flex;
  213. justify-content: space-between;
  214. line-height: 20px;
  215. }
  216. .fotter {
  217. flex: 0 1;
  218. border-top: 1px solid #e8eaec;
  219. padding: 8px 16px;
  220. }
  221. }
  222. .file {
  223. position: relative;
  224. cursor: pointer;
  225. >input {
  226. opacity: 0;
  227. position: absolute;
  228. display: block;
  229. top: 0;
  230. left: 0;
  231. cursor: pointer;
  232. right: 0;
  233. bottom: 0;
  234. width: 100%;
  235. font-size: 0;
  236. >span {
  237. display: none;
  238. }
  239. }
  240. }
  241. .file_details {
  242. display: flex;
  243. gap: 10px;
  244. .details_left {
  245. width: 300px;
  246. img,
  247. video {
  248. width: 100%;
  249. margin-bottom: 10px;
  250. }
  251. }
  252. .details_right {
  253. flex: 1 0;
  254. overflow: hidden;
  255. display: flex;
  256. flex-direction: column;
  257. gap: 10px;
  258. }
  259. .details_xq {
  260. width: 100%;
  261. margin-block-start: 0;
  262. margin-block-end: 0;
  263. padding-inline-start: 0;
  264. li {
  265. display: flex;
  266. justify-content: space-between;
  267. >span {
  268. font-size: 12px;
  269. display: inline-block;
  270. white-space: nowrap;
  271. overflow: hidden;
  272. text-overflow: ellipsis;
  273. &:first-child {
  274. width: 85px;
  275. }
  276. &:last-child {
  277. width: 175px;
  278. text-align: right;
  279. }
  280. }
  281. >div {
  282. width: 175px;
  283. text-align: right;
  284. font-size: 12px;
  285. >span {
  286. width: 100%;
  287. }
  288. }
  289. }
  290. }
  291. }
  292. .divFooter {
  293. height: 40px;
  294. display: flex;
  295. align-items: center;
  296. justify-content: space-between;
  297. gap: 10px;
  298. .selectedCloud {
  299. flex: 1 0;
  300. overflow: hidden;
  301. overflow-x: auto;
  302. height: 40px;
  303. >div {
  304. height: 38px;
  305. display: flex;
  306. gap: 8px;
  307. align-items: center;
  308. &::-webkit-scrollbar {
  309. width: 1px;
  310. /* 垂直滚动条宽度 */
  311. height: 1px;
  312. /* 水平滚动条高度 */
  313. }
  314. @-moz-document url-prefix() {
  315. .selectedCloud {
  316. scrollbar-width: none;
  317. }
  318. }
  319. }
  320. }
  321. .selectedCloud_col {
  322. width: 58px;
  323. height: 28px;
  324. background-color: #d4d4d4;
  325. border-radius: 6px;
  326. display: flex;
  327. align-items: center;
  328. justify-content: center;
  329. overflow: hidden;
  330. position: relative;
  331. border: 1px solid transparent;
  332. &.active {
  333. border-color: red;
  334. }
  335. >img {
  336. max-width: 100%;
  337. max-height: 100%;
  338. }
  339. .cz {
  340. opacity: 0;
  341. padding: 0 4px;
  342. border-radius: 4px;
  343. background-color: rgba(0, 0, 0, 0.75);
  344. position: absolute;
  345. top: 50%;
  346. left: 50%;
  347. transform: translate(-50%, -50%);
  348. transition: all .2;
  349. display: flex;
  350. gap: 4px;
  351. z-index: 1;
  352. }
  353. &:hover .cz {
  354. opacity: 1;
  355. }
  356. }
  357. }
  358. .select_cloudNew_layout {
  359. display: flex;
  360. width: 100%;
  361. height: 100%;
  362. flex-direction: column;
  363. gap: 6px;
  364. }
  365. .mediaPic_select {
  366. width: 100%;
  367. height: 100%;
  368. display: flex;
  369. border-radius: 4px;
  370. overflow: hidden;
  371. justify-content: center;
  372. align-items: center;
  373. .mediaPicImgList {
  374. display: flex;
  375. width: 100%;
  376. }
  377. .mediaPicImgList1 {
  378. >img {
  379. height: 100%;
  380. }
  381. }
  382. .mediaPicImgList3 {
  383. flex-wrap: wrap;
  384. >img {
  385. width: calc(33.33% - 2px);
  386. object-fit: contain;
  387. &:not(:first-child) {
  388. margin-left: 3px;
  389. }
  390. }
  391. }
  392. .mediaPicImgList4,
  393. .mediaPicImgList6 {
  394. flex-wrap: wrap;
  395. height: 120px;
  396. width: 120px;
  397. column-gap: 3px;
  398. >img {
  399. height: calc(50% - 1.5px);
  400. object-fit: contain;
  401. &:nth-child(1),
  402. &:nth-child(2) {
  403. margin-bottom: 3px;
  404. }
  405. }
  406. }
  407. .mediaPicImgList6 {
  408. width: 100%;
  409. justify-content: center;
  410. }
  411. .mediaPicImgList9 {
  412. flex-wrap: wrap;
  413. height: 120px;
  414. width: 120px;
  415. column-gap: 1.5px;
  416. >img {
  417. height: calc(33.333% - 1.5px);
  418. object-fit: contain;
  419. }
  420. }
  421. }