fileinput.css 4.2 KB

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