浏览代码

Calm Business: Add fallback for Media & Text block for IE11.

Laurel Fulford 6 年之前
父节点
当前提交
92c8279cff
共有 1 个文件被更改,包括 30 次插入2 次删除
  1. 30 2
      calm-business/sass/blocks/_blocks.scss

+ 30 - 2
calm-business/sass/blocks/_blocks.scss

@@ -4,7 +4,7 @@
 .entry .entry-summary > * {
 	margin: 32px auto;
 	max-width: 100%;
-	
+
 	@include postContentMaxWidth();
 
 	@include media(tablet) {
@@ -507,7 +507,7 @@
 		}
 
 		.aligncenter {
-			
+
 			@include postContentMaxWidth();
 
 			@include media(tablet) {
@@ -873,6 +873,34 @@
 				padding-bottom: 32px;
 			}
 		}
+
+		// Temporary fix for IE 11 for this issue: https://github.com/WordPress/gutenberg/issues/11577
+		@media all and (-ms-high-contrast:none) {
+
+			&:after {
+				display: table;
+				content: "";
+				clear: both;
+			}
+
+			figure {
+				float: left;
+				width: 50%;
+			}
+
+			.wp-block-media-text__content {
+				float: right;
+				width: 50%;
+			}
+
+			&.has-media-on-the-right figure {
+				float: right;
+			}
+
+			&.has-media-on-the-right .wp-block-media-text__content {
+				float: left;
+			}
+		}
 	}
 
 	//! Font Sizes