فهرست منبع

Rockfield button outline fix - GH 6440

Supplied CSS fix for outline on buttons with filled background in extra-child-theme.scss and style-child-theme-editor.scss

https://github.com/Automattic/themes/issues/6440
GS 2 سال پیش
والد
کامیت
05fc33ab68

+ 12 - 2
rockfield/sass/_extra-child-theme.scss

@@ -627,7 +627,7 @@ table,
 		}
 
 		.widget {
-			flex: calc(50% - #{map-deep-get($config-global, "spacing", "horizontal")});
+			width: calc(50% - #{map-deep-get($config-global, "spacing", "horizontal")});
 		}
 	}
 }
@@ -781,6 +781,16 @@ table,
 /**
  * Buttons
  */
+
+/* Remove button borders - issue GH 6440 */
+
+.contact-form button {
+	border-radius: 5px;
+	outline: unset;
+}
+
+/* End Remove button borders - issue GH 6440 */
+
 .button,
 .wp-block-button__link,
 .wp-block-file__button,
@@ -788,7 +798,7 @@ table,
 	position: relative;
 
 	&::before {
-		border: 2px solid;
+		border: none; /* Remove button borders - issue GH 6440 */
 		border-radius: inherit;
 		content: "";
 		display: block;

+ 1 - 1
rockfield/sass/style-child-theme-editor.scss

@@ -64,7 +64,7 @@ body {
 	position: relative;
 
 	&::before {
-		border: 2px solid;
+		border: none;
 		border-radius: inherit;
 		content: "";
 		display: block;

+ 1 - 1
rockfield/style-editor.css

@@ -1456,7 +1456,7 @@ pre.wp-block-verse {
 }
 
 .wp-block-button__link::before {
-	border: 2px solid;
+	border: none;
 	border-radius: inherit;
 	content: "";
 	display: block;

+ 10 - 2
rockfield/style-rtl.css

@@ -4637,7 +4637,7 @@ table th,
 		margin-top: 0;
 	}
 	.widget-area .widget {
-		flex: calc(50% - 16px);
+		width: calc(50% - 16px);
 	}
 }
 
@@ -4790,6 +4790,13 @@ table th,
 /**
  * Buttons
  */
+/* Remove button borders - issue GH 6440 */
+.contact-form button {
+	border-radius: 5px;
+	outline: unset;
+}
+
+/* End Remove button borders - issue GH 6440 */
 .button,
 .wp-block-button__link,
 .wp-block-file__button,
@@ -4801,7 +4808,8 @@ table th,
 .wp-block-button__link::before,
 .wp-block-file__button::before,
 .a8c-posts-list__view-all::before {
-	border: 2px solid;
+	border: none;
+	/* Remove button borders - issue GH 6440 */
 	border-radius: inherit;
 	content: "";
 	display: block;

+ 10 - 2
rockfield/style.css

@@ -4666,7 +4666,7 @@ table th,
 		margin-top: 0;
 	}
 	.widget-area .widget {
-		flex: calc(50% - 16px);
+		width: calc(50% - 16px);
 	}
 }
 
@@ -4819,6 +4819,13 @@ table th,
 /**
  * Buttons
  */
+/* Remove button borders - issue GH 6440 */
+.contact-form button {
+	border-radius: 5px;
+	outline: unset;
+}
+
+/* End Remove button borders - issue GH 6440 */
 .button,
 .wp-block-button__link,
 .wp-block-file__button,
@@ -4830,7 +4837,8 @@ table th,
 .wp-block-button__link::before,
 .wp-block-file__button::before,
 .a8c-posts-list__view-all::before {
-	border: 2px solid;
+	border: none;
+	/* Remove button borders - issue GH 6440 */
 	border-radius: inherit;
 	content: "";
 	display: block;