浏览代码

Barnsbury: Update editor font sizes and add misc fixes

Danny Dudzic 5 年之前
父节点
当前提交
4ec47bfaf2

+ 4 - 4
barnsbury/functions.php

@@ -29,25 +29,25 @@ if ( ! function_exists( 'barnsbury_setup' ) ) :
 				array(
 					'name'      => __( 'Small', 'barnsbury' ),
 					'shortName' => __( 'S', 'barnsbury' ),
-					'size'      => 19.5,
+					'size'      => 16,
 					'slug'      => 'small',
 				),
 				array(
 					'name'      => __( 'Normal', 'barnsbury' ),
 					'shortName' => __( 'M', 'barnsbury' ),
-					'size'      => 22,
+					'size'      => 23,
 					'slug'      => 'normal',
 				),
 				array(
 					'name'      => __( 'Large', 'barnsbury' ),
 					'shortName' => __( 'L', 'barnsbury' ),
-					'size'      => 36.5,
+					'size'      => 27,
 					'slug'      => 'large',
 				),
 				array(
 					'name'      => __( 'Huge', 'barnsbury' ),
 					'shortName' => __( 'XL', 'barnsbury' ),
-					'size'      => 49.5,
+					'size'      => 32,
 					'slug'      => 'huge',
 				),
 			)

+ 1 - 1
barnsbury/sass/_config-child-theme-deep.scss

@@ -319,7 +319,7 @@ $config-header: (
 		// Fonts
 		"font": (
 			"family": map-deep-get($config-global, "font", "family", "secondary"),
-			"size": map-deep-get($config-global, "font", "size", "md"),
+			"size": map-deep-get($config-global, "font", "size", "base"),
 			"weight": bold,
 			"line-height": 1,
 		),

+ 5 - 1
barnsbury/sass/_extra-child-theme.scss

@@ -29,7 +29,11 @@ a {
 	padding: $spacing_unit;
 
 	@include media(mobile) {
-		padding: (2 * $spacing_vertical) 0 (1.25 * $spacing_vertical);
+		padding: (0.5 * $spacing_vertical) 0;
+	}
+
+	@include media(desktop) {
+		padding: $spacing_vertical 0;
 	}
 
 /*

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

@@ -31,10 +31,3 @@
  *   spacing with CSS-variables overrides
  */
 @import "../../varia/sass/blocks/editor";
-
-/**
- * Extras
- */
-.editor-post-title__input {
-	text-align: center;
-}

+ 0 - 7
barnsbury/style-editor.css

@@ -861,10 +861,3 @@ table th,
 .padding-left-default {
 	padding-top: 32px !important;
 }
-
-/**
- * Extras
- */
-.editor-post-title__input {
-	text-align: center;
-}

+ 8 - 2
barnsbury/style-rtl.css

@@ -2449,7 +2449,7 @@ table th,
 	color: #20603C;
 	display: block;
 	font-family: "Rubik", Trebuchet MS, Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif;
-	font-size: 1.18rem;
+	font-size: 1rem;
 	font-weight: bold;
 	padding: 10.56px;
 }
@@ -3415,7 +3415,13 @@ a {
 
 @media only screen and (min-width: 560px) {
 	.site-header {
-		padding: 64px 0 40px;
+		padding: 16px 0;
+	}
+}
+
+@media only screen and (min-width: 1024px) {
+	.site-header {
+		padding: 32px 0;
 	}
 }
 

+ 8 - 2
barnsbury/style.css

@@ -2454,7 +2454,7 @@ table th,
 	color: #20603C;
 	display: block;
 	font-family: "Rubik", Trebuchet MS, Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif;
-	font-size: 1.18rem;
+	font-size: 1rem;
 	font-weight: bold;
 	padding: 10.56px;
 }
@@ -3420,7 +3420,13 @@ a {
 
 @media only screen and (min-width: 560px) {
 	.site-header {
-		padding: 64px 0 40px;
+		padding: 16px 0;
+	}
+}
+
+@media only screen and (min-width: 1024px) {
+	.site-header {
+		padding: 32px 0;
 	}
 }