Skip to content

Commit

Permalink
Merge pull request #7567 from owncloud/left-sidebar-hover
Browse files Browse the repository at this point in the history
Add hover effect for left sidebar
  • Loading branch information
JammingBen authored Sep 1, 2022
2 parents 8ad08ff + 8f1d848 commit fb0d810
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/enhancement-left-sidebar-hover
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Enhancement: Left sidebar hover effect

We've added a hover effect to the left sidebar items.

https://github.com/owncloud/web/issues/7540
https://github.com/owncloud/web/pull/7567
16 changes: 16 additions & 0 deletions packages/web-runtime/src/components/SidebarNav/SidebarNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,22 @@ export default {
.toggle-sidebar-button-expanded {
justify-content: flex-end !important;
}
.oc-sidebar-nav li a {
&:hover,
&:focus {
text-decoration: none !important;
background-color: var(--oc-color-background-hover);
color: var(--oc-color-swatch-passive-default);
}
}
.oc-sidebar-nav li a.active {
&:focus,
&:hover {
color: var(--oc-color-swatch-inverse-default);
}
}
}
.oc-app-navigation-expanded {
min-width: 230px !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
type="router-link"
appearance="raw"
:variation="active ? 'inverse' : 'passive'"
:class="['oc-sidebar-nav-item-link', { active: active }]"
:class="[
'oc-sidebar-nav-item-link',
{ active: active },
{ 'oc-background-primary-gradient': active }
]"
:to="target"
:data-nav-id="index"
:data-nav-name="navName"
Expand Down Expand Up @@ -126,7 +130,6 @@ export default {
.text {
opacity: 1;
transition: all 0s;
transition-delay: 0.1s;
}
.text-invisible {
opacity: 0 !important;
Expand Down

0 comments on commit fb0d810

Please sign in to comment.