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

Unified Diff: chrome/browser/resources/file_manager/css/gallery.css

Issue 10832270: Print photos in full resolution from the Photo Editor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/image_editor/image_view.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/css/gallery.css
diff --git a/chrome/browser/resources/file_manager/css/gallery.css b/chrome/browser/resources/file_manager/css/gallery.css
index fdb0b5adae1604545c5cc4e11ed473265c8b7cdf..505c94781acee051a4709b1185a6ed5fb73e9cd4 100644
--- a/chrome/browser/resources/file_manager/css/gallery.css
+++ b/chrome/browser/resources/file_manager/css/gallery.css
@@ -111,6 +111,43 @@ body {
opacity: 0;
}
+/* Full resolution image is invisible unless printing. */
+.gallery > .image-container > canvas.fullres {
+ display: none;
+}
+
+@media print {
+ /* Do not print anything but the image. */
+ .gallery > :not(.image-container) {
+ display: none !important;
+ }
+
+ /* Center the printed image. */
+ .gallery > .image-container {
+ -webkit-box-align: center;
+ -webkit-box-orient: horizontal;
+ -webkit-box-pack: center;
+ display: -webkit-box;
+ }
+
+ /* Do not print the screen resolution image. */
+ .gallery > .image-container > canvas.image {
+ display: none !important;
+ }
+
+ /* Print the full resolution image instead. */
+ .gallery > .image-container > canvas.fullres {
+ display: block !important;
+ max-height: 100%;
+ max-width: 100%;
+ }
+
+ /* Print video at the center of the page */
+ .gallery > .image-container > video.image {
+ position: auto !important;
+ }
+}
+
/* Toolbar */
.gallery > .toolbar {
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/image_editor/image_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698