fileinput.css 11 KB

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