Skip to content

Commit

Permalink
[MWPW-140401] Adapt nav gradient link styles (#1648)
Browse files Browse the repository at this point in the history
  • Loading branch information
overmyheadandbody authored Dec 13, 2023
1 parent 4aef126 commit b265fd9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
15 changes: 15 additions & 0 deletions libs/blocks/global-navigation/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@
left: 18px;
}

.feds-navLink[class *= '-gradient'] {
display: none;
}

.feds-navLink-image,
.feds-navLink-description {
display: none;
Expand Down Expand Up @@ -216,13 +220,24 @@

/* Nav Link special styles for A/B test */
.feds-navLink[class *= '-gradient'] {
display: flex;
border-radius: 4px;
}

.feds-menu-column--group .feds-navLink[class *= '-gradient'] {
padding-left: 8px;
padding-right: 8px;
column-gap: 8px;
}

.feds-navLink[class *= '-gradient']:not(:first-child) {
margin-top: 12px;
}

.feds-menu-column--group .feds-navLink[class *= '-gradient'] picture {
max-width: 18px;
}

.feds-navLink[class *= '-gradient'] .feds-navLink-title {
column-gap: 4px;
}
Expand Down
5 changes: 5 additions & 0 deletions libs/blocks/global-navigation/utilities/menu/menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@
margin-bottom: 12px;
}

.feds-menu-column--group .feds-menu-headline {
margin-left: 0;
margin-right: 0;
}

.feds-menu-headline:after {
content: none;
}
Expand Down

0 comments on commit b265fd9

Please sign in to comment.