style: add animation when hovering sidebar menu links (#8935)
This commit is contained in:
parent
3fbcdbc636
commit
fe3bd80b68
|
@ -726,10 +726,21 @@ ul#sidepage-menu li a {
|
|||
background: #215D9C;
|
||||
}
|
||||
|
||||
#sidepage ul#sidepage-menu li:hover {
|
||||
#sidepage ul#sidepage-menu li:after {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
content: "";
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
transition: all 0.2s ease 0s;
|
||||
box-sizing: border-box;
|
||||
width: 0;
|
||||
width: 0%; height: 100%; top: 0; left: 0;
|
||||
}
|
||||
|
||||
#sidepage ul#sidepage-menu li:hover:after {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#sidepage ul#sidepage-menu li.active:after {
|
||||
content: "";
|
||||
|
@ -738,6 +749,7 @@ ul#sidepage-menu li a {
|
|||
top: 0;
|
||||
background: #215D9C;
|
||||
right: -17px;
|
||||
left: auto;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
-moz-transform: scale(0.4, 0.707) rotate(45deg);
|
||||
|
|
Loading…
Reference in New Issue