Skip to content

Commit

Permalink
fix(default-theme): fixed navigations links alignment (#1220)
Browse files Browse the repository at this point in the history
  • Loading branch information
Malwurf authored Nov 4, 2020
1 parent 6e9b047 commit aaea470
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
10 changes: 9 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,14 @@ export default {
}
}
}
::v-deep .sf-heading {
text-align: left;
}
.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

1 comment on commit aaea470

@vercel
Copy link

@vercel vercel bot commented on aaea470 Nov 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.