Jelajahi Sumber

Creatio - Remove blockGap between first-level patterns (#7288)

* Remove code from styles.css because are overwritten by the editor styles

* Add additional styles in theme.json to remove block gap between first-level patterns

* Update comment
Miguel San Segundo 1 tahun lalu
induk
melakukan
eeb4dea932
2 mengubah file dengan 1 tambahan dan 17 penghapusan
  1. 0 17
      creatio/style.css
  2. 1 0
      creatio/theme.json

+ 0 - 17
creatio/style.css

@@ -56,20 +56,3 @@ a {
 	text-decoration-thickness: .0625em !important;
 	text-underline-offset: .15em;
 }
-
-/**
- * Remove blockGap between header/sections/footer for Pattern Assembler.
- * See https://github.com/Automattic/wp-calypso/issues/78097 for reference. 
- */
-
-/* Remove the gap from the editor. */
-.editor-styles-wrapper :where(.wp-site-blocks) > * {
-    margin-block-start: 0;
-    margin-block-end: 0;
-}
-
-/* Remove the gap from the front-end. */
-:where(.wp-site-blocks) > * {
-    margin-block-start: 0;
-    margin-block-end: 0;
-}

+ 1 - 0
creatio/theme.json

@@ -247,6 +247,7 @@
 		"useRootPaddingAwareAlignments": true
 	},
 	"styles": {
+		"css": "\/* Remove block gap between first-level blocks *\/ :where(.wp-site-blocks) > * { margin-block-start: 0; margin-block-end: 0; }",
 		"blocks": {
 			"core/button": {
 				"border": {