Nenhuma descrição
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

image-upload.css 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723
  1. .upload-body {
  2. position: relative;
  3. }
  4. .upload-body .layui-tab-title {
  5. text-align: center;
  6. }
  7. .upload-body {
  8. position: relative;
  9. }
  10. .upload-body .layui-tab-title {
  11. text-align: center;
  12. }
  13. .upload-body .layui-tab-title li {
  14. font-size: 18px;
  15. font-weight: 400;
  16. line-height: 50px;
  17. padding: 0 35px;
  18. }
  19. .upload-body .layui-tab-brief>.layui-tab-title .layui-this {
  20. color: #3398cc;
  21. }
  22. .upload-body .layui-tab-brief>.layui-tab-title .layui-this:after {
  23. border: none;
  24. border-radius: 0;
  25. border-bottom: 2px solid #3398cc;
  26. }
  27. .upload-body .layui-tab-title {
  28. height: 50px;
  29. border-bottom-style: unset;
  30. }
  31. .upload-body .layui-tab-title .layui-this:after {
  32. height: 50px;
  33. width: 30px;
  34. left: 50%;
  35. margin-left: -15px;
  36. }
  37. .upload-body .layui-tab {
  38. margin: 0;
  39. }
  40. .upload-body .layui-tab-content {
  41. padding: 0;
  42. }
  43. .upload-body .upload-footer {
  44. position: fixed;
  45. text-align: center;
  46. padding: 10px 0;
  47. width: 100%;
  48. left: 0;
  49. bottom: 0;
  50. background-color: #ffff;
  51. z-index: 999;
  52. border-top: 1px solid #eee;
  53. }
  54. .upload-body .upload-footer .layui-btn-off{
  55. border-color: #eeeeee;
  56. }
  57. .upload-body .layui-btn {
  58. padding: 0 50px;
  59. }
  60. /* .upload-body .layui-btn-primary {
  61. border-color: #3398cc;
  62. color: #3398cc;
  63. }
  64. */
  65. .upload-body .upload-con {
  66. display: flex;
  67. flex-direction: row;
  68. max-height: calc(100vh - 0px - 0px) !important;
  69. width: 100%;
  70. overflow-x: hidden;
  71. overflow-y: hidden;
  72. }
  73. .upload-body .upload-con .images-con {
  74. flex: 1;
  75. position: relative;
  76. padding-left: 20px;
  77. width: calc(100% - 200px);
  78. overflow: hidden;
  79. border-top: 1px solid #eee;
  80. }
  81. .upload-body .upload-con::-webkit-scrollbar {
  82. width: 6px;
  83. height: 6px;
  84. background-color: #F5F5F5;
  85. }
  86. .upload-body .upload-con::-webkit-scrollbar-thumb {
  87. border-radius: 10px;
  88. box-shadow: inset 0 0 6px rgba(0, 0, 0, .1);
  89. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .1);
  90. background-color: #c8c8c8;
  91. }
  92. .upload-body .upload-con .upload-group {
  93. min-width: 200px;
  94. max-width: 200px;
  95. box-sizing: border-box;
  96. }
  97. .upload-body .upload-con .upload-nav {
  98. min-width: 200px;
  99. max-width: 200px;
  100. }
  101. .upload-nav {
  102. display: flex;
  103. width: 200px;
  104. align-items: flex-end;
  105. }
  106. .upload-nav .item {
  107. flex: 1;
  108. height: 32px;
  109. line-height: 32px;
  110. text-align: center;
  111. border-right: 1px solid #eee;
  112. border-bottom: 1px solid #eee;
  113. position: relative;
  114. list-style: none;
  115. cursor: pointer;
  116. }
  117. .upload-nav .item.active {
  118. height: 32px;
  119. color: #3398cc;
  120. border-top: 1px solid #eee;
  121. border-left: 1px solid #eee;
  122. border-bottom: unset;
  123. }
  124. .upload-nav .item:last-child {
  125. flex: 1;
  126. height: 32px;
  127. line-height: 32px;
  128. text-align: center;
  129. border-bottom: 1px solid #eee;
  130. border-top: unset;
  131. position: relative;
  132. list-style: none;
  133. }
  134. .upload-nav .item:last-child.active {
  135. border-top: 1px solid #eee;
  136. border-right: 1px solid #eee;
  137. border-bottom: unset;
  138. height: 32px;
  139. }
  140. /* .upload-nav .item:first-child:before {
  141. content: '';
  142. display: none;
  143. height: 100%;
  144. width: 1px;
  145. background: #eee;
  146. position: absolute;
  147. right: 0px;
  148. top: 0;
  149. z-index: 10;
  150. border-radius: 0 5px 0 0;
  151. transform: skew(10deg);
  152. }
  153. .upload-nav .item:first-child.active:before {
  154. display: block;
  155. }
  156. .upload-nav .item:last-child:before {
  157. content: '';
  158. display: none;
  159. height: 100%;
  160. width: 1px;
  161. background: #eee;
  162. position: absolute;
  163. left: 0;
  164. right: 0px;
  165. top: 0;
  166. z-index: 10;
  167. border-radius: 0 5px 0 0;
  168. transform: skew(10deg);
  169. }
  170. .upload-nav .item:last-child.active:before {
  171. display: block;
  172. } */
  173. #container {
  174. border-left: 1px solid #eee;
  175. border-right: 1px solid #eee;
  176. height: 100%;
  177. }
  178. .upload-body .upload-con .upload-group .upload-group-add {
  179. /* text-align: left; */
  180. width: 140px;
  181. padding: 0;
  182. padding-right: 0;
  183. text-overflow: ellipsis;
  184. white-space: nowrap;
  185. overflow: hidden;
  186. font-size: 12px;
  187. }
  188. .upload-body .upload-con .upload-group .upload-group-add button {
  189. font-size: 12px;
  190. border: unset;
  191. display: block;
  192. color: #6b6b6b !important;
  193. padding: 10px 0px 10px 15px;
  194. height: unset;
  195. line-height: unset;
  196. }
  197. .upload-body .upload-con .upload-group .upload-group-add button i {
  198. font-size: 14px;
  199. color: #737373;
  200. margin-right: 5px;
  201. }
  202. .upload-body .upload-con .upload-group-con {
  203. height: 100%;
  204. max-height: calc(100vh - 51px - 38px - 92px) !important;
  205. overflow-x: hidden;
  206. overflow-y: auto;
  207. }
  208. .upload-body .upload-con .upload-dirimg-con {
  209. height: 100%;
  210. max-height: calc(100vh - 51px - 0px - 92px) !important;
  211. overflow-x: hidden;
  212. overflow-y: auto;
  213. }
  214. .upload-body .upload-con .upload-group-con::-webkit-scrollbar, .upload-body .upload-con .upload-dirimg-con::-webkit-scrollbar {
  215. width: 6px;
  216. height: 6px;
  217. background-color: #F5F5F5;
  218. }
  219. .upload-body .upload-con .upload-group-con::-webkit-scrollbar-thumb, .upload-body .upload-con .upload-dirimg-con::-webkit-scrollbar-thumb {
  220. border-radius: 10px;
  221. box-shadow: inset 0 0 6px rgba(0, 0, 0, .1);
  222. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .1);
  223. background-color: #c8c8c8;
  224. }
  225. .upload-body .upload-con .group-item {
  226. display: flex;
  227. align-items: center;
  228. }
  229. .upload-body .upload-con .group-item.active {
  230. color: #3398cc;
  231. background-color: #f0faff;
  232. /*border-right: 2px solid #2d8cf0;*/
  233. }
  234. .upload-body .upload-con .group-item.active a {
  235. color: #3398cc !important;
  236. }
  237. .upload-body .upload-con .image-header .image-header-l .layui-icon-picture {
  238. position: absolute;
  239. font-size: 22px;
  240. }
  241. /* .upload-body .upload-con .image-header .image-header-l .layui-btn .text {
  242. padding-left: 28px;
  243. } */
  244. .upload-body .upload-con .images-con .img-about {
  245. width: auto;
  246. position: absolute;
  247. display: inline-block;
  248. border: 1px solid #e5e5e5;
  249. padding: 2px 10px;
  250. margin-left: 10px;
  251. top: 20px;
  252. }
  253. .upload-body .layui-btn-normal {
  254. background-color: #3398cc;
  255. }
  256. .upload-body .layui-border-blue {
  257. border-color: #90d0f1 !important;
  258. color: #3398cc !important;
  259. }
  260. .upload-body .layui-btn-yes {
  261. background: #3398cc;
  262. color: #fff;
  263. border: 1px solid #3398cc;
  264. }
  265. .upload-body .upload-con .images-con .img-about .tag-left {
  266. position: absolute;
  267. left: -12px;
  268. top: 5px;
  269. }
  270. .upload-body .upload-con .images-con .img-about .tag-left:before,
  271. .upload-body .upload-con .images-con .img-about .tag-left:after {
  272. position: absolute;
  273. content: '';
  274. border-top: 6px transparent dashed;
  275. border-left: 6px transparent dashed;
  276. border-bottom: 6px transparent dashed;
  277. border-right: 6px #fff solid;
  278. }
  279. .upload-body .upload-con .images-con .img-about .tag-left:before {
  280. border-right: 6px #d8d5d5 solid;
  281. }
  282. .upload-body .upload-con .images-con .img-about .tag-left:after {
  283. left: 1px;
  284. border-right: 6px #fff solid;
  285. }
  286. .upload-body .upload-con .images-con .img-about .text {
  287. font-size: 12px;
  288. color: #969696;
  289. }
  290. .upload-body .upload-con .group-item .group-item-l a {
  291. display: block;
  292. color: #6b6b6b;
  293. padding: 10px 10px 10px 15px;
  294. white-space: nowrap;
  295. overflow: hidden;
  296. text-overflow: ellipsis;
  297. }
  298. .upload-body .upload-con .group-item:hover {
  299. color: #3398cc;
  300. background-color: #f0faff;
  301. /* border-right: 2px solid #2d8cf0;*/
  302. }
  303. .upload-body .upload-con .group-item:hover a {
  304. color: #3398cc;
  305. }
  306. .upload-body .upload-con .group-item .group-item-l {
  307. width: 135px;
  308. padding: 0;
  309. padding-right: 0;
  310. text-overflow: ellipsis;
  311. white-space: nowrap;
  312. overflow: hidden;
  313. font-size: 12px;
  314. }
  315. .upload-body .upload-con .group-item .group-item-r {
  316. font-size: 12px;
  317. padding-right: 5px;
  318. }
  319. .upload-body .upload-con .image-list li:nth-child(5n) {
  320. margin-right: 0;
  321. }
  322. /* .upload-body .upload-con .image-list li:nth-child(5n) .layer .close {
  323. right: -5px;
  324. } */
  325. .upload-body .upload-con .image-header {
  326. height: 40px;
  327. position: relative;
  328. padding-top: 15px;
  329. display: flex;
  330. flex-wrap: nowrap;
  331. justify-content: space-between;
  332. /* padding-bottom: 10px; */
  333. }
  334. .upload-body .upload-con .image-header .image-header-l {
  335. flex: 1;
  336. }
  337. .upload-body .upload-con .image-header .image-header-l .layui-btn {
  338. padding: 0 8px;
  339. width: 96px;
  340. height: 32px;
  341. line-height: 32px;
  342. color: #fff;
  343. background: #3398cc;
  344. border: 1px solid #3398cc;
  345. }
  346. .upload-body .upload-con .image-header .image-header-l .layui-btn i.layui-icon{
  347. display: inline-block;
  348. color: #fff;
  349. font-size: 18px;
  350. }
  351. .upload-body .upload-con .tips-about {
  352. padding: 0 2px;
  353. background-color: #ccc;
  354. border-radius: 10px;
  355. }
  356. .upload-body .upload-con .tips-about i {
  357. font-size: 12px;
  358. color: #fff;
  359. }
  360. .upload-body .upload-con .image-list {
  361. padding-top: 10px;
  362. overflow: hidden;
  363. /*height: auto;*/
  364. height: 356px;
  365. width: 761px;
  366. overflow-y: auto;
  367. overflow-x: hidden;
  368. }
  369. .upload-body .upload-con .image-list li {
  370. float: left;
  371. margin: 0 16px 18px 0;
  372. position: relative;
  373. display: table;
  374. }
  375. .upload-body .upload-con .image-list li .picbox {
  376. box-sizing: border-box;
  377. position: relative;
  378. display: inline-block;
  379. width: 136px;
  380. height: 136px;
  381. line-height: 133px;
  382. overflow: hidden;
  383. border: 1px solid #e9edef;
  384. border-radius: 2px;
  385. cursor: pointer;
  386. background-color: #e9edef;
  387. }
  388. .upload-body .upload-con .image-list li .layer {
  389. display: none;
  390. }
  391. .image-pages-r {
  392. padding-right: 5px;
  393. }
  394. .upload-body .upload-con .image-list li .layer-disappear {
  395. display: none;
  396. }
  397. .layui-form .layui-form-item .layui-inline {
  398. margin-bottom: 5px;
  399. margin-right: 7px;
  400. }
  401. .image-header-r .layui-form .layui-form-item .layui-inline .layui-input{
  402. height: 32px;
  403. }
  404. .upload-body .upload-con .image-list li.up-over .image-select-layer {
  405. position: absolute;
  406. top: 0;
  407. bottom: 0;
  408. left: 0;
  409. right: 0;
  410. background-color: rgba(0, 0, 0, 0.7);
  411. display: none;
  412. border-radius: 2px;
  413. align-items: center;
  414. justify-content: center;
  415. }
  416. .upload-body .upload-con .image-list li.up-over .image-select-layer {
  417. display: flex;
  418. }
  419. .upload-body .upload-con .image-list li .image-select-layer {
  420. display: none;
  421. }
  422. .upload-body .upload-con .image-list li.up-over .image-select-layer i {
  423. font-size: 34px;
  424. color: #3398cc;
  425. }
  426. .upload-body .upload-con .image-list li.up-over .image-select-layer i {
  427. font-size: 34px;
  428. color: #3398cc;
  429. }
  430. .upload-body .upload-con .image-list li .picbox img {
  431. width: 100%;
  432. /* height: 100%; */
  433. }
  434. .upload-body .upload-con .image-list li .namebox {
  435. font-size: 12px;
  436. line-height: 16px;
  437. color: #333;
  438. margin-top: 5px;
  439. width: 136px;
  440. word-break: break-all;
  441. text-overflow: ellipsis;
  442. display: -webkit-box;
  443. -webkit-box-orient: vertical;
  444. -webkit-line-clamp: 2;
  445. overflow: hidden;
  446. }
  447. .upload-body .upload-con .image-list li .picbox .layer .image-size {
  448. position: absolute;
  449. bottom: 0;
  450. left: 0;
  451. right: 0;
  452. height: 20px;
  453. line-height: 20px;
  454. text-align: center;
  455. background-color: rgba(0, 0, 0, 0.7);
  456. color: #ffffff;
  457. font-size: 12px;
  458. }
  459. .upload-body .upload-con .image-list li:hover .layer {
  460. display: block;
  461. }
  462. .upload-body .upload-con .image-list li:hover .namebox .eyou_imgname {
  463. display: block;
  464. }
  465. .upload-body .upload-con .image-list li:hover .layer .close {
  466. position: absolute;
  467. cursor: pointer;
  468. top: -8px;
  469. right: -8px;
  470. font-size: 20px;
  471. color: #b8b9bd;
  472. }
  473. .upload-body .upload-con .image-list li.up-over:hover .layer .close {
  474. position: absolute;
  475. cursor: pointer;
  476. top: -8px;
  477. right: -8px;
  478. font-size: 20px;
  479. color: #3398cc;
  480. }
  481. .upload-body .upload-con .image-list li .layer .close {
  482. position: absolute;
  483. cursor: pointer;
  484. top: -8px;
  485. right: -8px;
  486. font-size: 20px;
  487. color: #3398cc;
  488. }
  489. .upload-body .upload-con .image-list li .layer .close:hover {
  490. color: #3398cc;
  491. }
  492. .upload-body .upload-con .image-pages {
  493. display: flex;
  494. align-items: center;
  495. }
  496. .upload-body .upload-con .image-pages .image-pages-l {
  497. flex: 1;
  498. }
  499. .upload-body .upload-con .image-pages .layui-laypage {
  500. margin: 0;
  501. }
  502. .upload-body .upload-con .image-pages .layui-laypage a:hover {
  503. color: #3398cc;
  504. }
  505. .upload-body .upload-con .image-pages .image-pages-l .layui-btn {
  506. padding: 0 10px 0 10px;
  507. font-size: 14px;
  508. color: #7a7a7a;
  509. height: 26px;
  510. line-height: 24px;
  511. }
  512. .upload-body .upload-con .image-pages .image-pages-l .layui-btn:hover {
  513. color: #3398cc;
  514. border-color:unset
  515. }
  516. .upload-body .upload-con .layui-laypage .layui-laypage-curr .layui-laypage-em {
  517. background-color: #fff;
  518. }
  519. .upload-body .upload-con .layui-laypage .layui-laypage-curr em {
  520. position: relative;
  521. color: #3398cc;
  522. }
  523. .upload-body .upload-con .layui-laypage .layui-laypage-curr {
  524. border: 1px solid #3398cc;
  525. }
  526. .upload-body .upload-con .image-selector-network .layui-form-item .layui-input-inline {
  527. margin-right: 0;
  528. }
  529. .upload-body .upload-con .image-selector-network .layui-btn {
  530. padding: 0 20px;
  531. }
  532. .upload-body .upload-con .image-selector-network {
  533. display: flex;
  534. flex-wrap: nowrap;
  535. justify-content: center;
  536. align-items: center;
  537. width: 100%;
  538. height: 485px;
  539. z-index: 2;
  540. background-color: #fff;
  541. }
  542. .upload-body .upload-con .image-selector-network .layui-input{
  543. border-radius: unset !important;
  544. }
  545. .upload-body .upload-con .image-selector-network .layui-btn{
  546. border-radius: unset !important;
  547. }
  548. /* 分页 */
  549. .pagination {
  550. display: inline-block;
  551. }
  552. .pagination li {
  553. display: inline-block;
  554. border: 1px solid #eee;
  555. }
  556. .pagination li a {
  557. vertical-align: middle;
  558. width: 24px;
  559. text-align: center;
  560. display: inline-block;
  561. height: 24px;
  562. line-height: 24px;
  563. background-color: #fff;
  564. color: #333;
  565. font-size: 14px;
  566. }
  567. .pagination>li.disabled a {
  568. color: #cfcfcf;
  569. }
  570. .pagination li.active {
  571. border: 1px solid #3398cc;
  572. }
  573. .pagination li.active a {
  574. color: #3398cc;
  575. }
  576. .eyou_imgname {
  577. position: absolute;
  578. overflow: hidden;
  579. bottom: 21px;
  580. width: 134px;
  581. left: 1px;
  582. height: 20px;
  583. line-height: 20px;
  584. text-align: center;
  585. background-color: rgba(0, 0, 0, 0.7);
  586. color: #ffffff;
  587. font-size: 12px;
  588. display: none;
  589. }
  590. /*滚动条样式*/
  591. .zl-scrollBarBox {
  592. height: 100%;
  593. position: absolute;
  594. background: #f3f3f3;
  595. }
  596. .zl-scrollBar {
  597. position: absolute;
  598. left: 0;
  599. top: 0;
  600. background: #ddd;
  601. transition: background 0.3s;
  602. }
  603. .zl-scrollBar.zl-verticalBar {
  604. min-height: 10px;
  605. }
  606. .zl-scrollBar.zl-horizontalBar {
  607. min-width: 10px;
  608. }
  609. .zl-scrollBar:hover {
  610. background: #848484;
  611. }
  612. .zl-scrollContentDiv {
  613. position: relative !important;
  614. width: 100% !important;
  615. height: 100% !important;
  616. padding: 0 !important;
  617. margin: 0 !important;
  618. top: 0;
  619. left: 0;
  620. }