script and css to change nav background

This commit is contained in:
Thefeli73
2020-01-15 18:27:44 +01:00
parent 1da0437812
commit e690848eb4
2 changed files with 18 additions and 0 deletions

View File

@ -4,8 +4,16 @@
#nav {
@include vendor('transition', (
'height #{_duration(transition)} ease',
'background #{_duration(transition)} ease',
));
height: 80px;
position: fixed;
width: 100%;
background: #f2f2f2;
&.scrolled {
background: #ffffff;
}
> #wrapper {
margin: auto;