fileinput.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520
  1. /*!
  2. * bootstrap-fileinput v4.5.1
  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 .file-thumbnail-footer {
  184. height: 70px;
  185. }
  186. .krajee-default.file-preview-frame:not(.file-preview-error):hover {
  187. border: 1px solid rgba(0,0,0,0.3);
  188. box-shadow: 0 0 10px 0 rgba(0,0,0,0.4);
  189. }
  190. .krajee-default .file-preview-text {
  191. display: block;
  192. color: #428bca;
  193. border: 1px solid #ddd;
  194. font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  195. outline: none;
  196. padding: 8px;
  197. resize: none;
  198. }
  199. .krajee-default .file-preview-html {
  200. border: 1px solid #ddd;
  201. padding: 8px;
  202. overflow: auto;
  203. }
  204. .krajee-default .file-other-icon {
  205. font-size: 6em;
  206. }
  207. .krajee-default .file-footer-buttons {
  208. float: right;
  209. }
  210. .krajee-default .file-footer-caption {
  211. display: block;
  212. text-align: center;
  213. padding-top: 4px;
  214. font-size: 11px;
  215. color: #777;
  216. margin-bottom: 15px;
  217. }
  218. .krajee-default .file-preview-error {
  219. opacity: 0.65;
  220. box-shadow: none;
  221. }
  222. .krajee-default .file-thumb-progress {
  223. height: 11px;
  224. top: 37px;
  225. left: 0;
  226. right: 0;
  227. }
  228. .krajee-default.kvsortable-ghost {
  229. background: #e1edf7;
  230. border: 2px solid #a1abff;
  231. }
  232. .krajee-default .file-preview-other:hover {
  233. opacity: 0.8;
  234. }
  235. .krajee-default .file-preview-frame:not(.file-preview-error) .file-footer-caption:hover {
  236. color: #000;
  237. }
  238. .kv-upload-progress .progress {
  239. height: 20px;
  240. margin: 10px 0;
  241. overflow: hidden;
  242. }
  243. .kv-upload-progress .progress-bar {
  244. height: 20px;
  245. font-family: Verdana, Helvetica, sans-serif;
  246. }
  247. /*noinspection CssOverwrittenProperties*/
  248. .file-zoom-dialog .file-other-icon {
  249. font-size: 22em;
  250. font-size: 50vmin;
  251. }
  252. .file-zoom-dialog .modal-dialog {
  253. width: auto;
  254. }
  255. .file-zoom-dialog .modal-header {
  256. display: flex;
  257. align-items: center;
  258. justify-content: space-between;
  259. }
  260. .file-zoom-dialog .btn-navigate {
  261. padding: 0;
  262. margin: 0;
  263. background: transparent;
  264. text-decoration: none;
  265. outline: none;
  266. opacity: 0.7;
  267. top: 45%;
  268. font-size: 4em;
  269. color: #1c94c4;
  270. }
  271. .file-zoom-dialog .btn-navigate:not([disabled]):hover {
  272. outline: none;
  273. box-shadow: none;
  274. opacity: 0.6;
  275. }
  276. .file-zoom-dialog .floating-buttons {
  277. top: 5px;
  278. right: 10px;
  279. }
  280. .file-zoom-dialog .btn-navigate[disabled] {
  281. opacity: 0.3;
  282. }
  283. .file-zoom-dialog .btn-prev {
  284. left: 1px;
  285. }
  286. .file-zoom-dialog .btn-next {
  287. right: 1px;
  288. }
  289. .file-zoom-dialog .kv-zoom-title {
  290. font-weight: 300;
  291. color: #999;
  292. max-width: 50%;
  293. overflow: hidden;
  294. white-space: nowrap;
  295. text-overflow: ellipsis;
  296. }
  297. .file-input-new .no-browse .form-control {
  298. border-top-right-radius: 4px;
  299. border-bottom-right-radius: 4px;
  300. }
  301. .file-input-ajax-new .no-browse .form-control {
  302. border-top-right-radius: 4px;
  303. border-bottom-right-radius: 4px;
  304. }
  305. .file-caption-main {
  306. width: 100%;
  307. }
  308. .file-thumb-loading {
  309. background: transparent url(../img/loading.gif) no-repeat scroll center center content-box !important;
  310. }
  311. .file-drop-zone {
  312. border: 1px dashed #aaa;
  313. border-radius: 4px;
  314. height: 100%;
  315. text-align: center;
  316. vertical-align: middle;
  317. margin: 12px 15px 12px 12px;
  318. padding: 5px;
  319. }
  320. .file-drop-zone.clickable:hover {
  321. border: 2px dashed #999;
  322. }
  323. .file-drop-zone.clickable:focus {
  324. border: 2px solid #5acde2;
  325. }
  326. .file-drop-zone .file-preview-thumbnails {
  327. cursor: default;
  328. }
  329. .file-drop-zone-title {
  330. color: #aaa;
  331. font-size: 1.6em;
  332. padding: 85px 10px;
  333. cursor: default;
  334. }
  335. .file-highlighted {
  336. border: 2px dashed #999 !important;
  337. background-color: #eee;
  338. }
  339. .file-uploading {
  340. background: url(../img/loading-sm.gif) no-repeat center bottom 10px;
  341. opacity: 0.65;
  342. }
  343. .file-zoom-fullscreen .modal-dialog {
  344. min-width: 100%;
  345. margin: 0;
  346. }
  347. .file-zoom-fullscreen .modal-content {
  348. border-radius: 0;
  349. box-shadow: none;
  350. min-height: 100vh;
  351. }
  352. .file-zoom-fullscreen .modal-body {
  353. overflow-y: auto;
  354. }
  355. .floating-buttons {
  356. z-index: 3000;
  357. }
  358. .floating-buttons .btn-kv {
  359. margin-left: 3px;
  360. z-index: 3000;
  361. }
  362. .file-zoom-content {
  363. height: 480px;
  364. text-align: center;
  365. }
  366. .file-zoom-content .file-preview-image {
  367. max-height: 100%;
  368. }
  369. .file-zoom-content .file-preview-video {
  370. max-height: 100%;
  371. }
  372. .file-zoom-content > .file-object.type-image {
  373. height: auto;
  374. min-height: inherit;
  375. }
  376. .file-zoom-content > .file-object.type-audio {
  377. width: auto;
  378. height: 30px;
  379. }
  380. @media (min-width: 576px) {
  381. .file-zoom-dialog .modal-dialog {
  382. max-width: 500px;
  383. }
  384. }
  385. @media (min-width: 992px) {
  386. .file-zoom-dialog .modal-lg {
  387. max-width: 800px;
  388. }
  389. }
  390. @media (max-width: 767px) {
  391. .file-preview-thumbnails {
  392. display: flex;
  393. justify-content: center;
  394. align-items: center;
  395. flex-direction: column;
  396. }
  397. .file-zoom-dialog .modal-header {
  398. flex-direction: column;
  399. }
  400. }
  401. @media (max-width: 350px) {
  402. .krajee-default.file-preview-frame .kv-file-content {
  403. width: 160px;
  404. }
  405. }
  406. @media (max-width: 420px) {
  407. .krajee-default.file-preview-frame .kv-file-content.kv-pdf-rendered {
  408. width: 100%;
  409. }
  410. }
  411. .file-loading[dir=rtl]:before {
  412. background: transparent url(../img/loading.gif) top right no-repeat;
  413. padding-left: 0;
  414. padding-right: 20px;
  415. }
  416. .file-sortable .file-drag-handle {
  417. cursor: move;
  418. opacity: 1;
  419. }
  420. .file-sortable .file-drag-handle:hover {
  421. opacity: 0.7;
  422. }
  423. .clickable .file-drop-zone-title {
  424. cursor: pointer;
  425. }
  426. .kv-zoom-actions .btn-kv {
  427. margin-left: 3px;
  428. }
  429. .file-preview-initial.sortable-chosen {
  430. background-color: #d9edf7;
  431. }