diff --git a/src/components/Nav/Header.module.scss b/src/components/Nav/Header.module.scss index d475f070..97281a59 100644 --- a/src/components/Nav/Header.module.scss +++ b/src/components/Nav/Header.module.scss @@ -481,7 +481,7 @@ @include media-breakpoint-up(lg) { margin-left: 0.5em !important; - margin-right: 0; + margin-right: 0.5em; width: auto; .icon { @@ -497,21 +497,18 @@ } } - &, a::before { - border-radius: 1.2em !important; + display: none; } - button:hover, - a:hover { - background-color: var(--link-hover-background); - color: var(--link-hover-color); - + a:hover, + button:hover { .icon { filter: invert(0); } .textLabel { + background-color: var(--link-hover-background); color: var(--link-hover-color); } } diff --git a/src/components/Nav/Topics.scss b/src/components/Nav/Topics.scss index a0fe24b6..434b01ac 100644 --- a/src/components/Nav/Topics.scss +++ b/src/components/Nav/Topics.scss @@ -1,9 +1,8 @@ .subnavigation { - @include font-size(1.5rem); - - height: 3em; - line-height: 3em; - margin-bottom: 1.2rem !important; + @include font-size(1.4rem); + height: 6rem; + line-height: 6rem; + margin-bottom: 5rem !important; overflow: hidden; position: relative; @@ -14,22 +13,37 @@ .topics { display: flex; flex-wrap: wrap; - justify-content: space-between; list-style: none; - margin-right: 2.2rem; margin-top: 0; - padding: 0; + padding: 0 7em 0 0; + position: relative; } .item { margin-right: 2.4rem; - &:last-child { + &.right { margin-right: 0; + position: absolute; + right: 0; + top: 0; } a { border-bottom: 0; + + &:hover { + .icon { + filter: invert(1); + } + } + } + + .icon { + display: inline-block; + margin-left: 0.3em; + position: relative; + top: 0.15em; } } diff --git a/src/components/Nav/Topics.tsx b/src/components/Nav/Topics.tsx index 8f365c28..c2e0574e 100644 --- a/src/components/Nav/Topics.tsx +++ b/src/components/Nav/Topics.tsx @@ -25,8 +25,8 @@ export const NavTopics = (props: { topics: Topic[] }) => {