fileinput.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727
  1. /*!
  2. * bootstrap-fileinput vh.1.0.0 from v5.5.2
  3. * http://plugins.krajee.com/file-input
  4. *
  5. * Krajee default styling for bootstrap-fileinput.
  6. *
  7. * Author: Kartik Visweswaran
  8. * Copyright: 2014 - 2022, Kartik Visweswaran, Krajee.com
  9. *
  10. * Licensed under the BSD-3-Clause
  11. * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md
  12. */
  13. .file-loading input[type=file],
  14. input[type=file].file-loading {
  15. width: 0;
  16. height: 0;
  17. }
  18. .file-no-browse {
  19. position: absolute;
  20. left: 50%;
  21. bottom: 20%;
  22. width: 1px;
  23. height: 1px;
  24. font-size: 0;
  25. opacity: 0;
  26. border: none;
  27. background: none;
  28. outline: none;
  29. box-shadow: none;
  30. }
  31. .kv-hidden,
  32. .file-caption-icon,
  33. .file-zoom-dialog .modal-header:before,
  34. .file-zoom-dialog .modal-header:after,
  35. .file-input-new .file-preview,
  36. .file-input-new .close,
  37. .file-input-new .glyphicon-file,
  38. .file-input-new .fileinput-remove-button,
  39. .file-input-new .fileinput-upload-button,
  40. .file-input-new .no-browse .input-group-btn,
  41. .file-input-ajax-new .fileinput-remove-button,
  42. .file-input-ajax-new .fileinput-upload-button,
  43. .file-input-ajax-new .no-browse .input-group-btn,
  44. .hide-content .kv-file-content,
  45. .is-locked .fileinput-upload-button,
  46. .is-locked .fileinput-remove-button {
  47. display: none;
  48. }
  49. .file-caption .input-group {
  50. align-items: center;
  51. }
  52. .btn-file input[type=file],
  53. .file-caption-icon,
  54. .file-preview .fileinput-remove,
  55. .krajee-default .file-thumb-progress,
  56. .file-zoom-dialog .btn-navigate,
  57. .file-zoom-dialog .floating-buttons {
  58. position: absolute;
  59. }
  60. .file-caption-icon .kv-caption-icon {
  61. line-height: inherit;
  62. }
  63. .file-input,
  64. .file-loading:before,
  65. .btn-file,
  66. .file-caption,
  67. .file-preview,
  68. .krajee-default.file-preview-frame,
  69. .krajee-default .file-thumbnail-footer,
  70. .file-zoom-dialog .modal-dialog {
  71. position: relative;
  72. }
  73. .file-error-message pre,
  74. .file-error-message ul,
  75. .krajee-default .file-actions,
  76. .krajee-default .file-other-error {
  77. text-align: left;
  78. }
  79. .file-error-message pre,
  80. .file-error-message ul {
  81. margin: 0;
  82. }
  83. .krajee-default .file-drag-handle,
  84. .krajee-default .file-upload-indicator {
  85. float: left;
  86. margin-top: 10px;
  87. width: 16px;
  88. height: 16px;
  89. }
  90. .file-thumb-progress .progress,
  91. .file-thumb-progress .progress-bar {
  92. font-family: Verdana, Helvetica, sans-serif;
  93. font-size: 0.7rem;
  94. }
  95. .krajee-default .file-thumb-progress .progress,
  96. .kv-upload-progress .progress {
  97. background-color: #ccc;
  98. }
  99. .krajee-default .file-caption-info,
  100. .krajee-default .file-size-info {
  101. display: block;
  102. white-space: nowrap;
  103. overflow: hidden;
  104. text-overflow: ellipsis;
  105. width: 160px;
  106. height: 15px;
  107. margin: auto;
  108. }
  109. .file-zoom-content > .file-object.type-video,
  110. .file-zoom-content > .file-object.type-flash,
  111. .file-zoom-content > .file-object.type-image {
  112. max-width: 100%;
  113. max-height: 100%;
  114. width: auto;
  115. }
  116. .file-zoom-content > .file-object.type-video,
  117. .file-zoom-content > .file-object.type-flash {
  118. height: 100%;
  119. }
  120. .file-zoom-content > .file-object.type-pdf,
  121. .file-zoom-content > .file-object.type-html,
  122. .file-zoom-content > .file-object.type-text,
  123. .file-zoom-content > .file-object.type-default {
  124. width: 100%;
  125. }
  126. .file-loading:before {
  127. content: " Loading...";
  128. display: inline-block;
  129. padding-left: 20px;
  130. line-height: 16px;
  131. font-size: 13px;
  132. font-variant: small-caps;
  133. color: #999;
  134. background: transparent url(../img/loading.gif) top left no-repeat;
  135. }
  136. .file-object {
  137. margin: 0 0 -5px 0;
  138. padding: 0;
  139. }
  140. .btn-file {
  141. overflow: hidden;
  142. }
  143. .btn-file input[type=file] {
  144. top: 0;
  145. left: 0;
  146. min-width: 100%;
  147. min-height: 100%;
  148. text-align: right;
  149. opacity: 0;
  150. background: none repeat scroll 0 0 transparent;
  151. cursor: inherit;
  152. display: block;
  153. }
  154. .btn-file ::-ms-browse {
  155. font-size: 10000px;
  156. width: 100%;
  157. height: 100%;
  158. }
  159. .file-caption.icon-visible .file-caption-icon {
  160. display: inline-block;
  161. }
  162. .file-caption.icon-visible .file-caption-name {
  163. padding-left: 25px;
  164. }
  165. .file-caption.icon-visible > .input-group-lg .file-caption-name {
  166. padding-left: 30px;
  167. }
  168. .file-caption.icon-visible > .input-group-sm .file-caption-name {
  169. padding-left: 22px;
  170. }
  171. .file-caption-name:not(.file-caption-disabled) {
  172. background-color: transparent;
  173. }
  174. .file-caption-name.file-processing {
  175. font-style: italic;
  176. border-color: #bbb;
  177. opacity: 0.5;
  178. }
  179. .file-caption-icon {
  180. padding: 7px 5px;
  181. left: 4px;
  182. }
  183. .input-group-lg .file-caption-icon {
  184. font-size: 1.25rem;
  185. }
  186. .input-group-sm .file-caption-icon {
  187. font-size: 0.875rem;
  188. padding: 0.25rem;
  189. }
  190. .file-error-message {
  191. color: #a94442;
  192. background-color: #f2dede;
  193. margin: 5px;
  194. border: 1px solid #ebccd1;
  195. border-radius: 4px;
  196. padding: 15px;
  197. }
  198. .file-error-message pre {
  199. margin: 5px 0;
  200. }
  201. .file-caption-disabled {
  202. background-color: #eee;
  203. cursor: not-allowed;
  204. opacity: 1;
  205. }
  206. .file-preview {
  207. border-radius: 5px;
  208. border: 1px solid #ddd;
  209. padding: 8px;
  210. width: 100%;
  211. margin-bottom: 5px;
  212. }
  213. .file-preview .btn-xs {
  214. padding: 1px 5px;
  215. font-size: 12px;
  216. line-height: 1.5;
  217. border-radius: 3px;
  218. }
  219. .file-preview .fileinput-remove {
  220. top: 1px;
  221. right: 1px;
  222. line-height: 10px;
  223. }
  224. .file-preview .clickable {
  225. cursor: pointer;
  226. }
  227. .file-preview-image {
  228. font: 40px Impact, Charcoal, sans-serif;
  229. color: #008000;
  230. width: auto;
  231. height: auto;
  232. max-width: 100%;
  233. max-height: 100%;
  234. }
  235. .krajee-default.file-preview-frame {
  236. margin: 8px;
  237. border: 1px solid rgba(0, 0, 0, 0.2);
  238. box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
  239. padding: 6px;
  240. float: left;
  241. text-align: center;
  242. height: 244px;
  243. }
  244. .krajee-default.file-preview-frame .kv-file-content {
  245. width: 213px;
  246. height: 140px;
  247. }
  248. .krajee-default.file-preview-frame .kv-file-content.kv-pdf-rendered {
  249. width: 400px;
  250. }
  251. .krajee-default.file-preview-frame[data-template="audio"] .kv-file-content {
  252. width: 240px;
  253. height: 55px;
  254. }
  255. .krajee-default.file-preview-frame .file-thumbnail-footer {
  256. height: 70px;
  257. }
  258. .krajee-default.file-preview-frame:not(.file-preview-error):hover {
  259. border: 1px solid rgba(0, 0, 0, 0.3);
  260. box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.4);
  261. }
  262. .krajee-default .file-preview-text {
  263. color: #428bca;
  264. border: 1px solid #ddd;
  265. outline: none;
  266. resize: none;
  267. }
  268. .krajee-default .file-preview-html {
  269. border: 1px solid #ddd;
  270. }
  271. .krajee-default .file-other-icon {
  272. font-size: 6em;
  273. line-height: 1;
  274. }
  275. .krajee-default .file-footer-buttons {
  276. float: right;
  277. }
  278. .krajee-default .file-footer-caption {
  279. display: block;
  280. text-align: center;
  281. padding-top: 4px;
  282. font-size: 11px;
  283. color: #999;
  284. margin-bottom: 30px;
  285. }
  286. .file-upload-stats {
  287. font-size: 10px;
  288. text-align: center;
  289. width: 100%;
  290. }
  291. .kv-upload-progress .file-upload-stats {
  292. font-size: 12px;
  293. margin: -10px 0 5px;
  294. }
  295. .krajee-default .file-preview-error {
  296. opacity: 0.65;
  297. box-shadow: none;
  298. }
  299. .krajee-default .file-thumb-progress {
  300. top: 37px;
  301. left: 0;
  302. right: 0;
  303. }
  304. .krajee-default.kvsortable-ghost {
  305. background: #e1edf7;
  306. border: 2px solid #a1abff;
  307. }
  308. .krajee-default .file-preview-other:hover {
  309. opacity: 0.8;
  310. }
  311. .krajee-default .file-preview-frame:not(.file-preview-error) .file-footer-caption:hover {
  312. color: #000;
  313. }
  314. .kv-upload-progress .progress {
  315. height: 20px;
  316. margin: 10px 0;
  317. overflow: hidden;
  318. }
  319. .kv-upload-progress .progress-bar {
  320. height: 20px;
  321. font-family: Verdana, Helvetica, sans-serif;
  322. }
  323. /*noinspection CssOverwrittenProperties*/
  324. .file-zoom-dialog .file-other-icon {
  325. font-size: 22em;
  326. font-size: 50vmin;
  327. }
  328. .file-zoom-dialog .modal-dialog {
  329. width: auto;
  330. }
  331. .file-zoom-dialog .modal-header {
  332. display: flex;
  333. align-items: center;
  334. justify-content: space-between;
  335. }
  336. .file-zoom-dialog .btn-navigate {
  337. margin: 0 0.1rem;
  338. padding: 0;
  339. font-size: 1.2rem;
  340. width: 2.4rem;
  341. height: 2.4rem;
  342. top: 50%;
  343. border-radius: 50%;
  344. text-align: center;
  345. }
  346. .btn-navigate * {
  347. width: auto;
  348. }
  349. .file-zoom-dialog .floating-buttons {
  350. top: 5px;
  351. right: 10px;
  352. }
  353. .file-zoom-dialog .btn-kv-prev {
  354. left: 0;
  355. }
  356. .file-zoom-dialog .btn-kv-next {
  357. right: 0;
  358. }
  359. .file-zoom-dialog .kv-zoom-header {
  360. padding: 0.5rem;
  361. }
  362. .file-zoom-dialog .kv-zoom-body {
  363. padding: 0.25rem;
  364. }
  365. .file-zoom-dialog .kv-zoom-description {
  366. position: absolute;
  367. opacity: 0.8;
  368. font-size: 0.8rem;
  369. background-color: #1a1a1a;
  370. padding: 1rem;
  371. text-align: center;
  372. border-radius: 0.5rem;
  373. color: #fff;
  374. left: 15%;
  375. right: 15%;
  376. bottom: 15%;
  377. }
  378. .file-zoom-dialog .kv-desc-hide {
  379. float: right;
  380. color: #fff;
  381. padding: 0 0.1rem;
  382. background: none;
  383. border: none;
  384. }
  385. .file-zoom-dialog .kv-desc-hide:hover {
  386. opacity: 0.7;
  387. }
  388. .file-zoom-dialog .kv-desc-hide:focus {
  389. opacity: 0.9;
  390. }
  391. .file-input-new .no-browse .form-control {
  392. border-top-right-radius: 4px;
  393. border-bottom-right-radius: 4px;
  394. }
  395. .file-input-ajax-new .no-browse .form-control {
  396. border-top-right-radius: 4px;
  397. border-bottom-right-radius: 4px;
  398. }
  399. .file-caption {
  400. width: 100%;
  401. position: relative;
  402. }
  403. .file-thumb-loading {
  404. background: transparent url(../img/loading.gif) no-repeat scroll center center content-box !important;
  405. }
  406. .file-drop-zone {
  407. border: 1px dashed #aaa;
  408. min-height: 272px;
  409. border-radius: 4px;
  410. text-align: center;
  411. vertical-align: middle;
  412. margin: 12px 15px 12px 12px;
  413. padding: 5px;
  414. user-select: none;
  415. }
  416. .file-drop-zone.clickable {
  417. will-change: margin-top;
  418. }
  419. .file-drop-zone.clickable .file-preview-thumbnails {
  420. cursor: pointer;
  421. }
  422. .file-drop-zone.clearfix.clickable:has(.file-preview-frame):hover {
  423. padding-bottom: 6px;
  424. }
  425. .file-input .file-drop-zone.clickable:hover {
  426. border: 2px dashed #999;
  427. margin-top: 11px;
  428. margin-bottom: 11px;
  429. }
  430. .file-input.file-thumb-loading .file-drop-zone:hover .file-preview-status{
  431. margin-top: -1px;
  432. }
  433. .file-input.file-thumb-loading .file-drop-zone:hover{
  434. padding-bottom: 6px;
  435. }
  436. .file-input.file-thumb-loading .file-preview-status, .file-drop-zone-title{
  437. height: 260px;
  438. }
  439. .file-drop-zone *:first-child:is(.file-preview-thumbnails):has(.file-preview-frame) + .file-preview-status {
  440. position: absolute;
  441. left: 50%;
  442. top: 25px;
  443. transform: translateX(-50%);
  444. }
  445. .file-drop-zone:not(:has(input[type=file][multiple])), .file-drop-zone:not(:has(input[type=file][multiple=true])) {
  446. display: flex;
  447. justify-content: center;
  448. }
  449. .file-drop-zone.clickable:hover .krajee-default.file-preview-frame {
  450. margin-left: 7px;
  451. margin-bottom: 7px;
  452. }
  453. /* .file-drop-zone.clickable:focus {
  454. border: 2px solid #5acde2;
  455. } */
  456. .file-drop-zone .file-preview-thumbnails {
  457. cursor: default;
  458. }
  459. .file-drop-zone-title {
  460. color: #aaa;
  461. font-size: 1.6em;
  462. text-align: center;
  463. padding: 85px 10px;
  464. cursor: default;
  465. }
  466. .file-highlighted {
  467. border: 2px dashed #999 !important;
  468. background-color: #eee;
  469. }
  470. .file-uploading {
  471. background: url(../img/loading-sm.gif) no-repeat center bottom 10px;
  472. opacity: 0.65;
  473. }
  474. .file-zoom-fullscreen .modal-dialog {
  475. min-width: 100%;
  476. margin: 0;
  477. }
  478. .file-zoom-fullscreen .modal-content {
  479. border-radius: 0;
  480. box-shadow: none;
  481. min-height: 100vh;
  482. }
  483. .file-zoom-fullscreen .kv-zoom-body {
  484. overflow-y: auto;
  485. }
  486. .floating-buttons {
  487. z-index: 3000;
  488. }
  489. .floating-buttons .btn-kv {
  490. margin-left: 3px;
  491. z-index: 3000;
  492. }
  493. .kv-zoom-actions {
  494. min-width: 140px;
  495. }
  496. .kv-zoom-actions .btn-kv {
  497. margin-left: 3px;
  498. }
  499. .file-zoom-content {
  500. text-align: center;
  501. white-space: nowrap;
  502. min-height: 300px;
  503. }
  504. .file-zoom-content:hover {
  505. background: transparent;
  506. }
  507. .file-zoom-content .file-preview-image {
  508. max-height: 100%;
  509. }
  510. .file-zoom-content .file-preview-video {
  511. max-height: 100%;
  512. }
  513. .file-zoom-content > .file-object.type-image {
  514. height: auto;
  515. min-height: inherit;
  516. }
  517. .file-zoom-content > .file-object.type-audio {
  518. width: auto;
  519. height: 30px;
  520. }
  521. @media (min-width: 576px) {
  522. .file-zoom-dialog .modal-dialog {
  523. max-width: 500px;
  524. }
  525. }
  526. @media (min-width: 992px) {
  527. .file-zoom-dialog .modal-lg {
  528. max-width: 800px;
  529. }
  530. }
  531. @media (max-width: 767px) {
  532. .file-preview-thumbnails {
  533. display: flex;
  534. justify-content: center;
  535. align-items: center;
  536. flex-direction: column;
  537. }
  538. .file-zoom-dialog .modal-header {
  539. flex-direction: column;
  540. }
  541. }
  542. @media (max-width: 350px) {
  543. .krajee-default.file-preview-frame:not([data-template="audio"]) .kv-file-content {
  544. width: 160px;
  545. }
  546. }
  547. @media (max-width: 420px) {
  548. .krajee-default.file-preview-frame .kv-file-content.kv-pdf-rendered {
  549. width: 100%;
  550. }
  551. }
  552. .file-loading[dir=rtl]:before {
  553. background: transparent url(../img/loading.gif) top right no-repeat;
  554. padding-left: 0;
  555. padding-right: 20px;
  556. }
  557. .clickable .file-drop-zone-title {
  558. cursor: pointer;
  559. }
  560. .file-sortable .file-drag-handle:hover {
  561. opacity: 0.7;
  562. }
  563. .file-sortable .file-drag-handle {
  564. cursor: grab;
  565. opacity: 1;
  566. }
  567. .file-grabbing,
  568. .file-grabbing * {
  569. cursor: not-allowed !important;
  570. }
  571. .file-grabbing .file-preview-thumbnails * {
  572. cursor: grabbing !important;
  573. }
  574. .file-preview-frame.sortable-chosen {
  575. background-color: #d9edf7;
  576. border-color: #17a2b8;
  577. box-shadow: none !important;
  578. }
  579. .file-preview .kv-zoom-cache {
  580. display: none;
  581. }
  582. .file-preview-other-frame, .file-preview-object, .kv-file-content, .kv-zoom-body {
  583. display: flex;
  584. align-items: center;
  585. justify-content: center;
  586. }
  587. .btn-kv-rotate,
  588. .kv-file-rotate {
  589. display: none;
  590. }
  591. .rotatable:not(.hide-rotate) .btn-kv-rotate,
  592. .rotatable:not(.hide-rotate) .kv-file-rotate {
  593. display: inline-block;
  594. }
  595. .rotatable .file-zoom-detail,
  596. .rotatable .kv-file-content,
  597. .rotatable .kv-file-content > :first-child {
  598. transform-origin: center center;
  599. }
  600. .rotate-animate {
  601. transition: transform 0.3s ease;
  602. }
  603. .kv-overflow-hidden {
  604. overflow: hidden;
  605. }