fileinput.css 4.7 KB

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