| 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-size: 84%; | 7 font-size: 84%; |
| 8 margin: 0; | 8 margin: 0; |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 opacity: 1 !important; | 145 opacity: 1 !important; |
| 146 position: static !important; | 146 position: static !important; |
| 147 transform: none !important; | 147 transform: none !important; |
| 148 visibility: visible !important; | 148 visibility: visible !important; |
| 149 width: auto !important; | 149 width: auto !important; |
| 150 } | 150 } |
| 151 } | 151 } |
| 152 | 152 |
| 153 /* Toolbar */ | 153 /* Toolbar */ |
| 154 | 154 |
| 155 .gallery > .header, |
| 155 .gallery > .toolbar { | 156 .gallery > .toolbar { |
| 156 -webkit-box-align: stretch; | 157 -webkit-box-align: stretch; |
| 157 -webkit-box-orient: horizontal; | 158 -webkit-box-orient: horizontal; |
| 158 -webkit-box-pack: start; | 159 -webkit-box-pack: start; |
| 159 background-color: rgba(40, 42, 45, 0.9); | |
| 160 border-top: 1px solid rgba(50, 50, 50, 0.8); | |
| 161 display: flex; | 160 display: flex; |
| 162 height: 55px; | |
| 163 left: 0; | 161 left: 0; |
| 164 opacity: 0; | 162 opacity: 0; |
| 165 overflow: hidden; | |
| 166 padding: 0 10px; | 163 padding: 0 10px; |
| 167 pointer-events: none; | 164 pointer-events: none; |
| 168 position: absolute; | 165 position: absolute; |
| 169 right: 0; | 166 right: 0; |
| 170 transition: opacity 300ms ease; | 167 transition: opacity 300ms ease; |
| 171 } | 168 } |
| 172 | 169 |
| 170 .gallery > .header { |
| 171 -webkit-app-region: drag; |
| 172 -webkit-box-align: center; |
| 173 -webkit-box-pack: end; |
| 174 background-color: rgba(30, 30, 30, 0.8); |
| 175 border-bottom: 1px solid rgba(50, 50, 50, 0.8); |
| 176 display: -webkit-box; |
| 177 height: 45px; |
| 178 top: 0; |
| 179 } |
| 180 |
| 181 .gallery > .toolbar { |
| 182 background-color: rgba(40, 42, 45, 0.9); |
| 183 } |
| 184 |
| 185 .gallery .header button { |
| 186 -webkit-app-region: no-drag; |
| 187 } |
| 188 |
| 189 .gallery > .toolbar { |
| 190 border-top: 1px solid rgba(50, 50, 50, 0.8); |
| 191 height: 55px; |
| 192 overflow: hidden; |
| 193 } |
| 194 |
| 173 .gallery > .toolbar.top { | 195 .gallery > .toolbar.top { |
| 174 top: 0; | 196 top: 45px; /* Header height. */ |
| 175 } | 197 } |
| 176 | 198 |
| 177 .gallery > .toolbar.bottom { | 199 .gallery > .toolbar.bottom { |
| 178 bottom: 0; | 200 bottom: 0; |
| 179 } | 201 } |
| 180 | 202 |
| 181 .gallery > .toolbar.bottom > .slide-mode-toolbar { | 203 .gallery > .toolbar.bottom > .slide-mode-toolbar { |
| 182 left: 0; | 204 left: 0; |
| 183 opacity: 1; | 205 opacity: 1; |
| 184 position: absolute; | 206 position: absolute; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 197 .gallery[editing] > .toolbar.bottom > .slide-mode-toolbar { | 219 .gallery[editing] > .toolbar.bottom > .slide-mode-toolbar { |
| 198 opacity: 0; | 220 opacity: 0; |
| 199 visibility: hidden; | 221 visibility: hidden; |
| 200 } | 222 } |
| 201 | 223 |
| 202 .gallery[editing] > .toolbar.bottom > .edit-mode-toolbar { | 224 .gallery[editing] > .toolbar.bottom > .edit-mode-toolbar { |
| 203 opacity: 1; | 225 opacity: 1; |
| 204 visibility: visible; | 226 visibility: visible; |
| 205 } | 227 } |
| 206 | 228 |
| 229 .gallery[tools]:not([slideshow]) > .header, |
| 207 .gallery[tools]:not([slideshow]) > .toolbar { | 230 .gallery[tools]:not([slideshow]) > .toolbar { |
| 208 opacity: 1; | 231 opacity: 1; |
| 209 pointer-events: auto; | 232 pointer-events: auto; |
| 210 } | 233 } |
| 211 | 234 |
| 212 /* Hide immediately when entering the slideshow. */ | 235 /* Hide immediately when entering the slideshow. */ |
| 213 .gallery[tools][slideshow] > .toolbar { | 236 .gallery[tools][slideshow] > .toolbar { |
| 214 transition-duration: 0ms; | 237 transition-duration: 0ms; |
| 215 } | 238 } |
| 216 | 239 |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 overflow: visible; | 582 overflow: visible; |
| 560 } | 583 } |
| 561 | 584 |
| 562 .gallery[editing] .edit-bar-spacer { | 585 .gallery[editing] .edit-bar-spacer { |
| 563 opacity: 1.0; | 586 opacity: 1.0; |
| 564 pointer-events: auto; | 587 pointer-events: auto; |
| 565 transition-delay: 100ms, 100ms; | 588 transition-delay: 100ms, 100ms; |
| 566 visibility: visible; | 589 visibility: visible; |
| 567 } | 590 } |
| 568 | 591 |
| 592 .gallery .header button, |
| 569 .gallery .toolbar button, | 593 .gallery .toolbar button, |
| 594 .gallery .header button[disabled], |
| 570 .gallery .toolbar button[disabled] { | 595 .gallery .toolbar button[disabled] { |
| 571 background-color: rgba(0, 0, 0, 0); | 596 background-color: rgba(0, 0, 0, 0); |
| 572 background-position: center; | 597 background-position: center; |
| 573 background-repeat: no-repeat; | 598 background-repeat: no-repeat; |
| 574 border: none; | 599 border: none; |
| 575 box-shadow: none; | 600 box-shadow: none; |
| 576 color: white; | 601 color: white; |
| 577 cursor: pointer; | 602 cursor: pointer; |
| 578 display: inline-block; | 603 display: inline-block; |
| 579 flex: none; | 604 flex: none; |
| 580 opacity: 0.99; /* Workaround for http://crosbug.com/21065 */ | 605 opacity: 0.99; /* Workaround for http://crosbug.com/21065 */ |
| 581 padding: 1px; /* Instead of a border. */ | 606 padding: 1px; /* Instead of a border. */ |
| 582 position: relative; | 607 position: relative; |
| 583 z-index: 10; | 608 z-index: 10; |
| 584 } | 609 } |
| 585 | 610 |
| 611 .gallery .header button, |
| 586 .gallery .toolbar button { | 612 .gallery .toolbar button { |
| 587 height: 40px; | 613 height: 40px; |
| 588 min-width: 40px; /* Reset. */ | 614 min-width: 40px; /* Reset. */ |
| 589 width: 40px; | 615 width: 40px; |
| 590 } | 616 } |
| 591 | 617 |
| 618 .gallery .header button { |
| 619 margin: 6px 0; |
| 620 } |
| 621 |
| 592 .gallery .toolbar button:focus { | 622 .gallery .toolbar button:focus { |
| 593 z-index: 11; | 623 z-index: 11; |
| 594 } | 624 } |
| 595 | 625 |
| 596 /* By default, labels are hidden. */ | 626 /* By default, labels are hidden. */ |
| 597 .gallery > .toolbar button span { | 627 .gallery > .toolbar button span { |
| 598 display: none; | 628 display: none; |
| 599 } | 629 } |
| 600 | 630 |
| 601 /* Show labels if there is enough space. */ | 631 /* Show labels if there is enough space. */ |
| 602 @media (min-width: 1180px) { | 632 @media (min-width: 1180px) { |
| 603 | 633 |
| 604 .gallery .edit-main button, | 634 .gallery .edit-main button, |
| 605 .gallery .edit-main button[disabled] { | 635 .gallery .edit-main button[disabled] { |
| 606 background-position: 5px center; | 636 background-position: 5px center; |
| 607 max-width: 60px; | 637 max-width: 60px; |
| 608 min-width: 0; /* Reset. */ | 638 min-width: 0; /* Reset. */ |
| 609 padding: 0 10px 0 35px; | 639 padding: 0 10px 0 35px; |
| 610 width: auto; | 640 width: auto; |
| 611 } | 641 } |
| 612 | 642 |
| 613 .gallery > .toolbar button span { | 643 .gallery > .toolbar button span { |
| 614 display: inline; | 644 display: inline; |
| 615 white-space: nowrap; | 645 white-space: nowrap; |
| 616 } | 646 } |
| 617 | 647 |
| 618 } | 648 } |
| 619 | 649 |
| 650 .gallery .header button:hover, |
| 620 .gallery .toolbar button:hover { | 651 .gallery .toolbar button:hover { |
| 621 background-color: rgba(31, 31, 31, 1); | 652 background-color: rgba(31, 31, 31, 1); |
| 622 color: white; | 653 color: white; |
| 623 } | 654 } |
| 624 | 655 |
| 656 .gallery .header button:active, |
| 625 .gallery .toolbar button:active, | 657 .gallery .toolbar button:active, |
| 658 .gallery .header button[pressed], |
| 626 .gallery .toolbar button[pressed], | 659 .gallery .toolbar button[pressed], |
| 660 .gallery .header button[pressed]:hover, |
| 627 .gallery .toolbar button[pressed]:hover { | 661 .gallery .toolbar button[pressed]:hover { |
| 628 background-color: rgba(240, 240, 240, 1); | 662 background-color: rgba(240, 240, 240, 1); |
| 629 color: black; | 663 color: black; |
| 630 } | 664 } |
| 631 | 665 |
| 632 .gallery > .toolbar button.autofix { | 666 .gallery > .toolbar button.autofix { |
| 633 background-image: -webkit-image-set( | 667 background-image: -webkit-image-set( |
| 634 url(../images/100/icon_autofix.png) 1x, | 668 url(../images/100/icon_autofix.png) 1x, |
| 635 url(../images/200/icon_autofix.png) 2x); | 669 url(../images/200/icon_autofix.png) 2x); |
| 636 } | 670 } |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1162 } | 1196 } |
| 1163 | 1197 |
| 1164 /* Mosaic view. */ | 1198 /* Mosaic view. */ |
| 1165 .mosaic { | 1199 .mosaic { |
| 1166 bottom: 0; | 1200 bottom: 0; |
| 1167 left: 0; | 1201 left: 0; |
| 1168 overflow-x: scroll; | 1202 overflow-x: scroll; |
| 1169 overflow-y: hidden; | 1203 overflow-y: hidden; |
| 1170 position: absolute; | 1204 position: absolute; |
| 1171 right: 0; | 1205 right: 0; |
| 1172 top: 55px; /* Toolbar height. */ | 1206 top: 100px; /* Header + Toolbar height. */ |
| 1173 | 1207 |
| 1174 /* transition-duration is set in Javascript. */ | 1208 /* transition-duration is set in Javascript. */ |
| 1175 transition-property: transform; | 1209 transition-property: transform; |
| 1176 transition-timing-function: linear; | 1210 transition-timing-function: linear; |
| 1177 } | 1211 } |
| 1178 | 1212 |
| 1179 .mosaic::-webkit-scrollbar { | 1213 .mosaic::-webkit-scrollbar { |
| 1180 background: transparent; | 1214 background: transparent; |
| 1181 } | 1215 } |
| 1182 | 1216 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1322 url(../images/200/slideshow-pause.png) 2x); | 1356 url(../images/200/slideshow-pause.png) 2x); |
| 1323 } | 1357 } |
| 1324 | 1358 |
| 1325 .slideshow-toolbar > .slideshow-end { | 1359 .slideshow-toolbar > .slideshow-end { |
| 1326 background-image: -webkit-image-set( | 1360 background-image: -webkit-image-set( |
| 1327 url(../images/100/slideshow-end.png) 1x, | 1361 url(../images/100/slideshow-end.png) 1x, |
| 1328 url(../images/200/slideshow-end.png) 2x); | 1362 url(../images/200/slideshow-end.png) 2x); |
| 1329 margin-left: -2px; | 1363 margin-left: -2px; |
| 1330 } | 1364 } |
| 1331 | 1365 |
| 1366 .gallery > .header > button { |
| 1367 -webkit-margin-start: 10px; |
| 1368 cursor: default; |
| 1369 height: 32px; |
| 1370 min-width: 32px; |
| 1371 width: 32px; |
| 1372 } |
| 1373 |
| 1374 .gallery > .header > .minimize-button { |
| 1375 background: -webkit-image-set( |
| 1376 url(chrome://resources/images/apps/topbar_button_minimize.png) 1x, |
| 1377 url(chrome://resources/images/2x/apps/topbar_button_minimize.png) 2x) |
| 1378 center; |
| 1379 } |
| 1380 |
| 1381 .gallery > .header > .maximize-button { |
| 1382 background: -webkit-image-set( |
| 1383 url(chrome://resources/images/apps/topbar_button_maximize.png) 1x, |
| 1384 url(chrome://resources/images/2x/apps/topbar_button_maximize.png) 2x) |
| 1385 center; |
| 1386 } |
| 1387 |
| 1388 .gallery > .header > .close-button { |
| 1389 background: -webkit-image-set( |
| 1390 url(chrome://resources/images/apps/topbar_button_close.png) 1x, |
| 1391 url(chrome://resources/images/2x/apps/topbar_button_close.png) 2x) |
| 1392 center; |
| 1393 } |
| 1394 |
| 1332 .debug-me .load-target-content-metadata::before, | 1395 .debug-me .load-target-content-metadata::before, |
| 1333 .debug-me .load-target-external-metadata::before, | 1396 .debug-me .load-target-external-metadata::before, |
| 1334 .debug-me .load-target-file-entry::before { | 1397 .debug-me .load-target-file-entry::before { |
| 1335 bottom: 0; | 1398 bottom: 0; |
| 1336 content: ''; | 1399 content: ''; |
| 1337 display: block; | 1400 display: block; |
| 1338 left: 0; | 1401 left: 0; |
| 1339 position: absolute; | 1402 position: absolute; |
| 1340 right: 0; | 1403 right: 0; |
| 1341 top: 0; | 1404 top: 0; |
| 1342 z-index: 1; | 1405 z-index: 1; |
| 1343 } | 1406 } |
| 1344 | 1407 |
| 1345 .debug-me .load-target-content-metadata::before { | 1408 .debug-me .load-target-content-metadata::before { |
| 1346 background-color: rgba(255, 0, 0, 0.3); | 1409 background-color: rgba(255, 0, 0, 0.3); |
| 1347 } | 1410 } |
| 1348 | 1411 |
| 1349 .debug-me .load-target-external-metadata::before { | 1412 .debug-me .load-target-external-metadata::before { |
| 1350 background-color: rgba(0, 255, 0, 0.3); | 1413 background-color: rgba(0, 255, 0, 0.3); |
| 1351 } | 1414 } |
| 1352 | 1415 |
| 1353 .debug-me .load-target-file-entry::before { | 1416 .debug-me .load-target-file-entry::before { |
| 1354 background-color: rgba(0, 0, 255, 0.3); | 1417 background-color: rgba(0, 0, 255, 0.3); |
| 1355 } | 1418 } |
| OLD | NEW |