fileinput.css 11 KB

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