fileinput.css 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. /*!
  2. * bootstrap-fileinput v4.3.6
  3. * http://plugins.krajee.com/file-input
  4. *
  5. * Author: Kartik Visweswaran
  6. * Copyright: 2014 - 2017, Kartik Visweswaran, Krajee.com
  7. *
  8. * Licensed under the BSD 3-Clause
  9. * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md
  10. */
  11. .file-loading {
  12. top: 0;
  13. right: 0;
  14. width: 25px;
  15. height: 25px;
  16. font-size: 999px;
  17. text-align: right;
  18. color: #fff;
  19. background: transparent url('../img/loading.gif') top left no-repeat;
  20. border: none;
  21. }
  22. .file-object {
  23. margin: 0 0 -5px 0;
  24. padding: 0;
  25. }
  26. .btn-file {
  27. position: relative;
  28. overflow: hidden;
  29. }
  30. .btn-file input[type=file] {
  31. position: absolute;
  32. top: 0;
  33. right: 0;
  34. min-width: 100%;
  35. min-height: 100%;
  36. text-align: right;
  37. opacity: 0;
  38. background: none repeat scroll 0 0 transparent;
  39. cursor: inherit;
  40. display: block;
  41. }
  42. .file-caption-name {
  43. display: inline-block;
  44. overflow: hidden;
  45. height: 20px;
  46. word-break: break-all;
  47. }
  48. .input-group-lg .file-caption-name {
  49. height: 25px;
  50. }
  51. .file-zoom-dialog {
  52. text-align: left;
  53. }
  54. .file-error-message {
  55. color: #a94442;
  56. background-color: #f2dede;
  57. margin: 5px;
  58. border: 1px solid #ebccd1;
  59. border-radius: 4px;
  60. padding: 15px;
  61. }
  62. .file-error-message pre, .file-error-message ul {
  63. margin: 0;
  64. text-align: left;
  65. }
  66. .file-error-message pre {
  67. margin: 5px 0;
  68. }
  69. .file-caption-disabled {
  70. background-color: #EEEEEE;
  71. cursor: not-allowed;
  72. opacity: 1;
  73. }
  74. .file-preview {
  75. border-radius: 5px;
  76. border: 1px solid #ddd;
  77. padding: 5px;
  78. width: 100%;
  79. margin-bottom: 5px;
  80. }
  81. .file-preview-frame {
  82. position: relative;
  83. display: table;
  84. margin: 8px;
  85. height: 160px;
  86. border: 1px solid #ddd;
  87. box-shadow: 1px 1px 5px 0 #a2958a;
  88. padding: 6px;
  89. float: left;
  90. text-align: center;
  91. vertical-align: middle;
  92. }
  93. .file-preview-frame:not(.file-preview-error):hover {
  94. box-shadow: 3px 3px 5px 0 #333;
  95. }
  96. .file-preview-image {
  97. vertical-align: middle;
  98. image-orientation: from-image;
  99. }
  100. .file-preview-text {
  101. display: block;
  102. color: #428bca;
  103. border: 1px solid #ddd;
  104. font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  105. outline: none;
  106. padding: 8px;
  107. resize: none;
  108. }
  109. .file-preview-html {
  110. border: 1px solid #ddd;
  111. padding: 8px;
  112. overflow: auto;
  113. }
  114. .file-zoom-dialog .file-preview-text {
  115. font-size: 1.2em;
  116. }
  117. .file-preview-other {
  118. left: 0;
  119. top: 0;
  120. right: 0;
  121. bottom: 0;
  122. margin: auto;
  123. text-align: center;
  124. vertical-align: middle;
  125. padding: 10px;
  126. }
  127. .file-preview-other:hover {
  128. opacity: 0.8;
  129. }
  130. .file-actions, .file-other-error {
  131. text-align: left;
  132. }
  133. .file-other-icon {
  134. font-size: 4.8em;
  135. }
  136. /* noinspection CssOverwrittenProperties */
  137. .file-zoom-dialog .file-other-icon {
  138. font-size: 8em;
  139. font-size: 55vmin;
  140. }
  141. .file-input-new .file-preview, .file-input-new .close, .file-input-new .glyphicon-file,
  142. .file-input-new .fileinput-remove-button, .file-input-new .fileinput-upload-button,
  143. .file-input-ajax-new .fileinput-remove-button, .file-input-ajax-new .fileinput-upload-button {
  144. display: none;
  145. }
  146. .file-caption-main {
  147. width: 100%;
  148. }
  149. .file-input-ajax-new .no-browse .input-group-btn,
  150. .file-input-new .no-browse .input-group-btn {
  151. display: none;
  152. }
  153. .file-input-ajax-new .no-browse .form-control,
  154. .file-input-new .no-browse .form-control {
  155. border-top-right-radius: 4px;
  156. border-bottom-right-radius: 4px;
  157. }
  158. .file-thumb-loading {
  159. background: transparent url('../img/loading.gif') no-repeat scroll center center content-box !important;
  160. }
  161. .file-actions {
  162. margin-top: 15px;
  163. }
  164. .file-footer-buttons {
  165. float: right;
  166. }
  167. .file-upload-indicator {
  168. display: inline;
  169. cursor: default;
  170. opacity: 0.8;
  171. width: 60%;
  172. }
  173. .file-upload-indicator:hover {
  174. font-weight: bold;
  175. opacity: 1;
  176. }
  177. .file-footer-caption {
  178. display: block;
  179. white-space: nowrap;
  180. overflow: hidden;
  181. text-overflow: ellipsis;
  182. width: 160px;
  183. text-align: center;
  184. padding-top: 4px;
  185. font-size: 11px;
  186. color: #777;
  187. margin: 5px auto;
  188. }
  189. .file-preview-error {
  190. opacity: 0.65;
  191. box-shadow: none;
  192. }
  193. .file-preview-frame:not(.file-preview-error) .file-footer-caption:hover {
  194. color: #000;
  195. }
  196. .file-drop-zone {
  197. border: 1px dashed #aaa;
  198. border-radius: 4px;
  199. height: 100%;
  200. text-align: center;
  201. vertical-align: middle;
  202. margin: 12px 15px 12px 12px;
  203. padding: 5px;
  204. }
  205. .file-drop-zone-title {
  206. color: #aaa;
  207. font-size: 1.6em;
  208. padding: 85px 10px;
  209. cursor: default;
  210. }
  211. .file-preview .clickable,
  212. .clickable .file-drop-zone-title {
  213. cursor: pointer;
  214. }
  215. .file-drop-zone.clickable:hover {
  216. border: 2px dashed #999;
  217. }
  218. .file-drop-zone.clickable:focus {
  219. border: 2px solid #5acde2;
  220. }
  221. .file-drop-zone .file-preview-thumbnails {
  222. cursor: default;
  223. }
  224. .file-highlighted {
  225. border: 2px dashed #999 !important;
  226. background-color: #f0f0f0;
  227. }
  228. .file-uploading {
  229. background: url('../img/loading-sm.gif') no-repeat center bottom 10px;
  230. opacity: 0.65;
  231. }
  232. .file-thumb-progress {
  233. height: 10px;
  234. }
  235. .file-thumb-progress .progress, .file-thumb-progress .progress-bar {
  236. height: 10px;
  237. font-size: 9px;
  238. line-height: 10px;
  239. }
  240. .file-thumbnail-footer {
  241. position: relative;
  242. }
  243. .file-thumb-progress {
  244. position: absolute;
  245. top: 35px;
  246. left: 0;
  247. right: 0;
  248. }
  249. .file-zoom-fullscreen.modal {
  250. position: fixed;
  251. top: 0;
  252. right: 0;
  253. bottom: 0;
  254. left: 0;
  255. }
  256. .file-zoom-fullscreen .modal-dialog {
  257. position: fixed;
  258. margin: 0;
  259. width: 100%;
  260. height: 100%;
  261. padding: 0;
  262. }
  263. .file-zoom-fullscreen .modal-content {
  264. border-radius: 0;
  265. box-shadow: none;
  266. }
  267. .file-zoom-fullscreen .modal-body {
  268. overflow-y: auto;
  269. }
  270. .file-zoom-dialog .modal-body {
  271. position: relative !important;
  272. }
  273. .file-zoom-dialog .btn-navigate {
  274. position: absolute;
  275. padding: 0;
  276. margin: 0;
  277. background: transparent;
  278. text-decoration: none;
  279. outline: none;
  280. opacity: 0.7;
  281. top: 45%;
  282. font-size: 4em;
  283. color: #1c94c4;
  284. }
  285. .file-zoom-dialog .floating-buttons {
  286. position: absolute;
  287. top: 5px;
  288. right: 10px;
  289. }
  290. .floating-buttons, .floating-buttons .btn {
  291. z-index: 3000;
  292. }
  293. .file-zoom-dialog .kv-zoom-actions .btn,
  294. .floating-buttons .btn {
  295. margin-left: 3px;
  296. }
  297. .file-zoom-dialog .btn-navigate:not([disabled]):hover,
  298. .file-zoom-dialog .btn-navigate:not([disabled]):focus {
  299. outline: none;
  300. box-shadow: none;
  301. opacity: 0.5;
  302. }
  303. .file-zoom-dialog .btn-navigate[disabled] {
  304. opacity: 0.3;
  305. }
  306. .file-zoom-dialog .btn-prev {
  307. left: 1px;
  308. }
  309. .file-zoom-dialog .btn-next {
  310. right: 1px;
  311. }
  312. .file-drag-handle {
  313. display: inline;
  314. margin-right: 2px;
  315. font-size: 16px;
  316. cursor: move;
  317. cursor: -webkit-grabbing;
  318. }
  319. .file-drag-handle:hover {
  320. opacity: 0.7;
  321. }
  322. .file-zoom-content {
  323. height: 480px;
  324. text-align: center;
  325. }
  326. .file-preview-initial.sortable-chosen {
  327. background-color: #d9edf7;
  328. }
  329. .file-preview-frame.sortable-ghost {
  330. background-color: #eee;
  331. }
  332. /* IE 10 fix */
  333. .btn-file ::-ms-browse {
  334. width: 100%;
  335. height: 100%;
  336. }