Browse Source

Exford: Multiple Changes

* Fix Cover font-size for Headings in the editor
* Update Headstart annotation
Thomas Guillot 5 years ago
parent
commit
1f0dd9c765
3 changed files with 19 additions and 12 deletions
  1. 0 0
      exford/inc/headstart/en.json
  2. 13 6
      exford/sass/style-child-theme-editor.scss
  3. 6 6
      exford/style-editor.css

File diff suppressed because it is too large
+ 0 - 0
exford/inc/headstart/en.json


+ 13 - 6
exford/sass/style-child-theme-editor.scss

@@ -40,30 +40,37 @@
 }
 
 // Cover
+$font_size_xxxxl: map-deep-get($config-global, "font", "size", "xxxxl");
+$font_size_xxxl: map-deep-get($config-global, "font", "size", "xxxl");
+$font_size_xxl: map-deep-get($config-global, "font", "size", "xxl");
+$font_size_xl: map-deep-get($config-global, "font", "size", "xl");
+$font_size_lg: map-deep-get($config-global, "font", "size", "lg");
+$font_size_md: map-deep-get($config-global, "font", "size", "md");
+
 .wp-block-cover,
 .wp-block-cover-image {
 	h1 {
-		font-size: #{map-deep-get($config-global, "font", "size", "xxxxl")};
+		font-size: (strip-unit( $font_size_xxxxl ) + 0em);
 	}
 
 	h2 {
-		font-size: #{map-deep-get($config-global, "font", "size", "xxxl")};
+		font-size: (strip-unit( $font_size_xxxl ) + 0em);
 	}
 
 	h3 {
-		font-size: #{map-deep-get($config-global, "font", "size", "xxl")};
+		font-size: (strip-unit( $font_size_xxl ) + 0em);
 	}
 
 	h4 {
-		font-size: #{map-deep-get($config-global, "font", "size", "xl")};
+		font-size: (strip-unit( $font_size_xl ) + 0em);
 	}
 
 	h5 {
-		font-size: #{map-deep-get($config-global, "font", "size", "lg")};
+		font-size: (strip-unit( $font_size_lg ) + 0em);
 	}
 
 	h6 {
-		font-size: #{map-deep-get($config-global, "font", "size", "md")};
+		font-size: (strip-unit( $font_size_md ) + 0em);
 	}
 
 	@include media(mobile) {

+ 6 - 6
exford/style-editor.css

@@ -863,32 +863,32 @@ table th,
 
 .wp-block-cover h1,
 .wp-block-cover-image h1 {
-	font-size: 2.98598rem;
+	font-size: 2.98598em;
 }
 
 .wp-block-cover h2,
 .wp-block-cover-image h2 {
-	font-size: 2.48832rem;
+	font-size: 2.48832em;
 }
 
 .wp-block-cover h3,
 .wp-block-cover-image h3 {
-	font-size: 2.0736rem;
+	font-size: 2.0736em;
 }
 
 .wp-block-cover h4,
 .wp-block-cover-image h4 {
-	font-size: 1.728rem;
+	font-size: 1.728em;
 }
 
 .wp-block-cover h5,
 .wp-block-cover-image h5 {
-	font-size: 1.44rem;
+	font-size: 1.44em;
 }
 
 .wp-block-cover h6,
 .wp-block-cover-image h6 {
-	font-size: 1.2rem;
+	font-size: 1.2em;
 }
 
 @media only screen and (min-width: 560px) {

Some files were not shown because too many files changed in this diff