소스 검색

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%;
+}