fileinput.css 12 KB

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