fileinput.css 10 KB

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