浏览代码

Merge pull request #795 from Automattic/fix/issue764

Reduce the height and font size for cover block in Modern and Sophisticated Business
Allan Cole 6 年之前
父节点
当前提交
014e43b452

+ 2 - 2
modern-business/sass/blocks/_blocks.scss

@@ -679,7 +679,7 @@
 	.wp-block-cover-image,
 	.wp-block-cover {
 		position: relative;
-		min-height: 510px;
+		min-height: 430px;
 		padding: $size__spacing-unit;
 
 		@include media(tablet) {
@@ -691,7 +691,7 @@
 		.wp-block-cover-text {
 			color: #fff;
 			font-family: $font__heading;
-			font-size: $font__size-xl;
+			font-size: $font__size-lg;
 			font-weight: 300;
 			line-height: 1.25;
 			padding: 0;

+ 2 - 2
modern-business/style.css

@@ -4069,7 +4069,7 @@ body.page .main-navigation {
 .entry .entry-content .wp-block-cover-image,
 .entry .entry-content .wp-block-cover {
   position: relative;
-  min-height: 510px;
+  min-height: 430px;
   padding: 1rem;
 }
 
@@ -4087,7 +4087,7 @@ body.page .main-navigation {
 .entry .entry-content .wp-block-cover .wp-block-cover-text {
   color: #fff;
   font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
-  font-size: 2.25em;
+  font-size: 1.6875em;
   font-weight: 300;
   line-height: 1.25;
   padding: 0;

+ 1 - 1
sophisticated-business/sass/blocks/_blocks.scss

@@ -573,7 +573,7 @@
 		.wp-block-cover-text,
 		h2 {
 			font-family: $font__heading;
-			font-size: $font__size-xl;
+			font-size: $font__size-lg;
 			font-weight: 700;
 			line-height: 1.25;
 			padding: 0;

+ 1 - 1
sophisticated-business/style.css

@@ -3925,7 +3925,7 @@ body.page .main-navigation {
 .entry .entry-content .wp-block-cover .wp-block-cover-text,
 .entry .entry-content .wp-block-cover h2 {
   font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
-  font-size: 2.25em;
+  font-size: 1.6875em;
   font-weight: 700;
   line-height: 1.25;
   padding: 0;