fileinput.css 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. /*!
  2. * @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2015
  3. * @package bootstrap-fileinput
  4. * @version 4.2.6
  5. *
  6. * File input styling for Bootstrap 3.0
  7. * Built for Yii Framework 2.0
  8. * Author: Kartik Visweswaran
  9. * Year: 2015
  10. * For more Yii related demos visit http://demos.krajee.com
  11. */
  12. .file-input {
  13. overflow-x: auto;
  14. }
  15. .file-loading {
  16. top: 0;
  17. right: 0;
  18. width: 25px;
  19. height: 25px;
  20. font-size: 999px;
  21. text-align: right;
  22. color: #fff;
  23. background: transparent url('../img/loading.gif') top left no-repeat;
  24. border: none;
  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 .glyphicon {
  43. display: inline-block;
  44. min-width: 18px;
  45. margin-top: 2px;
  46. }
  47. .file-caption-name {
  48. display: inline-block;
  49. overflow: hidden;
  50. padding-right: 10px;
  51. word-break: break-all;
  52. }
  53. .file-caption-ellipsis {
  54. position: absolute;
  55. right: 10px;
  56. margin-top: -6px;
  57. font-size: 1.2em;
  58. display: none;
  59. font-weight: bold;
  60. cursor: default;
  61. }
  62. .file-preview-detail-modal {
  63. text-align: left;
  64. }
  65. .file-preview-other-footer .file-actions {
  66. margin-top: 10px;
  67. }
  68. .file-preview-other-footer .file-caption-name {
  69. display: block;
  70. white-space: nowrap;
  71. overflow: hidden;
  72. text-overflow: ellipsis;
  73. width: 160px;
  74. text-align: center;
  75. }
  76. .kv-has-ellipsis .file-caption-ellipsis {
  77. display: inline;
  78. }
  79. .kv-has-ellipsis {
  80. padding-right: 17px;
  81. }
  82. .kv-search-container .kv-search-clear {
  83. position: absolute;
  84. padding: 10px;
  85. right: 0;
  86. }
  87. .file-error-message {
  88. background-color: #f2dede;
  89. color: #a94442;
  90. text-align: center;
  91. border-radius: 5px;
  92. padding: 5px;
  93. }
  94. .file-error-message pre, .file-error-message ul {
  95. margin: 5px 0;
  96. text-align: left;
  97. }
  98. .file-caption-disabled {
  99. background-color: #EEEEEE;
  100. cursor: not-allowed;
  101. opacity: 1;
  102. }
  103. .file-input .btn[disabled], .file-input .btn .disabled {
  104. cursor: not-allowed;
  105. }
  106. .file-preview {
  107. border-radius: 5px;
  108. border: 1px solid #ddd;
  109. padding: 5px;
  110. width: 100%;
  111. margin-bottom: 5px;
  112. }
  113. .file-preview-frame {
  114. display: table;
  115. margin: 8px;
  116. height: 160px;
  117. border: 1px solid #ddd;
  118. box-shadow: 1px 1px 5px 0 #a2958a;
  119. padding: 6px;
  120. float: left;
  121. text-align: center;
  122. vertical-align: middle;
  123. }
  124. .file-preview-frame:hover {
  125. box-shadow: 3px 3px 5px 0 #333;
  126. }
  127. .file-preview-image {
  128. height: 160px;
  129. vertical-align: text-center;
  130. }
  131. .file-preview-text {
  132. text-align: left;
  133. width: 160px;
  134. margin-bottom: 2px;
  135. color: #428bca;
  136. background: #fff;
  137. overflow-x: hidden;
  138. }
  139. .file-preview-other {
  140. display: table-cell;
  141. text-align: center;
  142. vertical-align: middle;
  143. width: 160px;
  144. height: 140px;
  145. border: 2px dashed #999;
  146. border-radius: 25px;
  147. opacity: 0.8;
  148. }
  149. .file-preview-other:hover {
  150. opacity: 1;
  151. }
  152. .file-other-error {
  153. width: 100%;
  154. padding-top: 30px;
  155. text-align: right
  156. }
  157. .file-icon-lg {
  158. font-size: 1.2em;
  159. }
  160. .file-icon-2x {
  161. font-size: 2.4em;
  162. }
  163. .file-icon-4x {
  164. font-size: 4.8em;
  165. }
  166. .file-input-new .file-preview, .file-input-new .close, .file-input-new .glyphicon-file,
  167. .file-input-new .fileinput-remove-button, .file-input-new .fileinput-upload-button,
  168. .file-input-ajax-new .fileinput-remove-button, .file-input-ajax-new .fileinput-upload-button {
  169. display: none;
  170. }
  171. .loading {
  172. background: transparent url('../img/loading.gif') no-repeat scroll center center content-box !important;
  173. }
  174. .file-actions {
  175. text-align: left;
  176. }
  177. .file-footer-buttons {
  178. float: right;
  179. }
  180. .file-thumbnail-footer .file-caption-name {
  181. padding-top: 4px;
  182. font-size: 11px;
  183. color: #777;
  184. }
  185. .file-upload-indicator {
  186. padding-top: 2px;
  187. cursor: default;
  188. }
  189. .file-upload-indicator:hover {
  190. font-size: 1.2em;
  191. font-weight: bold;
  192. padding-top: 0;
  193. }
  194. .file-drop-zone {
  195. border: 1px dashed #aaa;
  196. border-radius: 4px;
  197. height: 100%;
  198. text-align: center;
  199. vertical-align: middle;
  200. margin: 12px 15px 12px 12px;
  201. padding: 5px;
  202. }
  203. .file-drop-zone-title {
  204. color: #aaa;
  205. font-size: 40px;
  206. padding: 85px 10px;
  207. }
  208. .highlighted {
  209. border: 2px dashed #999 !important;
  210. background-color: #f0f0f0;
  211. }
  212. .file-uploading {
  213. background-image: url('../img/loading-sm.gif');
  214. background-position: center bottom 10px;
  215. background-repeat: no-repeat;
  216. opacity: 0.6;
  217. }