fileinput.css 12 KB

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