fileinput.css 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  1. /*!
  2. * bootstrap-fileinput v4.4.0
  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. .krajee-default.file-preview-frame {
  84. position: relative;
  85. display: table;
  86. margin: 8px;
  87. border: 1px solid #ddd;
  88. box-shadow: 1px 1px 5px 0 #a2958a;
  89. padding: 6px;
  90. float: left;
  91. text-align: center;
  92. }
  93. .krajee-default.file-preview-frame:not(.file-preview-error):hover {
  94. box-shadow: 3px 3px 5px 0 #333;
  95. }
  96. .krajee-default.file-preview-frame .kv-file-content {
  97. height: 170px;
  98. }
  99. .krajee-default.file-preview-frame .file-thumbnail-footer {
  100. height: 70px;
  101. }
  102. .krajee-default .file-preview-image {
  103. vertical-align: middle;
  104. image-orientation: from-image;
  105. }
  106. .krajee-default .file-preview-text {
  107. display: block;
  108. color: #428bca;
  109. border: 1px solid #ddd;
  110. font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  111. outline: none;
  112. padding: 8px;
  113. resize: none;
  114. }
  115. .krajee-default .file-preview-html {
  116. border: 1px solid #ddd;
  117. padding: 8px;
  118. overflow: auto;
  119. }
  120. .krajee-default[data-template="audio"] .file-preview-audio {
  121. display: table-cell;
  122. vertical-align: middle;
  123. height: 170px;
  124. border: 1px solid #ddd;
  125. border-radius: 5px;
  126. }
  127. .krajee-default .file-preview-audio audio {
  128. vertical-align: middle;
  129. }
  130. .krajee-default .file-zoom-dialog .file-preview-text {
  131. font-size: 1.2em;
  132. }
  133. .krajee-default .file-preview-other {
  134. left: 0;
  135. top: 0;
  136. right: 0;
  137. bottom: 0;
  138. margin: auto;
  139. text-align: center;
  140. vertical-align: middle;
  141. padding: 10px;
  142. }
  143. .krajee-default .file-preview-other:hover {
  144. opacity: 0.8;
  145. }
  146. .krajee-default .file-actions, .krajee-default .file-other-error {
  147. text-align: left;
  148. }
  149. .krajee-default .file-other-icon {
  150. font-size: 8em;
  151. }
  152. .krajee-default .file-actions {
  153. margin-top: 15px;
  154. }
  155. .krajee-default .file-footer-buttons {
  156. float: right;
  157. }
  158. .krajee-default .file-footer-caption {
  159. display: block;
  160. white-space: nowrap;
  161. overflow: hidden;
  162. text-overflow: ellipsis;
  163. width: 160px;
  164. text-align: center;
  165. padding-top: 4px;
  166. font-size: 11px;
  167. color: #777;
  168. margin: 5px auto;
  169. }
  170. .krajee-default .file-preview-error {
  171. opacity: 0.65;
  172. box-shadow: none;
  173. }
  174. .krajee-default .file-preview-frame:not(.file-preview-error) .file-footer-caption:hover {
  175. color: #000;
  176. }
  177. .krajee-default .file-drag-handle, .krajee-default .file-upload-indicator {
  178. position: absolute;
  179. text-align: center;
  180. bottom: -6px;
  181. left: -6px;
  182. padding: 8px 8px 1px 3px;
  183. border-left: none;
  184. border-bottom: none;
  185. border-right: 1px solid #8a6d3b;
  186. border-top: 1px solid #8a6d3b;
  187. border-top-right-radius: 24px;
  188. font-size: 12px;
  189. }
  190. .krajee-default .file-drag-handle {
  191. background-color: #d9edf7;
  192. border-color: #bce8f1;
  193. }
  194. .krajee-default .file-upload-indicator {
  195. font-size: 13px;
  196. background-color: #fcf8e3;
  197. border-color: #faebcc;
  198. padding-bottom: 0;
  199. }
  200. .krajee-default.file-preview-error .file-upload-indicator {
  201. background-color: #f2dede;
  202. border-color: #ebccd1;
  203. }
  204. .krajee-default.file-preview-success .file-upload-indicator {
  205. background-color: #dff0d8;
  206. border-color: #d6e9c6;
  207. }
  208. .krajee-default.file-preview-loading .file-upload-indicator {
  209. background-color: #e5e5e5;
  210. border-color: #777;
  211. }
  212. .krajee-default .file-thumb-progress {
  213. height: 10px;
  214. }
  215. .krajee-default .file-thumb-progress .progress, .krajee-default .file-thumb-progress .progress-bar {
  216. height: 10px;
  217. font-size: 9px;
  218. line-height: 10px;
  219. }
  220. .krajee-default .file-thumbnail-footer {
  221. position: relative;
  222. }
  223. .krajee-default .file-thumb-progress {
  224. position: absolute;
  225. top: 35px;
  226. left: 0;
  227. right: 0;
  228. }
  229. .krajee-default.kvsortable-ghost {
  230. background: #e1edf7;
  231. border: 2px solid #a1abff;
  232. }
  233. /* noinspection CssOverwrittenProperties */
  234. .file-zoom-dialog .file-other-icon {
  235. font-size: 22em;
  236. font-size: 50vmin;
  237. }
  238. .file-input-new .file-preview, .file-input-new .close, .file-input-new .glyphicon-file,
  239. .file-input-new .fileinput-remove-button, .file-input-new .fileinput-upload-button,
  240. .file-input-ajax-new .fileinput-remove-button, .file-input-ajax-new .fileinput-upload-button {
  241. display: none;
  242. }
  243. .file-caption-main {
  244. width: 100%;
  245. }
  246. .file-input-ajax-new .no-browse .input-group-btn,
  247. .file-input-new .no-browse .input-group-btn {
  248. display: none;
  249. }
  250. .file-input-ajax-new .no-browse .form-control,
  251. .file-input-new .no-browse .form-control {
  252. border-top-right-radius: 4px;
  253. border-bottom-right-radius: 4px;
  254. }
  255. .file-thumb-loading {
  256. background: transparent url('../img/loading.gif') no-repeat scroll center center content-box !important;
  257. }
  258. .file-sortable .file-drag-handle {
  259. cursor: move;
  260. cursor: -webkit-grabbing;
  261. opacity: 1;
  262. }
  263. .file-sortable .file-drag-handle:hover {
  264. opacity: 0.7;
  265. }
  266. .file-drop-zone {
  267. border: 1px dashed #aaa;
  268. border-radius: 4px;
  269. height: 100%;
  270. text-align: center;
  271. vertical-align: middle;
  272. margin: 12px 15px 12px 12px;
  273. padding: 5px;
  274. }
  275. .file-drop-zone-title {
  276. color: #aaa;
  277. font-size: 1.6em;
  278. padding: 85px 10px;
  279. cursor: default;
  280. }
  281. .file-preview .clickable,
  282. .clickable .file-drop-zone-title {
  283. cursor: pointer;
  284. }
  285. .file-drop-zone.clickable:hover {
  286. border: 2px dashed #999;
  287. }
  288. .file-drop-zone.clickable:focus {
  289. border: 2px solid #5acde2;
  290. }
  291. .file-drop-zone .file-preview-thumbnails {
  292. cursor: default;
  293. }
  294. .file-highlighted {
  295. border: 2px dashed #999 !important;
  296. background-color: #f0f0f0;
  297. }
  298. .file-uploading {
  299. background: url('../img/loading-sm.gif') no-repeat center bottom 10px;
  300. opacity: 0.65;
  301. }
  302. .file-zoom-fullscreen.modal {
  303. position: fixed;
  304. top: 0;
  305. right: 0;
  306. bottom: 0;
  307. left: 0;
  308. }
  309. .file-zoom-fullscreen .modal-dialog {
  310. position: fixed;
  311. margin: 0;
  312. width: 100%;
  313. height: 100%;
  314. padding: 0;
  315. }
  316. .file-zoom-fullscreen .modal-content {
  317. border-radius: 0;
  318. box-shadow: none;
  319. }
  320. .file-zoom-fullscreen .modal-body {
  321. overflow-y: auto;
  322. }
  323. .file-zoom-dialog .modal-body {
  324. position: relative !important;
  325. }
  326. .file-zoom-dialog .btn-navigate {
  327. position: absolute;
  328. padding: 0;
  329. margin: 0;
  330. background: transparent;
  331. text-decoration: none;
  332. outline: none;
  333. opacity: 0.7;
  334. top: 45%;
  335. font-size: 4em;
  336. color: #1c94c4;
  337. }
  338. .file-zoom-dialog .floating-buttons {
  339. position: absolute;
  340. top: 5px;
  341. right: 10px;
  342. }
  343. .floating-buttons, .floating-buttons .btn {
  344. z-index: 3000;
  345. }
  346. .file-zoom-dialog .kv-zoom-actions .btn,
  347. .floating-buttons .btn {
  348. margin-left: 3px;
  349. }
  350. .file-zoom-dialog .btn-navigate:not([disabled]):hover,
  351. .file-zoom-dialog .btn-navigate:not([disabled]):focus {
  352. outline: none;
  353. box-shadow: none;
  354. opacity: 0.5;
  355. }
  356. .file-zoom-dialog .btn-navigate[disabled] {
  357. opacity: 0.3;
  358. }
  359. .file-zoom-dialog .btn-prev {
  360. left: 1px;
  361. }
  362. .file-zoom-dialog .btn-next {
  363. right: 1px;
  364. }
  365. .file-zoom-content {
  366. height: 480px;
  367. text-align: center;
  368. }
  369. .file-zoom-content .file-preview-image, .file-preview-
  370. .file-zoom-content .file-preview-video {
  371. max-height: 100%
  372. }
  373. .file-preview-initial.sortable-chosen {
  374. background-color: #d9edf7;
  375. }
  376. /* IE 10 fix */
  377. .btn-file ::-ms-browse {
  378. width: 100%;
  379. height: 100%;
  380. }