fileinput.css 13 KB

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