fileinput.css 12 KB

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