Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix(default-theme): fixed navigations links alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Malwurf committed Nov 4, 2020
1 parent 6e9b047 commit 7caf84c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/default-theme/src/components/SwMegaMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
>
<div class="sw-mega-menu__content">
<div
class="sw-mega-menu__content-section"
v-for="subcategory in category.children"
:key="subcategory.name"
class="sw-mega-menu__content-section"
data-cy="mega-menu-category"
>
<nuxt-link
Expand Down Expand Up @@ -101,6 +101,10 @@ export default {
}
}
}
.sf-header__link {
text-align: left;
}
}
.sf-heading {
Expand Down
7 changes: 7 additions & 0 deletions packages/default-theme/src/components/SwTopNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ export default {
--c-link-hover: var(--_c-green-primary);
--heading-title-font-line-height: 24px;
::v-deep .sf-menu-item__label {
text-align: left;
width: 100%;
}
.sw-overlay {
--overlay-z-index: 1;
}
Expand All @@ -190,9 +195,11 @@ export default {
::v-deep .sf-header {
display: flex;
justify-content: space-between;
&__sticky-container {
width: 100%;
}
&__navigation {
flex: 0 0 calc(100% - 20rem);
}
Expand Down

0 comments on commit 7caf84c

Please sign in to comment.