Browse Source

Mayland: Change the main navigation size to a smaller one

Danny Dudzic 5 năm trước cách đây
mục cha
commit
72a1ebd615
3 tập tin đã thay đổi với 30 bổ sung3 xóa
  1. 1 1
      mayland/sass/_config-child-theme-deep.scss
  2. 28 1
      mayland/style-rtl.css
  3. 1 1
      mayland/style.css

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

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

+ 28 - 1
mayland/style-rtl.css

@@ -2471,7 +2471,7 @@ table th,
 	color: #8D6708;
 	display: block;
 	font-family: Poppins, sans-serif;
-	font-size: 1rem;
+	font-size: 0.83333rem;
 	font-weight: 600;
 	padding: 8px 0;
 }
@@ -3470,6 +3470,7 @@ p:not(.site-title) a:hover {
 	.site-header .site-branding {
 		align-self: center;
 		flex: 1 1 auto;
+		padding-left: 16px;
 	}
 	.site-header .site-logo + .site-title {
 		margin-top: 16px;
@@ -3491,6 +3492,32 @@ p:not(.site-title) a:hover {
 	.site-header .main-navigation > div > ul > .menu-item-has-children > a::after {
 		font-size: 0.5rem;
 	}
+	.site-header .main-navigation > div > ul > .menu-item-has-children .submenu-expand {
+		display: inline-block;
+		margin-left: 0;
+		/* Priority+ Menu */
+	}
+	.site-header .main-navigation > div > ul > .menu-item-has-children .submenu-expand.main-menu-more-toggle {
+		position: relative;
+		height: 24px;
+		line-height: 1;
+		width: 24px;
+		padding: 0;
+		margin-right: 0;
+	}
+	.site-header .main-navigation > div > ul > .menu-item-has-children .submenu-expand.main-menu-more-toggle svg {
+		height: 24px;
+		width: 24px;
+		top: 0;
+		vertical-align: text-bottom;
+	}
+	.wp-customizer-unloading .site-header .main-navigation > div > ul > .menu-item-has-children .submenu-expand, .site-header .main-navigation > div > ul > .menu-item-has-children .submenu-expand.is-empty {
+		display: none;
+	}
+	.site-header .main-navigation > div > ul > .menu-item-has-children .submenu-expand svg {
+		position: relative;
+		top: 0.2rem;
+	}
 	.site-header .main-navigation > div > ul > li:hover > a,
 	.site-header .main-navigation > div > ul > li.focus > a,
 	.site-header .main-navigation > div > ul > li.current-menu-item > a {

+ 1 - 1
mayland/style.css

@@ -2488,7 +2488,7 @@ table th,
 	color: #8D6708;
 	display: block;
 	font-family: Poppins, sans-serif;
-	font-size: 1rem;
+	font-size: 0.83333rem;
 	font-weight: 600;
 	padding: 8px 0;
 }