Browse Source

Fix button padding.

Jeff Ong 4 năm trước cách đây
mục cha
commit
9b84ac466c

+ 6 - 4
spearhead/assets/sass/_header.scss

@@ -33,10 +33,6 @@ $site-branding-height: 68px;
 		flex-wrap: wrap;
 	}
 
-	@include media( mobile-only ){
-		align-items: center;
-	}
-
 	.site-branding {
 		flex-grow: 1;
 		text-align: left;
@@ -73,6 +69,8 @@ $site-branding-height: 68px;
 
 		button#primary-close-menu {
 			color: var(--global--color-secondary);
+			margin: 0;
+			padding: var(--global--spacing-horizontal);
 			position: fixed;
 			top: 0;
 			right: 0;
@@ -148,6 +146,10 @@ $site-branding-height: 68px;
 
 .site-header div.menu-button-container {
 	button#primary-open-menu {
+		margin-top: 0;
+		margin-right: 0;
+		padding: var(--global--spacing-horizontal);
+
 		&:before {
 			margin: 0;
 		}

+ 8 - 6
spearhead/style-rtl.css

@@ -165,12 +165,6 @@ Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-me
 	}
 }
 
-@media only screen and (max-width: 481px) {
-	.site-header {
-		align-items: center;
-	}
-}
-
 .site-header .site-branding {
 	flex-grow: 1;
 	text-align: right;
@@ -206,6 +200,8 @@ Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-me
 
 .site-header .primary-navigation button#primary-close-menu {
 	color: var(--global--color-secondary);
+	margin: 0;
+	padding: var(--global--spacing-horizontal);
 	position: fixed;
 	top: 0;
 	left: 0;
@@ -277,6 +273,12 @@ Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-me
 	color: var(--global--color-primary);
 }
 
+.site-header div.menu-button-container button#primary-open-menu {
+	margin-top: 0;
+	margin-left: 0;
+	padding: var(--global--spacing-horizontal);
+}
+
 .site-header div.menu-button-container button#primary-open-menu:before {
 	margin: 0;
 }

+ 8 - 6
spearhead/style.css

@@ -165,12 +165,6 @@ Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-me
 	}
 }
 
-@media only screen and (max-width: 481px) {
-	.site-header {
-		align-items: center;
-	}
-}
-
 .site-header .site-branding {
 	flex-grow: 1;
 	text-align: left;
@@ -206,6 +200,8 @@ Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-me
 
 .site-header .primary-navigation button#primary-close-menu {
 	color: var(--global--color-secondary);
+	margin: 0;
+	padding: var(--global--spacing-horizontal);
 	position: fixed;
 	top: 0;
 	right: 0;
@@ -277,6 +273,12 @@ Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-me
 	color: var(--global--color-primary);
 }
 
+.site-header div.menu-button-container button#primary-open-menu {
+	margin-top: 0;
+	margin-right: 0;
+	padding: var(--global--spacing-horizontal);
+}
+
 .site-header div.menu-button-container button#primary-open-menu:before {
 	margin: 0;
 }

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
spearhead/style.css.map


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác