fileinput.css 6.7 KB

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