Cleanup more filemanager design
This commit is contained in:
parent
caca6cff8a
commit
8385ec7feb
3 changed files with 30 additions and 13 deletions
|
@ -69,7 +69,7 @@
|
|||
transition: border-left-color 250ms linear, color 250ms linear;
|
||||
@apply .block .px-4 .py-3 .border-l-3 .border-neutral-100 .no-underline .text-neutral-400 .font-medium;
|
||||
|
||||
&:hover, &.router-link-exact-active {
|
||||
&:hover, &.router-link-exact-active, &.router-link-active {
|
||||
@apply .text-neutral-800;
|
||||
}
|
||||
|
||||
|
@ -77,6 +77,17 @@
|
|||
@apply .border-primary-500 .cursor-default;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Because of how the router works the first sidebar link is always active
|
||||
* since that is the container for all of the server things. Override the
|
||||
* style for active links if its the first one and not an exact route match.
|
||||
*/
|
||||
&:first-of-type > a {
|
||||
&.router-link-active:not(.router-link-exact-active) {
|
||||
@apply .border-neutral-100 .text-neutral-400 .cursor-pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue