fileinput.css 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  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 10px 5px 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:not(.file-preview-error):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-frame:not(.file-preview-error) .file-preview-other:hover {
  115. opacity: 1;
  116. }
  117. .file-actions,
  118. .file-other-error {
  119. text-align: left;
  120. }
  121. .file-icon-lg {
  122. font-size: 1.2em;
  123. }
  124. .file-icon-2x {
  125. font-size: 2.4em;
  126. }
  127. .file-icon-4x {
  128. font-size: 4.8em;
  129. }
  130. .file-input-new .file-preview, .file-input-new .close, .file-input-new .glyphicon-file,
  131. .file-input-new .fileinput-remove-button, .file-input-new .fileinput-upload-button,
  132. .file-input-ajax-new .fileinput-remove-button, .file-input-ajax-new .fileinput-upload-button {
  133. display: none;
  134. }
  135. .loading {
  136. background: transparent url('../img/loading.gif') no-repeat scroll center center content-box !important;
  137. }
  138. .file-actions {
  139. margin-top: 15px;
  140. }
  141. .file-footer-buttons {
  142. float: right;
  143. }
  144. .file-upload-indicator {
  145. padding-top: 2px;
  146. cursor: default;
  147. opacity: 0.8;
  148. width: 60%;
  149. }
  150. .file-upload-indicator:hover {
  151. font-weight: bold;
  152. opacity: 1;
  153. }
  154. .file-footer-caption {
  155. display: block;
  156. white-space: nowrap;
  157. overflow: hidden;
  158. text-overflow: ellipsis;
  159. width: 160px;
  160. text-align: center;
  161. padding-top: 4px;
  162. font-size: 11px;
  163. color: #777;
  164. margin: 5px auto 10px auto;
  165. }
  166. .file-preview-frame:not(.file-preview-error) .file-footer-caption:hover {
  167. color: #000;
  168. }
  169. .file-drop-zone {
  170. border: 1px dashed #aaa;
  171. border-radius: 4px;
  172. height: 100%;
  173. text-align: center;
  174. vertical-align: middle;
  175. margin: 12px 15px 12px 12px;
  176. padding: 5px;
  177. }
  178. .file-drop-zone-title {
  179. color: #aaa;
  180. font-size: 40px;
  181. padding: 85px 10px;
  182. }
  183. .highlighted {
  184. border: 2px dashed #999 !important;
  185. background-color: #f0f0f0;
  186. }
  187. .file-uploading {
  188. background: url('../img/loading-sm.gif') no-repeat center bottom 10px;
  189. opacity: 0.6;
  190. }
  191. .file-error-message .close {
  192. margin-top: 10px;
  193. }
  194. .file-thumb-progress .progress, .file-thumb-progress .progress-bar {
  195. height: 10px;
  196. font-size: 9px;
  197. line-height: 10px;
  198. }
  199. .file-thumbnail-footer {
  200. position: relative;
  201. }
  202. .file-thumb-progress {
  203. position: absolute;
  204. top: 22px;
  205. left: 0;
  206. right: 0;
  207. }