fileinput.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  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 .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. line-height: 20px;
  261. margin: 10px 0;
  262. overflow: hidden;
  263. }
  264. .kv-upload-progress .progress-bar {
  265. height: 20px;
  266. line-height: 20px;
  267. }
  268. /*noinspection CssOverwrittenProperties*/
  269. .file-zoom-dialog .file-other-icon {
  270. font-size: 22em;
  271. font-size: 50vmin;
  272. }
  273. .file-zoom-dialog .modal-dialog {
  274. width: auto;
  275. }
  276. .file-zoom-dialog .modal-header {
  277. display: flex;
  278. align-items: center;
  279. justify-content: space-between;
  280. }
  281. .file-zoom-dialog .btn-navigate {
  282. padding: 0;
  283. margin: 0;
  284. background: transparent;
  285. text-decoration: none;
  286. outline: none;
  287. opacity: 0.7;
  288. top: 45%;
  289. font-size: 4em;
  290. color: #1c94c4;
  291. }
  292. .file-zoom-dialog .btn-navigate:not([disabled]):hover {
  293. outline: none;
  294. box-shadow: none;
  295. opacity: 0.6;
  296. }
  297. .file-zoom-dialog .floating-buttons {
  298. top: 5px;
  299. right: 10px;
  300. }
  301. .file-zoom-dialog .btn-navigate[disabled] {
  302. opacity: 0.3;
  303. }
  304. .file-zoom-dialog .btn-prev {
  305. left: 1px;
  306. }
  307. .file-zoom-dialog .btn-next {
  308. right: 1px;
  309. }
  310. .file-zoom-dialog .kv-zoom-title {
  311. font-weight: 300;
  312. color: #999;
  313. max-width: 50%;
  314. overflow: hidden;
  315. white-space: nowrap;
  316. text-overflow: ellipsis;
  317. }
  318. .file-input-new .no-browse .form-control {
  319. border-top-right-radius: 4px;
  320. border-bottom-right-radius: 4px;
  321. }
  322. .file-input-ajax-new .no-browse .form-control {
  323. border-top-right-radius: 4px;
  324. border-bottom-right-radius: 4px;
  325. }
  326. .file-caption-main {
  327. width: 100%;
  328. }
  329. .file-thumb-loading {
  330. background: transparent url(../img/loading.gif) no-repeat scroll center center content-box !important;
  331. }
  332. .file-drop-zone {
  333. border: 1px dashed #aaa;
  334. border-radius: 4px;
  335. height: 100%;
  336. text-align: center;
  337. vertical-align: middle;
  338. margin: 12px 15px 12px 12px;
  339. padding: 5px;
  340. }
  341. .file-drop-zone.clickable:hover {
  342. border: 2px dashed #999;
  343. }
  344. .file-drop-zone.clickable:focus {
  345. border: 2px solid #5acde2;
  346. }
  347. .file-drop-zone .file-preview-thumbnails {
  348. cursor: default;
  349. }
  350. .file-drop-zone-title {
  351. color: #aaa;
  352. font-size: 1.6em;
  353. padding: 85px 10px;
  354. cursor: default;
  355. }
  356. .file-highlighted {
  357. border: 2px dashed #999 !important;
  358. background-color: #eee;
  359. }
  360. .file-uploading {
  361. background: url(../img/loading-sm.gif) no-repeat center bottom 10px;
  362. opacity: 0.65;
  363. }
  364. @media (min-width: 576px) {
  365. .file-zoom-dialog .modal-dialog {
  366. max-width: 500px;
  367. }
  368. }
  369. @media (min-width: 992px) {
  370. .file-zoom-dialog .modal-lg {
  371. max-width: 800px;
  372. }
  373. }
  374. .file-zoom-fullscreen.modal {
  375. position: fixed;
  376. top: 0;
  377. right: 0;
  378. bottom: 0;
  379. left: 0;
  380. }
  381. .file-zoom-fullscreen .modal-dialog {
  382. position: fixed;
  383. margin: 0;
  384. padding: 0;
  385. width: 100%;
  386. height: 100%;
  387. max-width: 100%;
  388. max-height: 100%;
  389. }
  390. .file-zoom-fullscreen .modal-content {
  391. border-radius: 0;
  392. box-shadow: none;
  393. }
  394. .file-zoom-fullscreen .modal-body {
  395. overflow-y: auto;
  396. }
  397. .floating-buttons {
  398. z-index: 3000;
  399. }
  400. .floating-buttons .btn-kv {
  401. margin-left: 3px;
  402. z-index: 3000;
  403. }
  404. .file-zoom-content {
  405. height: 480px;
  406. text-align: center;
  407. }
  408. .file-zoom-content .file-preview-image {
  409. max-height: 100%;
  410. }
  411. .file-zoom-content .file-preview-video {
  412. max-height: 100%;
  413. }
  414. .file-zoom-content .is-portrait-gt4 {
  415. margin-top: 60px;
  416. }
  417. .file-zoom-content > .file-object.type-image {
  418. height: auto;
  419. min-height: inherit;
  420. }
  421. .file-zoom-content > .file-object.type-audio {
  422. width: auto;
  423. height: 30px;
  424. }
  425. @media screen and (max-width: 767px) {
  426. .file-preview-thumbnails {
  427. display: flex;
  428. justify-content: center;
  429. align-items: center;
  430. flex-direction: column;
  431. }
  432. .file-zoom-dialog .modal-header {
  433. flex-direction: column;
  434. }
  435. }
  436. @media screen and (max-width: 350px) {
  437. .krajee-default.file-preview-frame .kv-file-content {
  438. width: 160px;
  439. }
  440. }
  441. .file-loading[dir=rtl]:before {
  442. background: transparent url(../img/loading.gif) top right no-repeat;
  443. padding-left: 0;
  444. padding-right: 20px;
  445. }
  446. .file-sortable .file-drag-handle {
  447. cursor: move;
  448. opacity: 1;
  449. }
  450. .file-sortable .file-drag-handle:hover {
  451. opacity: 0.7;
  452. }
  453. .clickable .file-drop-zone-title {
  454. cursor: pointer;
  455. }
  456. .kv-zoom-actions .btn-kv {
  457. margin-left: 3px;
  458. }
  459. .file-preview-initial.sortable-chosen {
  460. background-color: #d9edf7;
  461. }