Przeglądaj źródła

Leven: Cleaning up menu responsive behavior, smaller font-size to menu for better hierarchy.

Allan Cole 6 lat temu
rodzic
commit
f42917b980

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

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

+ 2 - 1
leven/sass/_extra-child-theme.scss

@@ -87,8 +87,9 @@ a {
 		}
 
 		.site-branding {
+			align-self: stretch;
+			max-width: inherit;
 			grid-area: site-branding;
-			max-width: unset;
 		}
 
 		.main-navigation {

+ 7 - 6
leven/style-rtl.css

@@ -2252,9 +2252,9 @@ table th,
 	color: #1285ce;
 	display: block;
 	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
-	font-size: 1.2125rem;
+	font-size: 1rem;
 	font-weight: bold;
-	padding: 16px;
+	padding: 8px;
 }
 
 .main-navigation a:link, .main-navigation a:visited {
@@ -2273,8 +2273,8 @@ table th,
 }
 
 .main-navigation .sub-menu .menu-item a {
-	padding-top: 8px;
-	padding-bottom: 8px;
+	padding-top: 4px;
+	padding-bottom: 4px;
 }
 
 .main-navigation .sub-menu .menu-item a::before {
@@ -2407,7 +2407,7 @@ table th,
 	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
 	font-size: 0.82474rem;
 	font-weight: bold;
-	padding: 16px;
+	padding: 8px;
 	color: currentColor;
 }
 
@@ -3254,8 +3254,9 @@ p:not(.site-title) a:hover {
 		display: block;
 	}
 	.site-header .site-branding {
+		align-self: stretch;
+		max-width: inherit;
 		grid-area: site-branding;
-		max-width: unset;
 	}
 	.site-header .main-navigation {
 		grid-area: main-navigation;

+ 3 - 2
leven/style.css

@@ -2257,7 +2257,7 @@ table th,
 	color: #1285ce;
 	display: block;
 	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
-	font-size: 1.2125rem;
+	font-size: 1rem;
 	font-weight: bold;
 	padding: 16px;
 }
@@ -3259,8 +3259,9 @@ p:not(.site-title) a:hover {
 		display: block;
 	}
 	.site-header .site-branding {
+		align-self: stretch;
+		max-width: inherit;
 		grid-area: site-branding;
-		max-width: unset;
 	}
 	.site-header .main-navigation {
 		grid-area: main-navigation;