Explorar o código

Merge pull request #1090 from Automattic/fix/redhill-editor-fonts

Redhill: Fix fonts in editor to match the frontend
Thomas Guillot %!s(int64=6) %!d(string=hai) anos
pai
achega
8e3641ca48

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

@@ -19,6 +19,11 @@
  */
 @import "../../_dsgnsystm/sass/base/editor";
 
+// Reset the font-family override on html to make editor fonts match front-end
+ html {
+	font-family: #{map-deep-get($config-global, "font", "family", "primary")};
+}
+
 /**
  * Elements
  * - Styles for basic HTML elemants

+ 4 - 0
redhill/style-editor.css

@@ -196,6 +196,10 @@ a {
 	cursor: pointer;
 }
 
+html {
+	font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Times, "Times New Roman", serif;
+}
+
 /**
  * Elements
  * - Styles for basic HTML elemants

+ 15 - 0
redhill/style-rtl.css

@@ -1232,6 +1232,21 @@ input[type="submit"].has-focus,
 	padding: 0;
 }
 
+.wp-block-cover h2.has-text-align-left,
+.wp-block-cover-image h2.has-text-align-left {
+	text-align: right;
+}
+
+.wp-block-cover h2.has-text-align-center,
+.wp-block-cover-image h2.has-text-align-center {
+	text-align: center;
+}
+
+.wp-block-cover h2.has-text-align-right,
+.wp-block-cover-image h2.has-text-align-right {
+	text-align: left;
+}
+
 .wp-block-cover.alignleft, .wp-block-cover.alignright,
 .wp-block-cover-image.alignleft,
 .wp-block-cover-image.alignright {