浏览代码

A round of minor updates to Creatio 2 (#7410)

* Update screenshot.png

* Remove font-size reference on block level.

* Update theme.json

Remove explicit reference to font family.

* Remove block-level styling
alaczek 1 年之前
父节点
当前提交
4cca21d20d
共有 5 个文件被更改,包括 12 次插入12 次删除
  1. 二进制
      creatio-2/screenshot.png
  2. 4 4
      creatio-2/templates/archive.html
  3. 4 2
      creatio-2/templates/index.html
  4. 4 4
      creatio-2/templates/search.html
  5. 0 2
      creatio-2/theme.json

二进制
creatio-2/screenshot.png


+ 4 - 4
creatio-2/templates/archive.html

@@ -6,9 +6,9 @@
 
 <!-- wp:post-template {"layout":{"type":"grid","columnCount":3}} -->
 <!-- wp:group -->
-<div class="wp-block-group"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->
-<div class="wp-block-group"><!-- wp:group {"style":{"border":{"radius":"4px","top":{"style":"none","width":"0px"},"right":{"style":"none","width":"0px"},"bottom":{"style":"none","width":"0px"},"left":{"style":"none","width":"0px"}},"color":{"background":"#ecf1fe"}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"center"}} -->
-<div class="wp-block-group has-background" style="border-radius:4px;border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-style:none;border-bottom-width:0px;border-left-style:none;border-left-width:0px;background-color:#ecf1fe"><!-- wp:post-terms {"term":"category","textAlign":"center","separator":"  ","style":{"layout":{"selfStretch":"fill"},"spacing":{"padding":{"top":"6px","right":"6px","bottom":"6px","left":"6px"}}}} /--></div>
+<div class="wp-block-group"><!-- wp:group {"style":{"border":{"radius":"4px"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
+<div class="wp-block-group" style="border-radius:4px"><!-- wp:group {"style":{"border":{"radius":"4px","top":{"style":"none","width":"0px"},"right":{"style":"none","width":"0px"},"bottom":{"style":"none","width":"0px"},"left":{"style":"none","width":"0px"}}},"backgroundColor":"tertiary","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"center"}} -->
+<div class="wp-block-group has-tertiary-background-color has-background" style="border-radius:4px;border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-style:none;border-bottom-width:0px;border-left-style:none;border-left-width:0px"><!-- wp:post-terms {"term":"category","textAlign":"center","separator":"  ","style":{"layout":{"selfStretch":"fill"},"spacing":{"padding":{"top":"6px","right":"6px","bottom":"6px","left":"6px"}}}} /--></div>
 <!-- /wp:group --></div>
 <!-- /wp:group -->
 
@@ -16,7 +16,7 @@
 
 <!-- wp:post-title {"isLink":true,"fontSize":"x-large"} /-->
 
-<!-- wp:post-excerpt {"showMoreOnNewLine":false,"excerptLength":50,"style":{"typography":{"lineHeight":1.5}},"fontSize":"small"} /-->
+<!-- wp:post-excerpt {"showMoreOnNewLine":false,"excerptLength":50} /-->
 
 <!-- wp:post-date /-->
 

+ 4 - 2
creatio-2/templates/index.html

@@ -14,7 +14,7 @@
 
 <!-- wp:post-title {"isLink":true,"fontSize":"x-large"} /-->
 
-<!-- wp:post-excerpt {"showMoreOnNewLine":false,"excerptLength":50,"fontSize":"small"} /-->
+<!-- wp:post-excerpt {"showMoreOnNewLine":false,"excerptLength":50} /-->
 
 <!-- wp:post-date /-->
 
@@ -34,4 +34,6 @@
 <!-- /wp:query --></div>
 <!-- /wp:group -->
 
-<!-- wp:template-part {"slug":"footer"} /-->
+<!-- wp:template-part {"slug":"footer"} /-->
+
+

+ 4 - 4
creatio-2/templates/search.html

@@ -9,8 +9,8 @@
 <div class="wp-block-group" style="padding-top:20px"><!-- wp:post-template {"layout":{"type":"grid","columnCount":3}} -->
 <!-- wp:group -->
 <div class="wp-block-group"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->
-<div class="wp-block-group"><!-- wp:group {"style":{"border":{"radius":"4px","top":{"style":"none","width":"0px"},"right":{"style":"none","width":"0px"},"bottom":{"style":"none","width":"0px"},"left":{"style":"none","width":"0px"}},"color":{"background":"#ecf1fe"}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"center"}} -->
-<div class="wp-block-group has-background" style="border-radius:4px;border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-style:none;border-bottom-width:0px;border-left-style:none;border-left-width:0px;background-color:#ecf1fe"><!-- wp:post-terms {"term":"category","textAlign":"center","separator":"  ","style":{"layout":{"selfStretch":"fill"},"spacing":{"padding":{"top":"6px","right":"6px","bottom":"6px","left":"6px"}},"typography":{"textTransform":"none"}},"fontSize":"x-small"} /--></div>
+<div class="wp-block-group"><!-- wp:group {"style":{"border":{"radius":"4px","top":{"style":"none","width":"0px"},"right":{"style":"none","width":"0px"},"bottom":{"style":"none","width":"0px"},"left":{"style":"none","width":"0px"}}},"backgroundColor":"tertiary","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"center"}} -->
+<div class="wp-block-group has-tertiary-background-color has-background" style="border-radius:4px;border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-style:none;border-bottom-width:0px;border-left-style:none;border-left-width:0px"><!-- wp:post-terms {"term":"category","textAlign":"center","separator":"  ","style":{"layout":{"selfStretch":"fill"},"spacing":{"padding":{"top":"6px","right":"6px","bottom":"6px","left":"6px"}}}} /--></div>
 <!-- /wp:group --></div>
 <!-- /wp:group -->
 
@@ -18,7 +18,7 @@
 
 <!-- wp:post-title {"isLink":true,"fontSize":"x-large"} /-->
 
-<!-- wp:post-excerpt {"showMoreOnNewLine":false,"excerptLength":50,"style":{"typography":{"lineHeight":1.5}},"fontSize":"small"} /-->
+<!-- wp:post-excerpt {"showMoreOnNewLine":false,"excerptLength":50} /-->
 
 <!-- wp:post-date /-->
 
@@ -44,4 +44,4 @@
 <!-- /wp:query-no-results --></main>
 <!-- /wp:query -->
 
-<!-- wp:template-part {"slug":"footer","area":"footer"} /-->
+<!-- wp:template-part {"slug":"footer","area":"footer"} /-->

+ 0 - 2
creatio-2/theme.json

@@ -411,7 +411,6 @@
 					}
 				},
 				"typography": {
-					"fontFamily": "var(--wp--preset--font-family--inter)",
 					"fontSize": "var(--wp--preset--font-size--xxx-large)"
 				}
 			},
@@ -505,7 +504,6 @@
 					}
 				},
 				"typography": {
-					"fontFamily": "var(--wp--preset--font-family--inter)",
 					"fontSize": "var(--wp--preset--font-size--medium)",
 					"fontStyle": "normal"
 				}