fileinput.css 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. /*!
  2. * bootstrap-fileinput v4.3.2
  3. * http://plugins.krajee.com/file-input
  4. *
  5. * Author: Kartik Visweswaran
  6. * Copyright: 2014 - 2016, 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. }
  99. .file-preview-text {
  100. display: block;
  101. color: #428bca;
  102. border: 1px solid #ddd;
  103. font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  104. outline: none;
  105. padding: 8px;
  106. resize: none;
  107. }
  108. .file-preview-html {
  109. border: 1px solid #ddd;
  110. padding: 8px;
  111. overflow: auto;
  112. }
  113. .file-zoom-dialog .file-preview-text {
  114. font-size: 1.2em;
  115. }
  116. .file-preview-other {
  117. display: table-cell;
  118. text-align: center;
  119. vertical-align: middle;
  120. border: 2px solid #999;
  121. border-radius: 30px;
  122. }
  123. .file-preview-other:hover {
  124. opacity: 0.8;
  125. }
  126. .file-actions, .file-other-error {
  127. text-align: left;
  128. }
  129. .file-icon-lg {
  130. font-size: 1.2em;
  131. }
  132. .file-icon-2x {
  133. font-size: 2.4em;
  134. }
  135. .file-icon-4x {
  136. font-size: 4.8em;
  137. }
  138. .file-input-new .file-preview, .file-input-new .close, .file-input-new .glyphicon-file,
  139. .file-input-new .fileinput-remove-button, .file-input-new .fileinput-upload-button,
  140. .file-input-ajax-new .fileinput-remove-button, .file-input-ajax-new .fileinput-upload-button {
  141. display: none;
  142. }
  143. .file-thumb-loading {
  144. background: transparent url('../img/loading.gif') no-repeat scroll center center content-box !important;
  145. }
  146. .file-actions {
  147. margin-top: 15px;
  148. }
  149. .file-footer-buttons {
  150. float: right;
  151. }
  152. .file-upload-indicator {
  153. display: inline;
  154. cursor: default;
  155. opacity: 0.8;
  156. width: 60%;
  157. }
  158. .file-upload-indicator:hover {
  159. font-weight: bold;
  160. opacity: 1;
  161. }
  162. .file-footer-caption {
  163. display: block;
  164. white-space: nowrap;
  165. overflow: hidden;
  166. text-overflow: ellipsis;
  167. width: 160px;
  168. text-align: center;
  169. padding-top: 4px;
  170. font-size: 11px;
  171. color: #777;
  172. margin: 5px auto;
  173. }
  174. .file-preview-error {
  175. opacity: 0.65;
  176. box-shadow: none;
  177. }
  178. .file-preview-frame:not(.file-preview-error) .file-footer-caption:hover {
  179. color: #000;
  180. }
  181. .file-drop-zone {
  182. border: 1px dashed #aaa;
  183. border-radius: 4px;
  184. height: 100%;
  185. text-align: center;
  186. vertical-align: middle;
  187. margin: 12px 15px 12px 12px;
  188. padding: 5px;
  189. }
  190. .file-drop-zone-title {
  191. color: #aaa;
  192. font-size: 40px;
  193. padding: 85px 10px;
  194. }
  195. .file-highlighted {
  196. border: 2px dashed #999 !important;
  197. background-color: #f0f0f0;
  198. }
  199. .file-uploading {
  200. background: url('../img/loading-sm.gif') no-repeat center bottom 10px;
  201. opacity: 0.65;
  202. }
  203. .file-thumb-progress {
  204. height: 10px;
  205. }
  206. .file-thumb-progress .progress, .file-thumb-progress .progress-bar {
  207. height: 10px;
  208. font-size: 9px;
  209. line-height: 10px;
  210. }
  211. .file-thumbnail-footer {
  212. position: relative;
  213. }
  214. .file-thumb-progress {
  215. position: absolute;
  216. top: 35px;
  217. left: 0;
  218. right: 0;
  219. }
  220. .file-zoom-fullscreen.modal {
  221. position: fixed;
  222. top: 0;
  223. right: 0;
  224. bottom: 0;
  225. left: 0;
  226. }
  227. .file-zoom-fullscreen .modal-dialog {
  228. position: fixed;
  229. margin: 0;
  230. width: 100%;
  231. height: 100%;
  232. padding: 0;
  233. }
  234. .file-zoom-fullscreen .modal-content {
  235. border-radius: 0;
  236. box-shadow: none;
  237. }
  238. .file-zoom-fullscreen .modal-body {
  239. overflow-y: auto;
  240. }
  241. .file-zoom-dialog .modal-body {
  242. position: relative !important;
  243. }
  244. .file-zoom-dialog .btn-navigate {
  245. position: absolute;
  246. padding: 0;
  247. margin: 0;
  248. background: transparent;
  249. text-decoration: none;
  250. outline: none;
  251. opacity: 0.7;
  252. top: 45%;
  253. font-size: 4em;
  254. color: #1c94c4;
  255. }
  256. .file-zoom-dialog .floating-buttons {
  257. position: absolute;
  258. top: 5px;
  259. right: 10px;
  260. }
  261. .floating-buttons, .floating-buttons .btn {
  262. z-index: 3000;
  263. }
  264. .file-zoom-dialog .kv-zoom-actions .btn,
  265. .floating-buttons .btn {
  266. margin-left: 3px;
  267. }
  268. .file-zoom-dialog .btn-navigate:not([disabled]):hover,
  269. .file-zoom-dialog .btn-navigate:not([disabled]):focus {
  270. outline: none;
  271. box-shadow: none;
  272. opacity: 0.5;
  273. }
  274. .file-zoom-dialog .btn-navigate[disabled] {
  275. opacity: 0.3;
  276. }
  277. .file-zoom-dialog .btn-prev {
  278. left: 1px;
  279. }
  280. .file-zoom-dialog .btn-next {
  281. right: 1px;
  282. }
  283. .file-drag-handle {
  284. display: inline;
  285. margin-right: 2px;
  286. font-size: 16px;
  287. cursor: move;
  288. cursor: -webkit-grabbing;
  289. }
  290. .file-drag-handle:hover {
  291. opacity: 0.7;
  292. }
  293. .file-zoom-content {
  294. height: 480px;
  295. text-align: center;
  296. }
  297. .file-preview-initial.sortable-chosen {
  298. background-color: #d9edf7;
  299. }
  300. .file-preview-frame.sortable-ghost {
  301. background-color: #eee;
  302. }
  303. /* IE 10 fix */
  304. .btn-file ::-ms-browse {
  305. width: 100%;
  306. height: 100%;
  307. }