浏览代码

Closes #889 - fixes font-size mismatch for editor page titles.

Jeffrey Pearce 6 年之前
父节点
当前提交
ee2aa8a7f4

+ 11 - 1
professional-business/style-editor.css

@@ -202,6 +202,10 @@ figcaption,
 }
 }
 
 
 /** === Post Title === */
 /** === Post Title === */
+.editor-post-title__block {
+  font-size: 22px;
+}
+
 .editor-post-title__block:before {
 .editor-post-title__block:before {
   width: 2.8125em;
   width: 2.8125em;
   margin-top: 0;
   margin-top: 0;
@@ -213,10 +217,16 @@ figcaption,
 
 
 .editor-post-title__block .editor-post-title__input {
 .editor-post-title__block .editor-post-title__input {
   font-family: "Crimson Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;
   font-family: "Crimson Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;
-  font-size: 2.8125em;
+  font-size: 1.6875em;
   font-weight: 600;
   font-weight: 600;
 }
 }
 
 
+@media only screen and (min-width: 768px) {
+  .editor-post-title__block .editor-post-title__input {
+    font-size: 2.25em;
+  }
+}
+
 /** === Default Appender === */
 /** === Default Appender === */
 .editor-default-block-appender .editor-default-block-appender__content {
 .editor-default-block-appender .editor-default-block-appender__content {
   font-family: "Crimson Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;
   font-family: "Crimson Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;

+ 6 - 2
professional-business/style-editor.scss

@@ -192,7 +192,7 @@ figcaption,
 /** === Post Title === */
 /** === Post Title === */
 
 
 .editor-post-title__block {
 .editor-post-title__block {
-
+	font-size: $font__size_base;
 	&:before {
 	&:before {
 		width: $font__size-xxl;
 		width: $font__size-xxl;
 		margin-top: 0;
 		margin-top: 0;
@@ -204,7 +204,11 @@ figcaption,
 
 
 	.editor-post-title__input {
 	.editor-post-title__input {
 		font-family: $font__heading;
 		font-family: $font__heading;
-		font-size: $font__size-xxl;
+		font-size: $font__size-lg;
+
+		@include media(tablet) {
+			font-size: $font__size-xl;
+		}
 		font-weight: 600;
 		font-weight: 600;
 	}
 	}
 }
 }

+ 1 - 1
professional-business/style-rtl.css

@@ -7,7 +7,7 @@ Author URI: https://wordpress.com/
 Template: twentynineteen
 Template: twentynineteen
 Description: Simple, yet sophisticated, with subtle, elegant typography, Professional Business conveys quality and integrity, which makes it especially good fit for accounting, law, and consultancy firms.
 Description: Simple, yet sophisticated, with subtle, elegant typography, Professional Business conveys quality and integrity, which makes it especially good fit for accounting, law, and consultancy firms.
 Requires at least: WordPress 4.9.6
 Requires at least: WordPress 4.9.6
-Version: 1.2
+Version: 1.3
 License: GNU General Public License v2 or later
 License: GNU General Public License v2 or later
 License URI: LICENSE
 License URI: LICENSE
 Text Domain: professional-business
 Text Domain: professional-business