fileinput.css 11 KB

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