Title: [192861] trunk/Websites/webkit.org
Revision
192861
Author
j...@apple.com
Date
2015-11-30 22:46:49 -0800 (Mon, 30 Nov 2015)

Log Message

Set max-height to prevent narrow images from upscaling.

* wp-content/themes/webkit/style.css:
(article figure > img):
(figure.widescreen):
(figure.widescreen figcaption):
(figure.widescreen img): Deleted.

Modified Paths

Diff

Modified: trunk/Websites/webkit.org/ChangeLog (192860 => 192861)


--- trunk/Websites/webkit.org/ChangeLog	2015-12-01 05:34:07 UTC (rev 192860)
+++ trunk/Websites/webkit.org/ChangeLog	2015-12-01 06:46:49 UTC (rev 192861)
@@ -1,5 +1,15 @@
 2015-11-30  Jonathan Davis  <j...@apple.com>
 
+        Set max-height to prevent narrow images from upscaling.
+
+        * wp-content/themes/webkit/style.css:
+        (article figure > img):
+        (figure.widescreen):
+        (figure.widescreen figcaption):
+        (figure.widescreen img): Deleted.
+
+2015-11-30  Jonathan Davis  <j...@apple.com>
+
         Added a new theme and plugins for a redesigned webkit.org.
 
         Reviewed by Timothy Hatcher.

Modified: trunk/Websites/webkit.org/wp-content/themes/webkit/style.css (192860 => 192861)


--- trunk/Websites/webkit.org/wp-content/themes/webkit/style.css	2015-12-01 05:34:07 UTC (rev 192860)
+++ trunk/Websites/webkit.org/wp-content/themes/webkit/style.css	2015-12-01 06:46:49 UTC (rev 192861)
@@ -1057,6 +1057,8 @@
 article figure > img {
     display: inline-block;
     max-width: 100%;
+    max-height: 540px;
+    height: auto;
 }
 
 figure.widescreen {
@@ -1072,11 +1074,6 @@
     margin: 0 auto;
 }
 
-figure.widescreen img {
-    max-width: 100%;
-    height: auto;
-}
-
 figure.widescreen figcaption {
     margin-top: 3rem;
 }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to