Fix font size and backgrounds in gallery
authorjdlrobson <jdlrobson@gmail.com>
Fri, 21 Jul 2017 21:26:19 +0000 (14:26 -0700)
committerjdlrobson <jdlrobson@gmail.com>
Thu, 27 Jul 2017 16:39:37 +0000 (09:39 -0700)
In print medium we should be explicit about font size
 - don't rely on %
and colors should be made more printer friendly

Additional changes:
* Remove some duplicated rule between gallery.print.css and
gallery.css
* Scope background definitions to screen medium

Bug: T169823
Change-Id: Iffcff305a4e0b973bdd52a57f52d8a0766cef512

resources/src/mediawiki/page/gallery.css
resources/src/mediawiki/page/gallery.print.css

index 31def27..6a331b6 100644 (file)
@@ -28,8 +28,6 @@ li.gallerycaption {
 
 li.gallerybox div.thumb {
        text-align: center;
-       border: 1px solid #c8ccd1;
-       background-color: #f8f9fa;
        margin: 2px;
 }
 
@@ -180,3 +178,11 @@ ul.mw-gallery-slideshow li.gallerycarousel {
 .mw-gallery-slideshow-img-container a {
        display: block;
 }
+
+@media screen {
+       /* Background and border colors are defined separately for print mode */
+       li.gallerybox div.thumb {
+               border: 1px solid #c8ccd1;
+               background-color: #f8f9fa;
+       }
+}
index 80fc964..2ae670b 100644 (file)
@@ -23,14 +23,13 @@ li.gallerycaption {
 }
 
 li.gallerybox div.thumb {
-       text-align: center;
+       background-color: #fff;
        border: 1px solid #ccc;
-       margin: 2px;
 }
 
 div.gallerytext {
        overflow: hidden;
-       font-size: 94%;
+       font-size: 10pt;
        padding: 2px 4px;
        word-wrap: break-word;
 }