Browse Source

Preserve image ratios

Kjell Reigstad 4 years ago
parent
commit
bfc052f9c7
1 changed files with 9 additions and 0 deletions
  1. 9 0
      mayland-blocks/style.css

+ 9 - 0
mayland-blocks/style.css

@@ -65,3 +65,12 @@ body {
 h1, h2, h3 {
 	letter-spacing: -0.015em;
 }
+
+/* 
+ * Preserve image ratios.
+ * Needed until https://github.com/WordPress/gutenberg/pull/27518/ is merged. 
+ */
+img {
+	height: auto;
+	max-width: 100%;
+}