fileinput.css 4.3 KB

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