fileinput.css 3.9 KB

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