fileinput.css 6.8 KB

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