moved all css to vars & hover state + transition on nav

This commit is contained in:
2020-11-06 21:38:36 +01:00
parent 95fb377cc8
commit 1440cb53ac
3 changed files with 11 additions and 5 deletions

View File

@@ -60,10 +60,14 @@
top: 0;
left: 1.12em;
position: absolute;
transition: all 500ms ease;
}
li a div.active {
background-color: var(--clr-secondary);
}
li:hover a div:not(.active) {
background-color: var(--clr-light);
}
h1 {
margin: 0;

View File

@@ -19,7 +19,7 @@
position: relative;
top: 0;
transition: var(--animation);
background-color: #fff;
background-color: var(--clr-light);
}
a:hover h2 {
top: -1em;