1 | /*! |
---|
2 | * @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2015 |
---|
3 | * @package bootstrap-fileinput |
---|
4 | * @version 4.1.8 |
---|
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 | |
---|
16 | .file-loading { |
---|
17 | top: 0; |
---|
18 | right: 0; |
---|
19 | width: 25px; |
---|
20 | height: 25px; |
---|
21 | font-size: 999px; |
---|
22 | text-align: right; |
---|
23 | color: #fff; |
---|
24 | background: transparent url('../img/loading.gif') top left no-repeat; |
---|
25 | border: none; |
---|
26 | } |
---|
27 | |
---|
28 | .btn-file { |
---|
29 | position: relative; |
---|
30 | overflow: hidden; |
---|
31 | } |
---|
32 | |
---|
33 | .btn-file input[type=file] { |
---|
34 | position: absolute; |
---|
35 | top: 0; |
---|
36 | right: 0; |
---|
37 | min-width: 100%; |
---|
38 | min-height: 100%; |
---|
39 | text-align: right; |
---|
40 | opacity: 0; |
---|
41 | filter: alpha(opacity=0); |
---|
42 | opacity: 0; |
---|
43 | background: none repeat scroll 0 0 transparent; |
---|
44 | cursor: inherit; |
---|
45 | display: block; |
---|
46 | } |
---|
47 | |
---|
48 | .file-caption .glyphicon { |
---|
49 | display: inline-block; |
---|
50 | min-width: 18px; |
---|
51 | float: left; |
---|
52 | margin-top: 2px; |
---|
53 | } |
---|
54 | |
---|
55 | .file-caption-name { |
---|
56 | display: inline-block; |
---|
57 | overflow: hidden; |
---|
58 | max-height: 20px; |
---|
59 | padding-right: 10px; |
---|
60 | word-break: break-all; |
---|
61 | } |
---|
62 | |
---|
63 | .file-caption-ellipsis { |
---|
64 | position: absolute; |
---|
65 | right: 10px; |
---|
66 | margin-top: -6px; |
---|
67 | font-size: 1.2em; |
---|
68 | display: none; |
---|
69 | font-weight: bold; |
---|
70 | cursor: default; |
---|
71 | } |
---|
72 | |
---|
73 | .kv-has-ellipsis .file-caption-ellipsis { |
---|
74 | display: inline; |
---|
75 | } |
---|
76 | |
---|
77 | .kv-has-ellipsis { |
---|
78 | padding-right: 17px; |
---|
79 | } |
---|
80 | |
---|
81 | .kv-search-container .kv-search-clear { |
---|
82 | position: absolute; |
---|
83 | padding: 10px; |
---|
84 | right: 0px; |
---|
85 | } |
---|
86 | |
---|
87 | .file-error-message { |
---|
88 | background-color: #f2dede; |
---|
89 | color: #a94442; |
---|
90 | text-align: center; |
---|
91 | border-radius: 5px; |
---|
92 | padding: 5px; |
---|
93 | } |
---|
94 | |
---|
95 | .file-error-message pre, .file-error-message ul { |
---|
96 | margin: 5px 0; |
---|
97 | text-align: left; |
---|
98 | } |
---|
99 | |
---|
100 | .file-caption-disabled { |
---|
101 | background-color: #EEEEEE; |
---|
102 | cursor: not-allowed; |
---|
103 | opacity: 1; |
---|
104 | } |
---|
105 | |
---|
106 | .file-input .btn[disabled], .file-input .btn .disabled { |
---|
107 | cursor: not-allowed; |
---|
108 | } |
---|
109 | |
---|
110 | .file-preview { |
---|
111 | border-radius: 5px; |
---|
112 | border: 1px solid #ddd; |
---|
113 | padding: 5px; |
---|
114 | width: 100%; |
---|
115 | margin-bottom: 5px; |
---|
116 | } |
---|
117 | |
---|
118 | .file-preview-frame { |
---|
119 | display: table; |
---|
120 | margin: 8px; |
---|
121 | height: 160px; |
---|
122 | border: 1px solid #ddd; |
---|
123 | box-shadow: 1px 1px 5px 0px #a2958a; |
---|
124 | padding: 6px; |
---|
125 | float: left; |
---|
126 | text-align: center; |
---|
127 | vertical-align: middle; |
---|
128 | } |
---|
129 | |
---|
130 | .file-preview-frame:hover { |
---|
131 | box-shadow: 3px 3px 5px 0px #333; |
---|
132 | } |
---|
133 | |
---|
134 | .file-preview-image { |
---|
135 | height: 160px; |
---|
136 | vertical-align: text-center; |
---|
137 | } |
---|
138 | |
---|
139 | .file-preview-text { |
---|
140 | width: 160px; |
---|
141 | color: #428bca; |
---|
142 | font-size: 11px; |
---|
143 | text-align: center; |
---|
144 | } |
---|
145 | |
---|
146 | .file-preview-other { |
---|
147 | padding-top: 48px; |
---|
148 | text-align: center; |
---|
149 | } |
---|
150 | |
---|
151 | .file-preview-other i { |
---|
152 | font-size: 2.4em; |
---|
153 | } |
---|
154 | |
---|
155 | .file-other-error { |
---|
156 | width: 100%; |
---|
157 | padding-top: 30px; |
---|
158 | text-align: right |
---|
159 | } |
---|
160 | |
---|
161 | .file-input-new .file-preview, .file-input-new .close, .file-input-new .glyphicon-file, |
---|
162 | .file-input-new .fileinput-remove-button, .file-input-new .fileinput-upload-button, |
---|
163 | .file-input-ajax-new .fileinput-remove-button, .file-input-ajax-new .fileinput-upload-button { |
---|
164 | display: none; |
---|
165 | } |
---|
166 | |
---|
167 | .loading { |
---|
168 | background: transparent url('../img/loading.gif') no-repeat scroll center center content-box !important; |
---|
169 | } |
---|
170 | |
---|
171 | .wrap-indicator { |
---|
172 | font-weight: bold; |
---|
173 | color: #245269; |
---|
174 | cursor: pointer; |
---|
175 | } |
---|
176 | |
---|
177 | .file-actions { |
---|
178 | text-align: left; |
---|
179 | } |
---|
180 | |
---|
181 | .file-footer-buttons { |
---|
182 | float: right; |
---|
183 | } |
---|
184 | |
---|
185 | .file-thumbnail-footer .file-caption-name { |
---|
186 | padding-top: 4px; |
---|
187 | font-size: 11px; |
---|
188 | color: #777; |
---|
189 | } |
---|
190 | |
---|
191 | .file-upload-indicator { |
---|
192 | padding-top: 2px; |
---|
193 | cursor: default; |
---|
194 | } |
---|
195 | |
---|
196 | .file-upload-indicator:hover { |
---|
197 | font-size: 1.2em; |
---|
198 | font-weight: bold; |
---|
199 | padding-top: 0; |
---|
200 | } |
---|
201 | |
---|
202 | .file-drop-zone { |
---|
203 | border: 1px dashed #aaa; |
---|
204 | border-radius: 4px; |
---|
205 | height: 100%; |
---|
206 | text-align: center; |
---|
207 | vertical-align: middle; |
---|
208 | margin: 12px 15px 12px 12px; |
---|
209 | padding: 5px; |
---|
210 | } |
---|
211 | |
---|
212 | .file-drop-zone-title { |
---|
213 | color: #aaa; |
---|
214 | font-size: 40px; |
---|
215 | padding: 85px 10px; |
---|
216 | } |
---|
217 | |
---|
218 | .highlighted { |
---|
219 | border: 2px dashed #999 !important; |
---|
220 | background-color: #f0f0f0; |
---|
221 | } |
---|
222 | |
---|
223 | .file-uploading { |
---|
224 | background-image: url('../img/loading-sm.gif'); |
---|
225 | background-position: center bottom 10px; |
---|
226 | background-repeat: no-repeat; |
---|
227 | opacity: 0.6; |
---|
228 | } |
---|
229 | |
---|
230 | .file-icon-large { |
---|
231 | font-size: 1.2em; |
---|
232 | } |
---|