index.less 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  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. }
  83. .dragOver {
  84. color: red;
  85. border: 1px dashed red;
  86. }
  87. }
  88. .content_row {
  89. padding: 4px;
  90. >div {
  91. border-radius: 6px;
  92. }
  93. }
  94. .content_col {
  95. user-select: none;
  96. /* 对大多数浏览器有效 */
  97. -webkit-user-select: none;
  98. /* Safari */
  99. -moz-user-select: none;
  100. /* Firefox */
  101. -ms-user-select: none;
  102. /* Internet Explorer/Edge */
  103. &:hover .body .detailBt {
  104. display: inline;
  105. }
  106. }
  107. .content_cover {
  108. padding: 10px;
  109. background-color: #ececec;
  110. border-top-left-radius: 6px;
  111. border-top-right-radius: 6px;
  112. position: relative;
  113. display: flex;
  114. justify-content: center;
  115. align-items: center;
  116. transition: all 0.2s;
  117. .checkbox {
  118. position: absolute;
  119. top: 6px;
  120. left: 10px;
  121. }
  122. .coverImg {
  123. max-width: 100%;
  124. max-height: 100%;
  125. }
  126. .file_info {
  127. position: absolute;
  128. bottom: 5px;
  129. padding: 0 10px;
  130. display: flex;
  131. justify-content: space-between;
  132. width: 100%;
  133. >div {
  134. background-color: rgba(0, 0, 0, 0.75);
  135. padding: 0 4px;
  136. border-radius: 4px;
  137. color: #fff;
  138. font-size: 12px;
  139. }
  140. }
  141. .playr {
  142. position: absolute;
  143. width: 35px;
  144. height: 35px;
  145. top: 50%;
  146. left: 50%;
  147. transform: translate(-50%, -50%);
  148. >img {
  149. width: 100%;
  150. height: 100%;
  151. }
  152. }
  153. .imgPreview {
  154. position: absolute;
  155. top: 50%;
  156. left: 50%;
  157. color: #fff;
  158. padding: 1px 8px;
  159. transform: translate(-50%, -50%);
  160. background-color: rgba(0, 0, 0, 0.55);
  161. border-radius: 6px;
  162. opacity: 0;
  163. transition: opacity 0.2s;
  164. }
  165. .move {
  166. position: absolute;
  167. top: 6px;
  168. right: 10px;
  169. cursor: grab;
  170. color: rgb(153, 153, 153);
  171. opacity: 0;
  172. }
  173. &:hover {
  174. .file_info>div {
  175. opacity: 0.25;
  176. }
  177. .imgPreview {
  178. opacity: 1;
  179. }
  180. .move {
  181. opacity: 1;
  182. }
  183. }
  184. }
  185. .body {
  186. padding: 6px 10px;
  187. display: flex;
  188. justify-content: space-between;
  189. align-items: center;
  190. gap: 10px;
  191. .title {
  192. flex: 1 0;
  193. overflow: hidden;
  194. span:hover {
  195. color: #1890ff;
  196. }
  197. }
  198. .detailBt {
  199. font-size: 12px;
  200. display: none;
  201. transition: opacity ease-in-out .2s;
  202. }
  203. }
  204. .actions {
  205. // border-top: 1px solid rgba(0, 0, 0, .06);
  206. padding: 4px 10px;
  207. display: flex;
  208. justify-content: space-between;
  209. line-height: 20px;
  210. }
  211. .fotter {
  212. flex: 0 1;
  213. border-top: 1px solid #e8eaec;
  214. padding: 8px 16px;
  215. }
  216. }
  217. .file {
  218. position: relative;
  219. cursor: pointer;
  220. >input {
  221. opacity: 0;
  222. position: absolute;
  223. display: block;
  224. top: 0;
  225. left: 0;
  226. cursor: pointer;
  227. right: 0;
  228. bottom: 0;
  229. width: 100%;
  230. font-size: 0;
  231. >span {
  232. display: none;
  233. }
  234. }
  235. }
  236. .file_details {
  237. display: flex;
  238. gap: 10px;
  239. .details_left {
  240. width: 300px;
  241. img,
  242. video {
  243. width: 100%;
  244. margin-bottom: 10px;
  245. }
  246. }
  247. .details_right {
  248. flex: 1 0;
  249. overflow: hidden;
  250. display: flex;
  251. flex-direction: column;
  252. gap: 10px;
  253. }
  254. .details_xq {
  255. width: 100%;
  256. margin-block-start: 0;
  257. margin-block-end: 0;
  258. padding-inline-start: 0;
  259. li {
  260. display: flex;
  261. justify-content: space-between;
  262. >span {
  263. font-size: 12px;
  264. display: inline-block;
  265. white-space: nowrap;
  266. overflow: hidden;
  267. text-overflow: ellipsis;
  268. &:first-child {
  269. width: 85px;
  270. }
  271. &:last-child {
  272. width: 175px;
  273. text-align: right;
  274. }
  275. }
  276. >div {
  277. width: 175px;
  278. text-align: right;
  279. font-size: 12px;
  280. >span {
  281. width: 100%;
  282. }
  283. }
  284. }
  285. }
  286. }
  287. .divFooter {
  288. height: 40px;
  289. display: flex;
  290. align-items: center;
  291. justify-content: space-between;
  292. gap: 10px;
  293. .selectedCloud {
  294. flex: 1 0;
  295. overflow: hidden;
  296. overflow-x: auto;
  297. height: 40px;
  298. >div {
  299. height: 38px;
  300. display: flex;
  301. gap: 8px;
  302. align-items: center;
  303. &::-webkit-scrollbar {
  304. width: 1px;
  305. /* 垂直滚动条宽度 */
  306. height: 1px;
  307. /* 水平滚动条高度 */
  308. }
  309. @-moz-document url-prefix() {
  310. .selectedCloud {
  311. scrollbar-width: none;
  312. }
  313. }
  314. }
  315. }
  316. .selectedCloud_col {
  317. width: 58px;
  318. height: 28px;
  319. background-color: #d4d4d4;
  320. border-radius: 6px;
  321. display: flex;
  322. align-items: center;
  323. justify-content: center;
  324. overflow: hidden;
  325. position: relative;
  326. >img {
  327. max-width: 100%;
  328. max-height: 100%;
  329. }
  330. .cz {
  331. opacity: 0;
  332. padding: 0 4px;
  333. border-radius: 4px;
  334. background-color: rgba(0, 0, 0, 0.75);
  335. position: absolute;
  336. top: 50%;
  337. left: 50%;
  338. transform: translate(-50%, -50%);
  339. transition: all .2;
  340. display: flex;
  341. gap: 4px;
  342. }
  343. &:hover .cz {
  344. opacity: 1;
  345. }
  346. }
  347. }
  348. .select_cloudNew_layout {
  349. display: flex;
  350. width: 100%;
  351. height: 100%;
  352. flex-direction: column;
  353. gap: 6px;
  354. }