fileinput.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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. .kv-has-ellipsis .file-caption-ellipsis {
  66. display: inline;
  67. }
  68. .kv-has-ellipsis {
  69. padding-right: 17px;
  70. }
  71. .kv-search-container .kv-search-clear {
  72. position: absolute;
  73. padding: 10px;
  74. right: 0;
  75. }
  76. .file-error-message {
  77. background-color: #f2dede;
  78. color: #a94442;
  79. text-align: center;
  80. border-radius: 5px;
  81. padding: 5px;
  82. }
  83. .file-error-message pre, .file-error-message ul {
  84. margin: 5px 0;
  85. text-align: left;
  86. }
  87. .file-caption-disabled {
  88. background-color: #EEEEEE;
  89. cursor: not-allowed;
  90. opacity: 1;
  91. }
  92. .file-input .btn[disabled], .file-input .btn .disabled {
  93. cursor: not-allowed;
  94. }
  95. .file-preview {
  96. border-radius: 5px;
  97. border: 1px solid #ddd;
  98. padding: 5px;
  99. width: 100%;
  100. margin-bottom: 5px;
  101. }
  102. .file-preview-frame {
  103. display: table;
  104. margin: 8px;
  105. height: 160px;
  106. border: 1px solid #ddd;
  107. box-shadow: 1px 1px 5px 0 #a2958a;
  108. padding: 6px;
  109. float: left;
  110. text-align: center;
  111. vertical-align: middle;
  112. }
  113. .file-preview-frame:hover {
  114. box-shadow: 3px 3px 5px 0 #333;
  115. }
  116. .file-preview-image {
  117. height: 160px;
  118. vertical-align: text-center;
  119. }
  120. .file-preview-text {
  121. text-align: left;
  122. width: 160px;
  123. margin-bottom: 2px;
  124. color: #428bca;
  125. background: #fff;
  126. overflow-x: hidden;
  127. }
  128. .file-preview-other {
  129. display: table-cell;
  130. text-align: center;
  131. vertical-align: middle;
  132. width: 160px;
  133. height: 160px;
  134. border: 2px dashed #999;
  135. border-radius: 25px;
  136. opacity: 0.8;
  137. }
  138. .file-preview-other:hover {
  139. opacity: 1;
  140. }
  141. .file-other-error {
  142. width: 100%;
  143. padding-top: 30px;
  144. text-align: right
  145. }
  146. .file-icon-lg {
  147. font-size: 1.2em;
  148. }
  149. .file-icon-2x {
  150. font-size: 2.4em;
  151. }
  152. .file-icon-4x {
  153. font-size: 4.8em;
  154. }
  155. .file-input-new .file-preview, .file-input-new .close, .file-input-new .glyphicon-file,
  156. .file-input-new .fileinput-remove-button, .file-input-new .fileinput-upload-button,
  157. .file-input-ajax-new .fileinput-remove-button, .file-input-ajax-new .fileinput-upload-button {
  158. display: none;
  159. }
  160. .loading {
  161. background: transparent url('../img/loading.gif') no-repeat scroll center center content-box !important;
  162. }
  163. .file-actions {
  164. text-align: left;
  165. }
  166. .file-footer-buttons {
  167. float: right;
  168. }
  169. .file-upload-indicator {
  170. padding-top: 2px;
  171. cursor: default;
  172. }
  173. .file-upload-indicator:hover {
  174. font-weight: bold;
  175. padding-top: 0;
  176. }
  177. .file-footer-caption {
  178. display: block;
  179. white-space: nowrap;
  180. overflow: hidden;
  181. text-overflow: ellipsis;
  182. width: 160px;
  183. text-align: center;
  184. padding-top: 4px;
  185. font-size: 11px;
  186. color: #777;
  187. margin: 5px auto 10px auto;
  188. }
  189. .file-footer-caption:hover {
  190. color: #333;
  191. }
  192. .file-drop-zone {
  193. border: 1px dashed #aaa;
  194. border-radius: 4px;
  195. height: 100%;
  196. text-align: center;
  197. vertical-align: middle;
  198. margin: 12px 15px 12px 12px;
  199. padding: 5px;
  200. }
  201. .file-drop-zone-title {
  202. color: #aaa;
  203. font-size: 40px;
  204. padding: 85px 10px;
  205. }
  206. .highlighted {
  207. border: 2px dashed #999 !important;
  208. background-color: #f0f0f0;
  209. }
  210. .file-uploading {
  211. background-image: url('../img/loading-sm.gif');
  212. background-position: center bottom 10px;
  213. background-repeat: no-repeat;
  214. opacity: 0.6;
  215. }