Skip to content

Commit

Permalink
style: modify style of active dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
MelanieMEB authored and celineung committed Jun 14, 2021
1 parent 3f11167 commit e1ee29c
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions components/slices/NavigationZone.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,15 @@ class Navigation {
</script>

<style scoped lang="scss">
@mixin active-link($theme: DarkGray) {
border-bottom: 2px solid $blue;
&:active,
&:hover {
color: $blue;
}
}
.navigation-zone {
display: none;
Expand All @@ -156,8 +165,12 @@ class Navigation {
}
}
.navigation-zone-block:last-child {
border-left: 1px solid $grey-20;
.navigation-zone-block {
height: 24px;
&:last-child {
border-left: 1px solid $grey-20;
}
}
& > div {
Expand All @@ -169,8 +182,11 @@ class Navigation {
align-items: center;
height: 100%;
.current-active-link {
color: $blue;
button.dropdown-toggle {
height: 30px;
&.current-active-link {
@include active-link;
}
}
&__item {
Expand All @@ -184,13 +200,9 @@ class Navigation {
padding: 0 8px 10px 8px;
cursor: pointer;
white-space: nowrap;
&.current-active-link {
border-bottom: 2px solid $blue;
}
&.current-active-link,
&:active,
&:hover {
color: $blue;
@include active-link;
}
&.links-group {
Expand Down

0 comments on commit e1ee29c

Please sign in to comment.