fileinput.css 13 KB

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