فهرست منبع

Club: remove clamp from blockGap seting because is not working on Gutenberg 13.8.2

Matias Benedetto 2 سال پیش
والد
کامیت
fd6cafe33b
3فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 2 2
      club/parts/header.html
  2. 2 2
      club/templates/index.html
  3. 1 1
      club/theme.json

+ 2 - 2
club/parts/header.html

@@ -11,8 +11,8 @@
 	<!-- wp:navigation {"__unstableLocation":"primary","overlayBackgroundColor":"background","overlayTextColor":"foreground","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"left","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"}}}} /--></div>
 	<!-- /wp:group -->
 
-	<!-- wp:spacer {"height":"clamp(1rem, calc(1rem + ((1vw - 0.48rem) * 5.7692)), 2rem)"} -->
-<div style="height:clamp(1rem, calc(1rem + ((1vw - 0.48rem) * 5.7692)), 2rem)" aria-hidden="true" class="wp-block-spacer"></div>
+	<!-- wp:spacer {"height":"2rem"} -->
+<div style="height:2rem" aria-hidden="true" class="wp-block-spacer"></div>
 <!-- /wp:spacer -->
 
 	</div>

+ 2 - 2
club/templates/index.html

@@ -1,7 +1,7 @@
 <!-- wp:template-part {"slug":"header","tagName":"header"} /-->
 
-<!-- wp:separator {"style":{"spacing":{"margin":{"bottom":"calc(-1 * clamp(1rem, calc(1rem + ((1vw - 0.48rem) * 5.7692)), 2rem))","top":"calc(-1 * clamp(1rem, calc(1rem + ((1vw - 0.48rem) * 5.7692)), 2rem))"}}},"className":"alignfull"} -->
-<hr class="wp-block-separator has-alpha-channel-opacity alignfull" style="margin-top:calc(-1 * clamp(1rem, calc(1rem + ((1vw - 0.48rem) * 5.7692)), 2rem));margin-bottom:calc(-1 * clamp(1rem, calc(1rem + ((1vw - 0.48rem) * 5.7692)), 2rem))"/>
+<!-- wp:separator {"style":{"spacing":{"margin":{"bottom":"-2rem","top":"-2rem"}}},"className":"alignfull"} -->
+<hr class="wp-block-separator has-alpha-channel-opacity alignfull" style="margin-top:-2rem;margin-bottom:-2rem"/>
 <!-- /wp:separator -->
 
 <!-- wp:pattern {"slug":"club/posts-list"} /-->

+ 1 - 1
club/theme.json

@@ -598,7 +598,7 @@
             }
         },
         "spacing": {
-            "blockGap": "clamp(1rem, calc(1rem + ((1vw - 0.48rem) * 5.7692)), 2rem)"
+            "blockGap": "2rem"
         },
         "typography": {
             "fontFamily": "var(--wp--preset--font-family--spacemono)",