Skip to content

Commit

Permalink
added animation to nav elements in nav.less using a mixin from mixin.…
Browse files Browse the repository at this point in the history
…less
  • Loading branch information
TaylorBelk1 committed Oct 12, 2018
1 parent b185022 commit ae77ff2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
3 changes: 3 additions & 0 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ nav {
padding-bottom: 1rem;
}
}
.links a:hover {
font-size: 2rem;
}
.footer {
width: 100%;
border-top: 2px dashed silver;
Expand Down
3 changes: 3 additions & 0 deletions less/mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@
.font-size();
}

.animation() {
font-size: 2rem;
}
21 changes: 4 additions & 17 deletions less/navigation.less
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,9 @@ nav {
padding-bottom: 1rem;
}
}
}

// nav {
// @media @mobile {
a:hover {
.animation();
}
}


// width: 500px;
// flex-direction: column;
// padding-top: 1.5rem;

// .links {
// width: 100%;
// justify-content: space-around;
// }

// .links a {
// padding-bottom: 1rem;
// }
// }

0 comments on commit ae77ff2

Please sign in to comment.