Forráskód Böngészése

Redhill: Fix Page/Post title in the editor to match front end

Thomas Guillot 6 éve
szülő
commit
20b64c6fc9

+ 7 - 0
redhill/sass/style-child-theme-editor.scss

@@ -24,6 +24,13 @@ html {
   font-family: #{map-deep-get($config-global, "font", "family", "primary")};
 }
 
+// Set the correct font family/size for the title
+.editor-post-title .editor-post-title__block .editor-post-title__input {
+  font-family: #{map-deep-get($config-global, "font", "family", "primary")};
+  font-size: #{map-deep-get($config-global, "font", "size", "xxxl")};
+  text-align: center;
+}
+
 /**
  * Elements
  * - Styles for basic HTML elemants

+ 6 - 0
redhill/style-editor.css

@@ -200,6 +200,12 @@ html {
 	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
 }
 
+.editor-post-title .editor-post-title__block .editor-post-title__input {
+	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
+	font-size: 2.48832rem;
+	text-align: center;
+}
+
 /**
  * Elements
  * - Styles for basic HTML elemants

+ 1 - 0
redhill/style-rtl.css

@@ -3210,6 +3210,7 @@ table th,
 article .entry-header .entry-title,
 .page-title {
 	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
+	font-size: 2.48832rem;
 	margin-top: 32px;
 	margin-bottom: 48px;
 }