OLD | NEW |
1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2014 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 } |
11 | 11 |
| 12 input:focus, button:focus { |
| 13 outline: 1px solid rgb(77, 144, 254); |
| 14 } |
| 15 |
| 16 input[type='checkbox'] { |
| 17 width: 15px; |
| 18 height: 15px; |
| 19 background: -webkit-image-set( |
| 20 url(../../file_manager/foreground/images/common/checkbox_white_unchecked.p
ng) 1x, |
| 21 url(../../file_manager/foreground/images/common/2x/checkbox_white_unchecke
d.png) 2x) |
| 22 -1px -1px; |
| 23 -webkit-appearance: none; |
| 24 display: inline-block; |
| 25 margin: 1px 6px 1px 1px; |
| 26 vertical-align: text-bottom; |
| 27 } |
| 28 |
| 29 input[type='checkbox']:checked { |
| 30 background: -webkit-image-set( |
| 31 url(../../file_manager/foreground/images/common/checkbox_white_checked.png
) 1x, |
| 32 url(../../file_manager/foreground/images/common/2x/checkbox_white_checked.
png) 2x) |
| 33 -1px -1px; |
| 34 } |
| 35 |
12 .gallery, | 36 .gallery, |
13 .gallery .content { | 37 .gallery .content { |
14 bottom: 0; | 38 bottom: 0; |
15 left: 0; | 39 left: 0; |
16 overflow: hidden; | 40 overflow: hidden; |
17 position: absolute; | 41 position: absolute; |
18 right: 0; | 42 right: 0; |
19 top: 0; | 43 top: 0; |
20 } | 44 } |
21 | 45 |
22 /* Common background for both mosaic and slide mode. */ | 46 /* Common background for both mosaic and slide mode. */ |
23 .gallery .content { | 47 .gallery .content { |
24 background-color: black; | 48 background-color: black; |
25 } | 49 } |
26 | 50 |
27 /* Close button */ | |
28 | |
29 /* We actually want (left,top) to be (0,0) but for some weird reason | |
30 this triggers :hover style on page reload which is ugly. */ | |
31 .gallery > .back-button { | |
32 cursor: pointer; | |
33 left: 1px; | |
34 position: absolute; | |
35 top: 1px; | |
36 z-index: 200; | |
37 } | |
38 | |
39 /* The close icon is in a nested div so that its opacity can be manipulated | |
40 independently from its parent (which can be dimmed when the crop frame | |
41 overlaps it) */ | |
42 .gallery > .back-button div { | |
43 background-image: -webkit-image-set( | |
44 url(../images/100/back_to_files.png) 1x, | |
45 url(../images/200/back_to_files.png) 2x); | |
46 background-position: center center; | |
47 background-repeat: no-repeat; | |
48 height: 40px; | |
49 opacity: 0; | |
50 width: 64px; | |
51 } | |
52 | |
53 .gallery[tools] > .back-button div { | |
54 opacity: 0.5; | |
55 } | |
56 | |
57 .gallery[tools] > .back-button div:hover { | |
58 opacity: 1; | |
59 } | |
60 | |
61 /* Image container and canvas elements */ | 51 /* Image container and canvas elements */ |
62 | 52 |
63 .gallery .image-container { | 53 .gallery .image-container { |
64 cursor: none; /* Only visible when the toolbar is active */ | 54 cursor: none; /* Only visible when the toolbar is active */ |
65 height: 100%; | 55 height: 100%; |
66 position: absolute; | 56 position: absolute; |
67 width: 100%; | 57 width: 100%; |
68 } | 58 } |
69 | 59 |
70 .gallery[tools] .image-container[cursor='default'] { | 60 .gallery[tools] .image-container[cursor='default'] { |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 .gallery[editing] .options[saved] .overwrite-original { | 385 .gallery[editing] .options[saved] .overwrite-original { |
396 opacity: 0.5; | 386 opacity: 0.5; |
397 } | 387 } |
398 | 388 |
399 .gallery[editing] .options[saved] .overwrite-original, | 389 .gallery[editing] .options[saved] .overwrite-original, |
400 .gallery[editing] .options[saved] .overwrite-original > * { | 390 .gallery[editing] .options[saved] .overwrite-original > * { |
401 cursor: default; | 391 cursor: default; |
402 pointer-events: none; | 392 pointer-events: none; |
403 } | 393 } |
404 | 394 |
405 .gallery .filename-spacer .overwrite-original input { | |
406 margin-bottom: -2px; | |
407 margin-right: 6px; | |
408 } | |
409 | |
410 .gallery .filename-spacer .saved[highlighted] { | 395 .gallery .filename-spacer .saved[highlighted] { |
411 -webkit-transform: scaleX(1.1) scaleY(1.1) rotate(0); | 396 -webkit-transform: scaleX(1.1) scaleY(1.1) rotate(0); |
412 opacity: 1; | 397 opacity: 1; |
413 } | 398 } |
414 | 399 |
415 /* Bubble */ | 400 /* Bubble */ |
416 .gallery .toolbar .bubble { | 401 .gallery .toolbar .bubble { |
417 bottom: 65px; | 402 bottom: 65px; |
418 font-size: 85%; | 403 font-size: 85%; |
419 left: 50px; | 404 left: 50px; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 | 463 |
479 .ribbon-image[vanishing='smooth'] { | 464 .ribbon-image[vanishing='smooth'] { |
480 border-left-width: 0; | 465 border-left-width: 0; |
481 border-right-width: 0; | 466 border-right-width: 0; |
482 margin-left: 0; | 467 margin-left: 0; |
483 margin-right: 0; | 468 margin-right: 0; |
484 width: 0; | 469 width: 0; |
485 } | 470 } |
486 | 471 |
487 .gallery .ribbon-image[selected] { | 472 .gallery .ribbon-image[selected] { |
488 border: 2px solid rgba(255, 233, 168, 1); | 473 border: 2px solid rgb(77, 144, 254); |
489 } | 474 } |
490 | 475 |
491 .gallery .toolbar .ribbon.fade-left { | 476 .gallery .toolbar .ribbon.fade-left { |
492 -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0, | 477 -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0, |
493 rgba(0, 0, 0, 1) 40px); | 478 rgba(0, 0, 0, 1) 40px); |
494 } | 479 } |
495 | 480 |
496 .gallery .toolbar .ribbon.fade-right { | 481 .gallery .toolbar .ribbon.fade-right { |
497 -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0) 0, | 482 -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0) 0, |
498 rgba(0, 0, 0, 1) 40px); | 483 rgba(0, 0, 0, 1) 40px); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 } | 562 } |
578 | 563 |
579 .gallery .header button, | 564 .gallery .header button, |
580 .gallery .toolbar button { | 565 .gallery .toolbar button { |
581 height: 40px; | 566 height: 40px; |
582 margin: 6px 0; | 567 margin: 6px 0; |
583 min-width: 40px; /* Reset. */ | 568 min-width: 40px; /* Reset. */ |
584 width: 40px; | 569 width: 40px; |
585 } | 570 } |
586 | 571 |
| 572 .gallery .toolbar button:focus { |
| 573 z-index: 11; |
| 574 } |
| 575 |
587 /* By default, labels are hidden. */ | 576 /* By default, labels are hidden. */ |
588 .gallery > .toolbar button span { | 577 .gallery > .toolbar button span { |
589 display: none; | 578 display: none; |
590 } | 579 } |
591 | 580 |
592 /* Show labels if there is enough space. */ | 581 /* Show labels if there is enough space. */ |
593 @media (min-width: 1180px) { | 582 @media (min-width: 1180px) { |
594 | 583 |
595 .gallery .edit-main button, | 584 .gallery .edit-main button, |
596 .gallery .edit-main button[disabled] { | 585 .gallery .edit-main button[disabled] { |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1043 | 1032 |
1044 .gallery .prompt[state='fadeout'] { | 1033 .gallery .prompt[state='fadeout'] { |
1045 opacity: 0; | 1034 opacity: 0; |
1046 top: 0; | 1035 top: 0; |
1047 } | 1036 } |
1048 | 1037 |
1049 .gallery .prompt-wrapper[pos=top] .prompt { | 1038 .gallery .prompt-wrapper[pos=top] .prompt { |
1050 padding-right: 10px; | 1039 padding-right: 10px; |
1051 } | 1040 } |
1052 | 1041 |
1053 .gallery .prompt .back-button { | |
1054 background-image: -webkit-image-set( | |
1055 url(../images/100/butterbar_close_button.png) 1x, | |
1056 url(../images/200/butterbar_close_button.png) 2x); | |
1057 background-position: center center; | |
1058 background-repeat: no-repeat; | |
1059 height: 16px; | |
1060 margin-left: 16px; | |
1061 opacity: 0.65; | |
1062 pointer-events: auto; | |
1063 width: 16px; | |
1064 } | |
1065 | |
1066 .gallery .prompt .back-button:hover { | |
1067 background-color: rgba(81, 81, 81, 1); | |
1068 opacity: 1.0; | |
1069 } | |
1070 | |
1071 .gallery .share-menu { | 1042 .gallery .share-menu { |
1072 -webkit-box-align: stretch; | 1043 -webkit-box-align: stretch; |
1073 -webkit-box-orient: vertical; | 1044 -webkit-box-orient: vertical; |
1074 -webkit-box-pack: start; | 1045 -webkit-box-pack: start; |
1075 background-color: white; | 1046 background-color: white; |
1076 border: 1px solid #7f7f7f; | 1047 border: 1px solid #7f7f7f; |
1077 border-radius: 1px; | 1048 border-radius: 1px; |
1078 bottom: 60px; | 1049 bottom: 60px; |
1079 display: -webkit-box; | 1050 display: -webkit-box; |
1080 opacity: 1.0; | 1051 opacity: 1.0; |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1350 url(chrome://resources/images/2x/apps/topbar_button_maximize.png) 2x) | 1321 url(chrome://resources/images/2x/apps/topbar_button_maximize.png) 2x) |
1351 center; | 1322 center; |
1352 } | 1323 } |
1353 | 1324 |
1354 .gallery > .header > .close-button { | 1325 .gallery > .header > .close-button { |
1355 background: -webkit-image-set( | 1326 background: -webkit-image-set( |
1356 url(chrome://resources/images/apps/topbar_button_close.png) 1x, | 1327 url(chrome://resources/images/apps/topbar_button_close.png) 1x, |
1357 url(chrome://resources/images/2x/apps/topbar_button_close.png) 2x) | 1328 url(chrome://resources/images/2x/apps/topbar_button_close.png) 2x) |
1358 center; | 1329 center; |
1359 } | 1330 } |
OLD | NEW |