mirror of
https://github.com/JonasunderscoreJones/blog.jonasjones.dev.git
synced 2025-10-22 18:49:19 +02:00
Fixed smaller screens
This commit is contained in:
parent
5e66f120f3
commit
08e12c45b0
1 changed files with 18 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
<nav class="navbar">
|
||||
<ul>
|
||||
<li><a href="/#/">Home</a></li>
|
||||
<li><a href="#about">About</a></li>
|
||||
<li><a href="https://jonasjones.dev/about">About</a></li>
|
||||
<li><a href="#contact">Contact</a></li>
|
||||
<a href="https://jonasjones.dev" class="sticky-link">Homepage</a>
|
||||
</ul>
|
||||
|
@ -52,4 +52,21 @@
|
|||
padding: 10px 20px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@media (max-width: 650px) {
|
||||
.navbar {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.sticky-link {
|
||||
position: relative;
|
||||
padding: 10px 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 500px) {
|
||||
.sticky-link {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue