Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Side by Side Diff: chrome/browser/resources/chromeos/wallpaper_manager/css/wallpaper_manager.css

Issue 10909125: Add butter bar for wallpapaer manager(show downloading progress or error message) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */ 3 * found in the LICENSE file. */
4 4
5 html { 5 html {
6 height: 100%; 6 height: 100%;
7 } 7 }
8 8
9 body { 9 body {
10 background-color: #fefefe; 10 background-color: #fefefe;
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 .bottom-bar > .spacer { 136 .bottom-bar > .spacer {
137 -webkit-box-flex: 1; 137 -webkit-box-flex: 1;
138 } 138 }
139 139
140 /* Custom wallpaper thumbnail container. */ 140 /* Custom wallpaper thumbnail container. */
141 #preview { 141 #preview {
142 height: 80px; 142 height: 80px;
143 width: 128px; 143 width: 128px;
144 } 144 }
145
146 /* The butter bar styles are copied from file_manager.css. We will revisit
147 * it to see if we can share some code after butter bar is integrated with
148 * Photo Editor.
149 * See http://codereview.chromium.org/10916149/ for details.
150 */
151 /* TODO(bshe): Remove these styles if we can share code with file manager. */
152 #butter-bar-container {
153 -webkit-box-pack: center;
154 display: -webkit-box;
155 left: 0;
156 pointer-events: none;
157 position: absolute;
158 top: 0;
159 width: 100%;
160 z-index: 3;
161 }
162
163 #butter-bar {
164 -webkit-box-align: end;
165 -webkit-box-orient: horizontal;
166 -webkit-transition: opacity 300ms;
167 background-color: #e3e3e3;
168 color: #222;
169 display: -webkit-box;
170 max-width: 340px;
171 min-width: 40px;
172 padding: 0 1em;
173 pointer-events: auto;
174 top: 1px;
175 width: 30%;
176 z-index: 2;
177 }
178
179 #butter-bar:not(.visible) {
180 opacity: 0;
181 pointer-events: none;
182 }
183
184 #butter-bar .content {
185 -webkit-box-flex: 1;
186 overflow: hidden;
187 padding-bottom: 4px;
188 padding-top: 4px;
189 }
190
191 #butter-bar .actions {
192 -webkit-box-orient: horizontal;
193 -webkit-box-pack: end;
194 display: -webkit-box;
195 height: 20px;
196 }
197
198 #butter-bar .actions a {
199 background: center center no-repeat;
200 background-image: -webkit-image-set(
201 url('../images/ui/close_bar.png') 1x,
202 url('../images/ui/2x/close_bar.png') 2x);
203 display: inline-block;
204 height: 12px;
205 padding: 4px 2px;
206 width: 12px;
207 }
208
209 #butter-bar .actions a:first-child {
210 margin-left: 2px;
211 }
212
213 #butter-bar .actions a:last-child {
214 margin-right: -2px; /* Overlap the padding with butter-bar padding. */
215 }
216
217 #butter-bar.error {
218 background-color: rgba(221, 75, 57, 0.2);
219 border: 1px solid rgba(221, 75, 57, 0.5);
220 border-radius: 2px;
221 padding: 2px 1em;
222 }
223
224 .progress-bar {
225 -webkit-box-flex: 1;
226 border: 1px solid #999;
227 margin-bottom: 2px;
228 margin-top: 3px;
229 padding: 1px;
230 }
231
232 .progress-track {
233 -webkit-animation-duration: 800ms;
234 -webkit-animation-iteration-count: infinite;
235 -webkit-animation-name: bg;
236 -webkit-animation-timing-function: linear;
237 background-color: #ccc;
238 background-image: -webkit-linear-gradient(315deg, transparent,
239 transparent 33%, rgba(0, 0, 0, 0.12) 33%, rgba(0, 0, 0, 0.12) 66%,
240 transparent 66%, transparent);
241 background-position: 0 0;
242 background-repeat: repeat-x;
243 background-size: 16px 8px;
244 height: 5px;
245 }
246
247 @-webkit-keyframes bg {
248 0% { background-position: 0 0; }
249 100% { background-position: -16px 0; }
250 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698