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

Side by Side Diff: chrome/browser/resources/file_manager/css/gallery.css

Issue 10107020: [filemanager] New visuals for file name, saved and overwrite original UI elemetns in image editor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Style. Created 8 years, 8 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 body { 5 body {
6 -webkit-user-select: none; 6 -webkit-user-select: none;
7 font-family: Open Sans, Droid Sans Fallback, sans-serif; 7 font-family: Open Sans, Droid Sans Fallback, sans-serif;
8 font-size: 84%; 8 font-size: 84%;
9 margin: 0; 9 margin: 0;
10 } 10 }
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 opacity: 0.2; 224 opacity: 0.2;
225 } 225 }
226 226
227 /* Filename */ 227 /* Filename */
228 228
229 .gallery .filename-spacer { 229 .gallery .filename-spacer {
230 position: relative; 230 position: relative;
231 width: 270px; 231 width: 270px;
232 } 232 }
233 233
234 .gallery[renaming] .filename-spacer > .name, 234 .gallery .filename-spacer > * {
235 .gallery .filename-spacer > input { 235 -webkit-transition: top linear 180ms;
236 background-color: transparent;
237 height: 21px;
238 left: 10px;
239 overflow: hidden;
240 position: absolute;
241 width: 260px;
242 }
243
244 .gallery .filename-spacer * {
245 color: white;
246 font-family: Open Sans, Droid Sans Fallback, sans-serif;
247 }
248
249 .gallery .filename-spacer .namebox {
250 top: 15px;
251 }
252
253 .gallery .filename-spacer[saved] .namebox {
254 top: 5px;
255 }
256
257 .gallery .filename-spacer .options {
258 top: 50px;
259 }
260
261 .gallery .filename-spacer[saved] .options {
262 top: 27px;
263 }
264
265 .gallery .filename-spacer[renaming] .namebox div,
266 .gallery .filename-spacer .namebox input {
236 opacity: 0; 267 opacity: 0;
237 z-index: 0; 268 z-index: 0;
238 } 269 }
239 270
240 .gallery .filename-spacer > .name, 271 .gallery .filename-spacer .namebox div,
241 .gallery[renaming] .filename-spacer > input { 272 .gallery .filename-spacer[renaming] .namebox input {
242 opacity: 1; 273 opacity: 1;
243 z-index: 1; 274 z-index: 1;
244 } 275 }
245 276
246 .gallery .filename-spacer > * { 277 .gallery .filename-spacer .namebox input,
247 background-color: transparent; 278 .gallery .filename-spacer .namebox div {
248 color: white; 279 border: none;
249 font-family: Open Sans, Droid Sans Fallback, sans-serif; 280 box-sizing: border-box;
250 height: 21px; 281 font-size: 120%;
282 height: 100%;
283 outline: none;
284 overflow: hidden;
251 position: absolute; 285 position: absolute;
252 width: 260px; 286 text-overflow: ellipsis;
287 white-space: nowrap;
288 width: 100%;
253 } 289 }
254 290
255 .gallery .filename-spacer > input, 291 .gallery .filename-spacer .namebox div {
256 .gallery .filename-spacer > .name { 292 padding: 1px 3px 0 3px;
257 border: none;
258 font-size: 120%;
259 left: 10px;
260 outline: none;
261 overflow: hidden;
262 text-overflow: ellipsis;
263 top: 5px;
264 white-space: nowrap;
265 } 293 }
266 294
267 .gallery .filename-spacer > .name:hover { 295 .gallery .filename-spacer .namebox input {
296 padding: 0 3px 0 2px;
297 }
298
299 .gallery .filename-spacer .namebox div:hover {
268 background-color: rgba(48, 48, 48, 1.0); 300 background-color: rgba(48, 48, 48, 1.0);
269 cursor: pointer; 301 cursor: pointer;
270 } 302 }
271 303
272 .gallery .filename-spacer > input:focus, 304 .gallery .filename-spacer .namebox input:focus,
273 .gallery .filename-spacer > input:focus:hover { 305 .gallery .filename-spacer .namebox input:focus:hover {
274 background-color: white; 306 background-color: white;
275 border-bottom: 1px solid white; 307 border-bottom: 1px solid white;
276 border-right: 1px solid white; 308 border-right: 1px solid white;
277 color: black; 309 color: black;
278 } 310 }
279 311
280 .gallery .filename-spacer > .options {
281 left: 10px;
282 top: 26px;
283 }
284
285 .gallery .filename-spacer .saved, 312 .gallery .filename-spacer .saved,
286 .gallery .filename-spacer .keep-original { 313 .gallery .filename-spacer .overwrite-original {
287 -webkit-transition: all linear 120ms; 314 -webkit-transition: all linear 120ms;
288 color: gray; 315 color: gray;
289 cursor: inherit; 316 cursor: inherit;
290 display: none; 317 display: inline-block;
291 font-size: 90%; 318 font-size: 90%;
319 margin-left: 6px;
292 margin-right: 10px; 320 margin-right: 10px;
321 opacity: 0;
293 pointer-events: none; 322 pointer-events: none;
294 } 323 }
295 324
325 .gallery .filename-spacer .overwrite-original input {
326 margin-bottom: -2px;
327 margin-right: 6px;
328 }
329
296 .gallery .filename-spacer .saved[highlighted] { 330 .gallery .filename-spacer .saved[highlighted] {
297 -webkit-transform: scaleX(1.1) scaleY(1.1) rotate(0); 331 -webkit-transform: scaleX(1.1) scaleY(1.1) rotate(0);
298 color: white; 332 color: white;
299 } 333 }
300 334
301 .gallery .filename-spacer .keep-original[visible] { 335 .gallery .filename-spacer[saved] .saved {
302 color: white; 336 opacity: 1;
337 }
338
339 .gallery .filename-spacer[overwrite] .overwrite-original,
340 .gallery .filename-spacer[overwrite] .overwrite-original > * {
341 color: gray;
303 cursor: pointer; 342 cursor: pointer;
304 display: inline-block; 343 opacity: 1;
305 pointer-events: auto; 344 pointer-events: auto;
306 } 345 }
307 346
347 /* Toolbar buttons */
348
308 .gallery .button-spacer { 349 .gallery .button-spacer {
309 -webkit-box-flex: 1; 350 -webkit-box-flex: 1;
310 display: -webkit-box; 351 display: -webkit-box;
311 } 352 }
312 353
313 /* Thumbnails */ 354 /* Thumbnails */
314 355
315 .gallery .ribbon-spacer { 356 .gallery .ribbon-spacer {
316 -webkit-box-align: center; 357 -webkit-box-align: center;
317 -webkit-box-orient: horizontal; 358 -webkit-box-orient: horizontal;
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 924
884 .gallery[video] .video-controls { 925 .gallery[video] .video-controls {
885 -webkit-box-flex: 1; 926 -webkit-box-flex: 1;
886 display: -webkit-box; 927 display: -webkit-box;
887 } 928 }
888 929
889 .gallery[video] > .toolbar .button.edit, 930 .gallery[video] > .toolbar .button.edit,
890 .gallery[video] > .toolbar .edit-bar { 931 .gallery[video] > .toolbar .edit-bar {
891 display: none; 932 display: none;
892 } 933 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698