Sfoglia il codice sorgente

Revise text decoration and font size on nested blocks. (#3857)

Jeff Ong 4 anni fa
parent
commit
a7f2bf09dd

+ 8 - 0
quadrat/assets/theme.css

@@ -250,6 +250,10 @@ ul ul {
 	margin-left: 20%;
 	margin-left: 20%;
 }
 }
 
 
+.wp-block-query-loop .wp-block-post-title {
+	font-size: var(--wp--custom--heading--h3--font-size);
+}
+
 .wp-block-quote.is-style-large p {
 .wp-block-quote.is-style-large p {
 	line-height: 1.4;
 	line-height: 1.4;
 }
 }
@@ -305,6 +309,10 @@ a:active, a:focus {
 	overflow: inherit;
 	overflow: inherit;
 }
 }
 
 
+.site-header .wp-block-site-title a {
+	text-decoration: none;
+}
+
 .post-meta {
 .post-meta {
 	align-items: center;
 	align-items: center;
 	justify-content: center;
 	justify-content: center;

+ 5 - 2
quadrat/child-experimental-theme.json

@@ -70,7 +70,10 @@
 					"fontWeight": "500"
 					"fontWeight": "500"
 				},
 				},
 				"h1": {
 				"h1": {
-					"fontSize":"min(max(48px, 7vw), 80px)"
+					"fontSize": "min(max(48px, 7vw), 80px)"
+				},
+				"h3": {
+					"fontSize": "min(max(28px, 5vw), 38px)"
 				}
 				}
 			},
 			},
 			"line-height": {
 			"line-height": {
@@ -297,7 +300,7 @@
 			},
 			},
 			"h3": {
 			"h3": {
 				"typography": {
 				"typography": {
-					"fontSize": "min(max(28px, 5vw), 38px)",
+					"fontSize": "var(--wp--custom--heading--h3--font-size)",
 					"lineHeight": "var(--wp--custom--line-height--headings--h3)"
 					"lineHeight": "var(--wp--custom--line-height--headings--h3)"
 				}
 				}
 			},
 			},

+ 4 - 1
quadrat/experimental-theme.json

@@ -125,6 +125,9 @@
 				},
 				},
 				"h1": {
 				"h1": {
 					"fontSize": "min(max(48px, 7vw), 80px)"
 					"fontSize": "min(max(48px, 7vw), 80px)"
+				},
+				"h3": {
+					"fontSize": "min(max(28px, 5vw), 38px)"
 				}
 				}
 			},
 			},
 			"list": {
 			"list": {
@@ -497,7 +500,7 @@
 			},
 			},
 			"h3": {
 			"h3": {
 				"typography": {
 				"typography": {
-					"fontSize": "min(max(28px, 5vw), 38px)",
+					"fontSize": "var(--wp--custom--heading--h3--font-size)",
 					"lineHeight": "var(--wp--custom--line-height--headings--h3)"
 					"lineHeight": "var(--wp--custom--line-height--headings--h3)"
 				}
 				}
 			},
 			},

+ 4 - 0
quadrat/sass/_header.scss

@@ -5,4 +5,8 @@
 		align-items: center;
 		align-items: center;
 		overflow: inherit;
 		overflow: inherit;
 	}
 	}
+
+	.wp-block-site-title a {
+		text-decoration: none;
+	}
 } 
 } 

+ 5 - 0
quadrat/sass/blocks/_query.scss

@@ -0,0 +1,5 @@
+.wp-block-query-loop {
+	.wp-block-post-title {
+		font-size: var(--wp--custom--heading--h3--font-size);
+	}
+}

+ 1 - 0
quadrat/sass/theme.scss

@@ -10,6 +10,7 @@
 @import "blocks/navigation";
 @import "blocks/navigation";
 @import "blocks/post-comments";
 @import "blocks/post-comments";
 @import "blocks/post-navigation-link";
 @import "blocks/post-navigation-link";
+@import "blocks/query";
 @import "blocks/quote";
 @import "blocks/quote";
 @import "blocks/search";
 @import "blocks/search";
 @import "blocks/table";
 @import "blocks/table";