瀏覽代碼

Preserve image ratios

Kjell Reigstad 4 年之前
父節點
當前提交
bfc052f9c7
共有 1 個文件被更改,包括 9 次插入0 次删除
  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%;
+}