Prechádzať zdrojové kódy

Smaller button styles.

Jeffrey Pearce 6 rokov pred
rodič
commit
cc5c334f25

+ 2 - 2
stratford/sass/_config-child-theme-deep.scss

@@ -170,9 +170,9 @@ $config-button: (
 	// Fonts
 	"font": (
 		"family": map-deep-get($config-global, "font", "family", "ui"),
-		"size": map-deep-get($config-global, "font", "size", "base"),
+		"size": map-deep-get($config-global, "font", "size", "sm"),
 		"weight": 700,
-		"line-height": 1,
+		"line-height": 1.44,
 	),
 	// Borders
 	"border-radius": map-deep-get($config-global, "border-radius", "sm"),

+ 2 - 2
stratford/style-editor.css

@@ -307,8 +307,8 @@ object {
 	color: white;
 	font-weight: 700;
 	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
-	font-size: 1em;
-	line-height: 1;
+	font-size: 0.83333em;
+	line-height: 1.44;
 	background-color: #3e69dc;
 	border-radius: 10px;
 	padding: 16px 16px;

+ 4 - 4
stratford/style-rtl.css

@@ -1073,7 +1073,7 @@ button,
 input[type="submit"],
 .wp-block-button__link,
 .wp-block-file__button, .a8c-posts-list__view-all {
-	line-height: 1;
+	line-height: 1.44;
 	color: white;
 	cursor: pointer;
 	font-weight: 700;
@@ -1105,7 +1105,7 @@ button:before,
 input[type="submit"]:before,
 .wp-block-button__link:before,
 .wp-block-file__button:before, .a8c-posts-list__view-all:before {
-	margin-bottom: -0.12em;
+	margin-bottom: -0.34em;
 }
 
 button:after,
@@ -1113,7 +1113,7 @@ button:after,
 input[type="submit"]:after,
 .wp-block-button__link:after,
 .wp-block-file__button:after, .a8c-posts-list__view-all:after {
-	margin-top: -0.11em;
+	margin-top: -0.33em;
 }
 
 button:hover,
@@ -3544,7 +3544,7 @@ input[type="submit"].has-background:visited,
 }
 
 .wp-block-file a.wp-block-file__button {
-	line-height: 1;
+	line-height: 1.44;
 	cursor: pointer;
 	font-weight: 700;
 	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;

+ 5 - 5
stratford/style.css

@@ -1073,12 +1073,12 @@ button,
 input[type="submit"],
 .wp-block-button__link,
 .wp-block-file__button, .a8c-posts-list__view-all {
-	line-height: 1;
+	line-height: 1.44;
 	color: white;
 	cursor: pointer;
 	font-weight: 700;
 	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
-	font-size: 1rem;
+	font-size: 0.83333rem;
 	background-color: #3e69dc;
 	border-radius: 10px;
 	border-width: 0;
@@ -1105,7 +1105,7 @@ button:before,
 input[type="submit"]:before,
 .wp-block-button__link:before,
 .wp-block-file__button:before, .a8c-posts-list__view-all:before {
-	margin-bottom: -0.12em;
+	margin-bottom: -0.34em;
 }
 
 button:after,
@@ -1113,7 +1113,7 @@ button:after,
 input[type="submit"]:after,
 .wp-block-button__link:after,
 .wp-block-file__button:after, .a8c-posts-list__view-all:after {
-	margin-top: -0.11em;
+	margin-top: -0.33em;
 }
 
 button:hover,
@@ -3549,7 +3549,7 @@ input[type="submit"].has-background:visited,
 }
 
 .wp-block-file a.wp-block-file__button {
-	line-height: 1;
+	line-height: 1.44;
 	cursor: pointer;
 	font-weight: 700;
 	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;