Incorporating my left-hand, vertical navbar into the page using ng-include
, I've managed to make it expand right on hover. Each page is enclosed within a <div class="wrapper">
.
My goal is to adjust the margin of each wrapper as the navbar expands to the right on hover. This is to prevent any overflow into the page text when a user hovers over the navbar. Unfortunately, my CSS isn't cooperating with Angular due to the header being in ng-include
and the pages being in ng-view
.
Any suggestions on how I can resolve this issue?
Below is the code snippet for my CSS:
.wrapper {
margin-left: 12em;
}
nav:hover .wrapper {
margin-left: 25em;
transition: all 0.5s;
}
To better understand the problem, you can view a plunker here: http://embed.plnkr.co/R1G1AFTMQjEhdaqB66U3/. As depicted, the TEST text remains stationary.