fileinput.css 4.3 KB

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