fileinput.css 11 KB

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