fileinput.css 12 KB

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