Skip to content

Commit

Permalink
style(mainnav): fix padding for and expand options
Browse files Browse the repository at this point in the history
  • Loading branch information
tonghauhive committed Dec 27, 2024
1 parent 70741ce commit 0d7334f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/components/Mainnav/mainnav-dropdown.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
:host([expand="always"]) .nav-link {
padding: 0px var(--sgds-padding-md);
}

@media (min-width: 576px) {
:host([expand="sm"]) .nav-link {
Expand Down
4 changes: 4 additions & 0 deletions src/components/Mainnav/mainnav-item.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
:host([expand="always"]) .nav-link {
padding: 0px var(--sgds-padding-md);
}

@media screen and (min-width: 576px) {
:host([expand="sm"]) .nav-link {
padding: 0px var(--sgds-padding-md);
Expand Down
8 changes: 7 additions & 1 deletion src/components/Mainnav/mainnav.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ nav > .navbar-body {
}

nav > .navbar-body slot::slotted(:not(sgds-mainnav-item):not(sgds-mainnav-dropdown)) {
padding: var(--sgds-padding-sm) var(--sgds-padding-lg);
padding: var(--sgds-padding-sm) var(--sgds-mainnav-padding-x);
}

@media screen and (max-width: 768px) {
nav > .navbar-body slot::slotted(:not(sgds-mainnav-item):not(sgds-mainnav-dropdown)) {
padding: var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x);
}
}

.navbar-collapse {
Expand Down

0 comments on commit 0d7334f

Please sign in to comment.