Skip to content

Commit

Permalink
hide icons beyond 680px
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewDTR committed Sep 26, 2024
1 parent 30a2c2a commit cd545e1
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ console.log(currentPath);
<a class={currentPath === "/posts" ? "nav bold" : "nav"} href="/posts"
>Blog</a
>
<a class="nav" href="/public/redacted_resume.pdf"
>Resume</a
>
<a class="nav" href="/public/redacted_resume.pdf">Resume</a>
<a class={currentPath === "/about" ? "nav bold" : "nav"} href="/about"
>About</a
>
Expand Down Expand Up @@ -104,11 +102,13 @@ console.log(currentPath);

.icons {
margin-left: auto;
opacity: 1;
transition: opacity 0.1s;
}

svg {
vertical-align: middle;
transition: fill 0.2s;
transition: fill 0.1s;
}

.svg-white {
Expand All @@ -118,4 +118,10 @@ console.log(currentPath);
.svg-white:hover {
fill: #ffaaaa;
}

@media (max-width: 680px) {
.icons {
opacity: 0;
}
}
</style>

0 comments on commit cd545e1

Please sign in to comment.