fileinput.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648
  1. /*!
  2. * bootstrap-fileinput v5.2.3
  3. * http://plugins.krajee.com/file-input
  4. *
  5. * Krajee default styling for bootstrap-fileinput.
  6. *
  7. * Author: Kartik Visweswaran
  8. * Copyright: 2014 - 2021, Kartik Visweswaran, Krajee.com
  9. *
  10. * Licensed under the BSD-3-Clause
  11. * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md
  12. */
  13. .file-loading input[type=file],
  14. input[type=file].file-loading {
  15. width: 0;
  16. height: 0;
  17. }
  18. .file-no-browse {
  19. position: absolute;
  20. left: 50%;
  21. bottom: 20%;
  22. width: 1px;
  23. height: 1px;
  24. font-size: 0;
  25. opacity: 0;
  26. border: none;
  27. background: none;
  28. outline: none;
  29. box-shadow: none;
  30. }
  31. .kv-hidden,
  32. .file-caption-icon,
  33. .file-zoom-dialog .modal-header:before,
  34. .file-zoom-dialog .modal-header:after,
  35. .file-input-new .file-preview,
  36. .file-input-new .close,
  37. .file-input-new .glyphicon-file,
  38. .file-input-new .fileinput-remove-button,
  39. .file-input-new .fileinput-upload-button,
  40. .file-input-new .no-browse .input-group-btn,
  41. .file-input-ajax-new .fileinput-remove-button,
  42. .file-input-ajax-new .fileinput-upload-button,
  43. .file-input-ajax-new .no-browse .input-group-btn,
  44. .hide-content .kv-file-content,
  45. .is-locked .fileinput-upload-button,
  46. .is-locked .fileinput-remove-button {
  47. display: none;
  48. }
  49. .btn-file input[type=file],
  50. .file-caption-icon,
  51. .file-preview .fileinput-remove,
  52. .krajee-default .file-thumb-progress,
  53. .file-zoom-dialog .btn-navigate,
  54. .file-zoom-dialog .floating-buttons {
  55. position: absolute;
  56. }
  57. .file-caption-icon .kv-caption-icon {
  58. line-height: inherit;
  59. }
  60. .file-input,
  61. .file-loading:before,
  62. .btn-file,
  63. .file-caption,
  64. .file-preview,
  65. .krajee-default.file-preview-frame,
  66. .krajee-default .file-thumbnail-footer,
  67. .file-zoom-dialog .modal-dialog {
  68. position: relative;
  69. }
  70. .file-error-message pre,
  71. .file-error-message ul,
  72. .krajee-default .file-actions,
  73. .krajee-default .file-other-error {
  74. text-align: left;
  75. }
  76. .file-error-message pre,
  77. .file-error-message ul {
  78. margin: 0;
  79. }
  80. .krajee-default .file-drag-handle,
  81. .krajee-default .file-upload-indicator {
  82. float: left;
  83. margin-top: 10px;
  84. width: 16px;
  85. height: 16px;
  86. }
  87. .file-thumb-progress .progress,
  88. .file-thumb-progress .progress-bar {
  89. font-family: Verdana, Helvetica, sans-serif;
  90. font-size: 0.7rem;
  91. }
  92. .krajee-default .file-thumb-progress .progress,
  93. .kv-upload-progress .progress {
  94. background-color: #ccc;
  95. }
  96. .krajee-default .file-caption-info,
  97. .krajee-default .file-size-info {
  98. display: block;
  99. white-space: nowrap;
  100. overflow: hidden;
  101. text-overflow: ellipsis;
  102. width: 160px;
  103. height: 15px;
  104. margin: auto;
  105. }
  106. .file-zoom-content > .file-object.type-video,
  107. .file-zoom-content > .file-object.type-flash,
  108. .file-zoom-content > .file-object.type-image {
  109. max-width: 100%;
  110. max-height: 100%;
  111. width: auto;
  112. }
  113. .file-zoom-content > .file-object.type-video,
  114. .file-zoom-content > .file-object.type-flash {
  115. height: 100%;
  116. }
  117. .file-zoom-content > .file-object.type-pdf,
  118. .file-zoom-content > .file-object.type-html,
  119. .file-zoom-content > .file-object.type-text,
  120. .file-zoom-content > .file-object.type-default {
  121. width: 100%;
  122. }
  123. .file-loading:before {
  124. content: " Loading...";
  125. display: inline-block;
  126. padding-left: 20px;
  127. line-height: 16px;
  128. font-size: 13px;
  129. font-variant: small-caps;
  130. color: #999;
  131. background: transparent url(../img/loading.gif) top left no-repeat;
  132. }
  133. .file-object {
  134. margin: 0 0 -5px 0;
  135. padding: 0;
  136. }
  137. .btn-file {
  138. overflow: hidden;
  139. }
  140. .btn-file input[type=file] {
  141. top: 0;
  142. left: 0;
  143. min-width: 100%;
  144. min-height: 100%;
  145. text-align: right;
  146. opacity: 0;
  147. background: none repeat scroll 0 0 transparent;
  148. cursor: inherit;
  149. display: block;
  150. }
  151. .btn-file ::-ms-browse {
  152. font-size: 10000px;
  153. width: 100%;
  154. height: 100%;
  155. }
  156. .file-caption.icon-visible .file-caption-icon {
  157. display: inline-block;
  158. }
  159. .file-caption.icon-visible .file-caption-name {
  160. padding-left: 30px;
  161. }
  162. .file-caption-name:not(.file-caption-disabled) {
  163. background-color: transparent;
  164. }
  165. .file-caption-name.file-processing {
  166. font-style: italic;
  167. border-color: #bbb;
  168. opacity: 0.5;
  169. }
  170. .file-caption-icon {
  171. padding: 0.5rem;
  172. left: 4px;
  173. }
  174. .input-group-lg .file-caption-icon {
  175. font-size: 1.25rem;
  176. padding: 0.9rem 0.9rem 0 0.2rem;
  177. }
  178. .input-group-sm .file-caption-icon {
  179. font-size: 0.875rem;
  180. }
  181. .file-error-message {
  182. color: #a94442;
  183. background-color: #f2dede;
  184. margin: 5px;
  185. border: 1px solid #ebccd1;
  186. border-radius: 4px;
  187. padding: 15px;
  188. }
  189. .file-error-message pre {
  190. margin: 5px 0;
  191. }
  192. .file-caption-disabled {
  193. background-color: #eee;
  194. cursor: not-allowed;
  195. opacity: 1;
  196. }
  197. .file-preview {
  198. border-radius: 5px;
  199. border: 1px solid #ddd;
  200. padding: 8px;
  201. width: 100%;
  202. margin-bottom: 5px;
  203. }
  204. .file-preview .btn-xs {
  205. padding: 1px 5px;
  206. font-size: 12px;
  207. line-height: 1.5;
  208. border-radius: 3px;
  209. }
  210. .file-preview .fileinput-remove {
  211. top: 1px;
  212. right: 1px;
  213. line-height: 10px;
  214. }
  215. .file-preview .clickable {
  216. cursor: pointer;
  217. }
  218. .file-preview-image {
  219. font: 40px Impact, Charcoal, sans-serif;
  220. color: #008000;
  221. width: auto;
  222. height: auto;
  223. max-width: 100%;
  224. max-height: 100%;
  225. }
  226. .krajee-default.file-preview-frame {
  227. margin: 8px;
  228. border: 1px solid rgba(0, 0, 0, 0.2);
  229. box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
  230. padding: 6px;
  231. float: left;
  232. text-align: center;
  233. }
  234. .krajee-default.file-preview-frame .kv-file-content {
  235. width: 213px;
  236. height: 160px;
  237. }
  238. .krajee-default .file-preview-other-frame {
  239. display: flex;
  240. align-items: center;
  241. justify-content: center;
  242. }
  243. .krajee-default.file-preview-frame .kv-file-content.kv-pdf-rendered {
  244. width: 400px;
  245. }
  246. .krajee-default.file-preview-frame[data-template="audio"] .kv-file-content {
  247. width: 240px;
  248. height: 55px;
  249. }
  250. .krajee-default.file-preview-frame .file-thumbnail-footer {
  251. height: 70px;
  252. }
  253. .krajee-default.file-preview-frame:not(.file-preview-error):hover {
  254. border: 1px solid rgba(0, 0, 0, 0.3);
  255. box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.4);
  256. }
  257. .krajee-default .file-preview-text {
  258. color: #428bca;
  259. border: 1px solid #ddd;
  260. outline: none;
  261. resize: none;
  262. }
  263. .krajee-default .file-preview-html {
  264. border: 1px solid #ddd;
  265. }
  266. .krajee-default .file-other-icon {
  267. font-size: 6em;
  268. line-height: 1;
  269. }
  270. .krajee-default .file-footer-buttons {
  271. float: right;
  272. }
  273. .krajee-default .file-footer-caption {
  274. display: block;
  275. text-align: center;
  276. padding-top: 4px;
  277. font-size: 11px;
  278. color: #777;
  279. margin-bottom: 30px;
  280. }
  281. .file-upload-stats {
  282. font-size: 10px;
  283. text-align: center;
  284. width: 100%;
  285. }
  286. .kv-upload-progress .file-upload-stats {
  287. font-size: 12px;
  288. margin: -10px 0 5px;
  289. }
  290. .krajee-default .file-preview-error {
  291. opacity: 0.65;
  292. box-shadow: none;
  293. }
  294. .krajee-default .file-thumb-progress {
  295. top: 37px;
  296. left: 0;
  297. right: 0;
  298. }
  299. .krajee-default.kvsortable-ghost {
  300. background: #e1edf7;
  301. border: 2px solid #a1abff;
  302. }
  303. .krajee-default .file-preview-other:hover {
  304. opacity: 0.8;
  305. }
  306. .krajee-default .file-preview-frame:not(.file-preview-error) .file-footer-caption:hover {
  307. color: #000;
  308. }
  309. .kv-upload-progress .progress {
  310. height: 20px;
  311. margin: 10px 0;
  312. overflow: hidden;
  313. }
  314. .kv-upload-progress .progress-bar {
  315. height: 20px;
  316. font-family: Verdana, Helvetica, sans-serif;
  317. }
  318. /*noinspection CssOverwrittenProperties*/
  319. .file-zoom-dialog .file-other-icon {
  320. font-size: 22em;
  321. font-size: 50vmin;
  322. }
  323. .file-zoom-dialog .modal-dialog {
  324. width: auto;
  325. }
  326. .file-zoom-dialog .modal-header {
  327. display: flex;
  328. align-items: center;
  329. justify-content: space-between;
  330. }
  331. .file-zoom-dialog .btn-navigate {
  332. padding: 0;
  333. margin: -1.2rem 0.1rem 0;
  334. font-size: 1.2rem;
  335. width: 2.4rem;
  336. height: 2.4rem;
  337. outline: none;
  338. top: 50%;
  339. border-radius: 50%;
  340. opacity: 0.8;
  341. background-color: #6c757d;
  342. border-color: #6c757d;
  343. color: #000;
  344. }
  345. .btn-navigate * {
  346. width: auto;
  347. }
  348. .file-zoom-dialog .btn-navigate:hover,
  349. .file-zoom-dialog .btn-navigate:focus {
  350. color: #fff;
  351. background-color: #5c636a;
  352. border-color: #565e64;
  353. }
  354. .file-zoom-dialog .btn-navigate:focus {
  355. box-shadow: 0 0 0 0.25rem rgb(130 138 145 / 50%);
  356. }
  357. .file-zoom-dialog .btn-navigate[disabled] {
  358. background-color: #999;
  359. border-color: #999;
  360. opacity: 0.4;
  361. }
  362. .file-zoom-dialog .floating-buttons {
  363. top: 5px;
  364. right: 10px;
  365. }
  366. .file-zoom-dialog .btn-kv-prev {
  367. left: 1px;
  368. }
  369. .file-zoom-dialog .btn-kv-next {
  370. right: 1px;
  371. }
  372. .file-zoom-dialog .kv-zoom-title {
  373. font-weight: 300;
  374. color: #999;
  375. max-width: 50%;
  376. overflow: hidden;
  377. white-space: nowrap;
  378. text-overflow: ellipsis;
  379. }
  380. .file-input-new .no-browse .form-control {
  381. border-top-right-radius: 4px;
  382. border-bottom-right-radius: 4px;
  383. }
  384. .file-input-ajax-new .no-browse .form-control {
  385. border-top-right-radius: 4px;
  386. border-bottom-right-radius: 4px;
  387. }
  388. .file-caption {
  389. width: 100%;
  390. position: relative;
  391. }
  392. .file-thumb-loading {
  393. background: transparent url(../img/loading.gif) no-repeat scroll center center content-box !important;
  394. }
  395. .file-drop-zone {
  396. border: 1px dashed #aaa;
  397. min-height: 260px;
  398. border-radius: 4px;
  399. text-align: center;
  400. vertical-align: middle;
  401. margin: 12px 15px 12px 12px;
  402. padding: 5px;
  403. }
  404. .file-drop-zone.clickable:hover {
  405. border: 2px dashed #999;
  406. }
  407. .file-drop-zone.clickable:focus {
  408. border: 2px solid #5acde2;
  409. }
  410. .file-drop-zone .file-preview-thumbnails {
  411. cursor: default;
  412. }
  413. .file-drop-zone-title {
  414. color: #aaa;
  415. font-size: 1.6em;
  416. text-align: center;
  417. padding: 85px 10px;
  418. cursor: default;
  419. }
  420. .file-highlighted {
  421. border: 2px dashed #999 !important;
  422. background-color: #eee;
  423. }
  424. .file-uploading {
  425. background: url(../img/loading-sm.gif) no-repeat center bottom 10px;
  426. opacity: 0.65;
  427. }
  428. .file-zoom-fullscreen .modal-dialog {
  429. min-width: 100%;
  430. margin: 0;
  431. }
  432. .file-zoom-fullscreen .modal-content {
  433. border-radius: 0;
  434. box-shadow: none;
  435. min-height: 100vh;
  436. }
  437. .file-zoom-fullscreen .modal-body {
  438. overflow-y: auto;
  439. }
  440. .floating-buttons {
  441. z-index: 3000;
  442. }
  443. .floating-buttons .btn-kv {
  444. margin-left: 3px;
  445. z-index: 3000;
  446. }
  447. .kv-zoom-actions .btn-kv {
  448. margin-left: 3px;
  449. }
  450. .file-zoom-content {
  451. text-align: center;
  452. white-space: nowrap;
  453. min-height: 300px;
  454. }
  455. .file-zoom-content:hover {
  456. background: transparent;
  457. }
  458. .file-zoom-content > * {
  459. display: inline-block;
  460. vertical-align: middle;
  461. }
  462. .file-zoom-content .kv-spacer {
  463. height: 100%;
  464. }
  465. .file-zoom-content .file-preview-image {
  466. max-height: 100%;
  467. }
  468. .file-zoom-content .file-preview-video {
  469. max-height: 100%;
  470. }
  471. .file-zoom-content > .file-object.type-image {
  472. height: auto;
  473. min-height: inherit;
  474. }
  475. .file-zoom-content > .file-object.type-audio {
  476. width: auto;
  477. height: 30px;
  478. }
  479. @media (min-width: 576px) {
  480. .file-zoom-dialog .modal-dialog {
  481. max-width: 500px;
  482. }
  483. }
  484. @media (min-width: 992px) {
  485. .file-zoom-dialog .modal-lg {
  486. max-width: 800px;
  487. }
  488. }
  489. @media (max-width: 767px) {
  490. .file-preview-thumbnails {
  491. display: flex;
  492. justify-content: center;
  493. align-items: center;
  494. flex-direction: column;
  495. }
  496. .file-zoom-dialog .modal-header {
  497. flex-direction: column;
  498. }
  499. }
  500. @media (max-width: 350px) {
  501. .krajee-default.file-preview-frame:not([data-template="audio"]) .kv-file-content {
  502. width: 160px;
  503. }
  504. }
  505. @media (max-width: 420px) {
  506. .krajee-default.file-preview-frame .kv-file-content.kv-pdf-rendered {
  507. width: 100%;
  508. }
  509. }
  510. .file-loading[dir=rtl]:before {
  511. background: transparent url(../img/loading.gif) top right no-repeat;
  512. padding-left: 0;
  513. padding-right: 20px;
  514. }
  515. .clickable .file-drop-zone-title {
  516. cursor: pointer;
  517. }
  518. .file-sortable .file-drag-handle:hover {
  519. opacity: 0.7;
  520. }
  521. .file-sortable .file-drag-handle {
  522. cursor: grab;
  523. opacity: 1;
  524. }
  525. .file-grabbing,
  526. .file-grabbing * {
  527. cursor: not-allowed !important;
  528. }
  529. .file-grabbing .file-preview-thumbnails * {
  530. cursor: grabbing !important;
  531. }
  532. .file-preview-frame.sortable-chosen {
  533. background-color: #d9edf7;
  534. border-color: #17a2b8;
  535. box-shadow: none !important;
  536. }
  537. .file-preview .kv-zoom-cache {
  538. display: none;
  539. }