fileinput.css 11 KB

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