浏览代码

Merge pull request #3535 from Automattic/mayland-blocks/fix-image-ratios

Mayland Blocks: Preserve image ratios
Kjell Reigstad 4 年之前
父节点
当前提交
0349f904cb
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      mayland-blocks/style.css

+ 9 - 0
mayland-blocks/style.css

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