fileinput.css 11 KB

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