소스 검색

Exford: Multiple Changes

* Fix Cover font-size for Headings in the editor
* Update Headstart annotation
Thomas Guillot 5 년 전
부모
커밋
1f0dd9c765
3개의 변경된 파일19개의 추가작업 그리고 12개의 파일을 삭제
  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

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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) {

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.