소스 검색

Refactored lef/right alighnment reset

Jason Crist 4 년 전
부모
커밋
24666ee2c3
2개의 변경된 파일4개의 추가작업 그리고 12개의 파일을 삭제
  1. 2 6
      blank-canvas-blocks/assets/ponyfill.css
  2. 2 6
      blank-canvas-blocks/sass/base/_alignment.scss

+ 2 - 6
blank-canvas-blocks/assets/ponyfill.css

@@ -109,12 +109,8 @@ img {
 	}
 }
 
-.wp-block-group:after {
-	clear: both;
-	content: ".";
-	display: block;
-	position: unset;
-	visibility: hidden;
+.wp-block-group {
+	overflow: auto;
 }
 
 ::selection {

+ 2 - 6
blank-canvas-blocks/sass/base/_alignment.scss

@@ -16,10 +16,6 @@
 // When content is aligned left/right (particularly inside of a container) it is floated left/right
 // and needs something to ensure that the content follows the block rather than nestling up beside the floated element.  
 // The issue should be resolved upstream: https://github.com/WordPress/gutenberg/issues/10299
-.wp-block-group:after { 
-	clear: both;
-	content: ".";
-	display: block;
-	position: unset;
-	visibility: hidden;
+.wp-block-group { 
+	overflow: auto;
 }