Added @media print rules to gallery.css to make the picture look better on a printed page

BUG=

Review URL: https://chromiumcodereview.appspot.com/10828155

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149860 0039d316-1c4b-4281-b951-d872f2087c98
parent a25b3f1a
...@@ -915,7 +915,7 @@ body { ...@@ -915,7 +915,7 @@ body {
/* Load spinner and error banner */ /* Load spinner and error banner */
.gallery .spinner { .gallery .spinner {
background-image: url('../images/common/spinner_white.svg); background-image: url('../images/common/spinner_white.svg');
background-size: 100%; background-size: 100%;
height: 32px; height: 32px;
left: 50%; left: 50%;
...@@ -998,3 +998,17 @@ body { ...@@ -998,3 +998,17 @@ body {
.gallery[video] > .toolbar .edit-bar { .gallery[video] > .toolbar .edit-bar {
display: none; 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;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment