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

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

Issue 10828155: Added @media print rules to gallery.css to make the picture look better on a printed page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | no next file » | 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 f2b5ff4cc5ed6e99fa66d2a5b11408adecc206ae..fdb0b5adae1604545c5cc4e11ed473265c8b7cdf 100644
--- a/chrome/browser/resources/file_manager/css/gallery.css
+++ b/chrome/browser/resources/file_manager/css/gallery.css
@@ -915,7 +915,7 @@ body {
/* Load spinner and error banner */
.gallery .spinner {
- background-image: url('../images/common/spinner_white.svg);
+ background-image: url('../images/common/spinner_white.svg');
background-size: 100%;
height: 32px;
left: 50%;
@@ -998,3 +998,17 @@ body {
.gallery[video] > .toolbar .edit-bar {
display: none;
}
+
+@media print {
+ .image-container > .image {
+ left: 0 !important;
+ max-height: 100%;
+ max-width: 100%;
+ object-fit: contain;
+ top: 0 !important;
+ }
+
+ .gallery .tool {
+ opacity: 0 !important;
+ }
+}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698