fileinput.scss 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. /*!
  2. * bootstrap-fileinput v4.3.7
  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. input[type=file] {
  30. position: absolute;
  31. top: 0;
  32. right: 0;
  33. min-width: 100%;
  34. min-height: 100%;
  35. text-align: right;
  36. opacity: 0;
  37. background: none repeat scroll 0 0 transparent;
  38. cursor: inherit;
  39. display: block;
  40. }
  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. pre, ul {
  62. margin: 0;
  63. text-align: left;
  64. }
  65. pre {
  66. margin: 5px 0;
  67. }
  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. &:not(.file-preview-error):hover {
  93. box-shadow: 3px 3px 5px 0 #333;
  94. }
  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. &:hover {
  127. opacity: 0.8;
  128. }
  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 {
  142. .file-preview, .close, .glyphicon-file, .fileinput-remove-button, .fileinput-upload-button {
  143. display: none;
  144. }
  145. }
  146. .file-input-ajax-new {
  147. .fileinput-remove-button, .fileinput-upload-button {
  148. display: none;
  149. }
  150. }
  151. .file-caption-main {
  152. width: 100%;
  153. }
  154. .file-input-ajax-new .no-browse .input-group-btn, .file-input-new .no-browse .input-group-btn {
  155. display: none;
  156. }
  157. .file-input-ajax-new .no-browse .form-control, .file-input-new .no-browse .form-control {
  158. border-top-right-radius: 4px;
  159. border-bottom-right-radius: 4px;
  160. }
  161. .file-thumb-loading {
  162. background: transparent url('../img/loading.gif') no-repeat scroll center center content-box !important;
  163. }
  164. .file-actions {
  165. margin-top: 15px;
  166. }
  167. .file-footer-buttons {
  168. float: right;
  169. }
  170. .file-upload-indicator {
  171. display: inline;
  172. cursor: default;
  173. opacity: 0.8;
  174. width: 60%;
  175. &:hover {
  176. font-weight: bold;
  177. opacity: 1;
  178. }
  179. }
  180. .file-footer-caption {
  181. display: block;
  182. white-space: nowrap;
  183. overflow: hidden;
  184. text-overflow: ellipsis;
  185. width: 160px;
  186. text-align: center;
  187. padding-top: 4px;
  188. font-size: 11px;
  189. color: #777;
  190. margin: 5px auto;
  191. }
  192. .file-preview-error {
  193. opacity: 0.65;
  194. box-shadow: none;
  195. }
  196. .file-preview-frame:not(.file-preview-error) .file-footer-caption:hover {
  197. color: #000;
  198. }
  199. .file-drop-zone {
  200. border: 1px dashed #aaa;
  201. border-radius: 4px;
  202. height: 100%;
  203. text-align: center;
  204. vertical-align: middle;
  205. margin: 12px 15px 12px 12px;
  206. padding: 5px;
  207. }
  208. .file-drop-zone-title {
  209. color: #aaa;
  210. font-size: 1.6em;
  211. padding: 85px 10px;
  212. cursor: default;
  213. }
  214. .file-preview .clickable, .clickable .file-drop-zone-title {
  215. cursor: pointer;
  216. }
  217. .file-drop-zone {
  218. &.clickable {
  219. &:hover {
  220. border: 2px dashed #999;
  221. }
  222. &:focus {
  223. border: 2px solid #5acde2;
  224. }
  225. }
  226. .file-preview-thumbnails {
  227. cursor: default;
  228. }
  229. }
  230. .file-highlighted {
  231. border: 2px dashed #999 !important;
  232. background-color: #f0f0f0;
  233. }
  234. .file-uploading {
  235. background: url('../img/loading-sm.gif') no-repeat center bottom 10px;
  236. opacity: 0.65;
  237. }
  238. .file-thumb-progress {
  239. height: 10px;
  240. .progress, .progress-bar {
  241. height: 10px;
  242. font-size: 9px;
  243. line-height: 10px;
  244. }
  245. }
  246. .file-thumbnail-footer {
  247. position: relative;
  248. }
  249. .file-thumb-progress {
  250. position: absolute;
  251. top: 35px;
  252. left: 0;
  253. right: 0;
  254. }
  255. .file-zoom-fullscreen {
  256. &.modal {
  257. position: fixed;
  258. top: 0;
  259. right: 0;
  260. bottom: 0;
  261. left: 0;
  262. }
  263. .modal-dialog {
  264. position: fixed;
  265. margin: 0;
  266. width: 100%;
  267. height: 100%;
  268. padding: 0;
  269. }
  270. .modal-content {
  271. border-radius: 0;
  272. box-shadow: none;
  273. }
  274. .modal-body {
  275. overflow-y: auto;
  276. }
  277. }
  278. .file-zoom-dialog {
  279. .modal-body {
  280. position: relative !important;
  281. }
  282. .btn-navigate {
  283. position: absolute;
  284. padding: 0;
  285. margin: 0;
  286. background: transparent;
  287. text-decoration: none;
  288. outline: none;
  289. opacity: 0.7;
  290. top: 45%;
  291. font-size: 4em;
  292. color: #1c94c4;
  293. }
  294. .floating-buttons {
  295. position: absolute;
  296. top: 5px;
  297. right: 10px;
  298. }
  299. }
  300. .floating-buttons {
  301. z-index: 3000;
  302. .btn {
  303. z-index: 3000;
  304. }
  305. }
  306. .file-zoom-dialog .kv-zoom-actions .btn, .floating-buttons .btn {
  307. margin-left: 3px;
  308. }
  309. .file-zoom-dialog {
  310. .btn-navigate {
  311. &:not([disabled]) {
  312. &:hover, &:focus {
  313. outline: none;
  314. box-shadow: none;
  315. opacity: 0.5;
  316. }
  317. }
  318. &[disabled] {
  319. opacity: 0.3;
  320. }
  321. }
  322. .btn-prev {
  323. left: 1px;
  324. }
  325. .btn-next {
  326. right: 1px;
  327. }
  328. }
  329. .file-drag-handle {
  330. display: inline;
  331. margin-right: 2px;
  332. font-size: 16px;
  333. opacity: 0.6;
  334. cursor: not-allowed;
  335. }
  336. .file-sortable .file-drag-handle {
  337. cursor: move;
  338. cursor: -webkit-grabbing;
  339. opacity: 1;
  340. &:hover {
  341. opacity: 0.7;
  342. }
  343. }
  344. .file-zoom-content {
  345. height: 480px;
  346. text-align: center;
  347. }
  348. .file-preview-initial.sortable-chosen {
  349. background-color: #d9edf7;
  350. }
  351. .file-preview-frame.sortable-ghost {
  352. background-color: #eee;
  353. }
  354. /* IE 10 fix */
  355. .btn-file ::-ms-browse {
  356. width: 100%;
  357. height: 100%;
  358. }