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

fix(default-theme): fixed navigations links alignment #1220

Merged
merged 1 commit into from
Nov 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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