diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-02-14 16:27:14 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-02-14 16:27:14 +0100 |
| commit | 68d93a6310938f5dda378e9185cdfb0086f90de8 (patch) | |
| tree | 892e161c33fa31f5d7e591aeed74411a7844733b /src/components/MainNav/MainNav.module.scss | |
| parent | 1b34f85f0e3188861c6804666f02b4495cab033c (diff) | |
fix: open toolbar menu without double click
When the main nav was opened, a double click on the search button or
the settings button was necessary to open a new menu. Now, it works as
expected: the main nav is closed and the menu is opened in one click.
Diffstat (limited to 'src/components/MainNav/MainNav.module.scss')
| -rw-r--r-- | src/components/MainNav/MainNav.module.scss | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/components/MainNav/MainNav.module.scss b/src/components/MainNav/MainNav.module.scss index 3ced245..f3e6c10 100644 --- a/src/components/MainNav/MainNav.module.scss +++ b/src/components/MainNav/MainNav.module.scss @@ -37,12 +37,7 @@ padding: var(--spacing-2xs); &:hover { - span, - span::before, - span::after { - background: var(--color-primary-lighter); - box-shadow: fun.convert-px(2) fun.convert-px(2) 0 0 var(--color-shadow); - } + @extend %draw-borders; } @include mix.media("screen") { @@ -63,12 +58,7 @@ &:hover { ~ .label { - span, - span::before, - span::after { - background: var(--color-primary-lighter); - box-shadow: fun.convert-px(2) fun.convert-px(2) 0 0 var(--color-shadow); - } + @extend %draw-borders; } } |
