Change order of the current nav item indicator styles
This commit is contained in:
@ -54,12 +54,14 @@ body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Custom focus indicator
|
||||||
:focus-visible {
|
:focus-visible {
|
||||||
animation: focus-in var(--transition);
|
animation: focus-in var(--transition);
|
||||||
outline: 0.125rem solid var(--primary-color);
|
outline: 0.125rem solid var(--primary-color);
|
||||||
outline-offset: 2px;
|
outline-offset: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Fallback for older browsers
|
||||||
@supports not selector(:focus-visible) {
|
@supports not selector(:focus-visible) {
|
||||||
:focus {
|
:focus {
|
||||||
animation: focus-in var(--transition);
|
animation: focus-in var(--transition);
|
||||||
|
@ -65,16 +65,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
&:hover::before {
|
|
||||||
right: 1rem;
|
|
||||||
left: 1rem;
|
|
||||||
border-bottom: 0.25rem solid var(--primary-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
&:active::before {
|
|
||||||
border-radius: 0.25rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -87,6 +77,16 @@
|
|||||||
border-radius: 0 0 0.25rem 0.25rem;
|
border-radius: 0 0 0.25rem 0.25rem;
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover::before {
|
||||||
|
right: 1rem;
|
||||||
|
left: 1rem;
|
||||||
|
border-bottom: 0.25rem solid var(--primary-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active::before {
|
||||||
|
border-radius: 0.25rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user