fileinput.css 11 KB

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