Skip to content

Commit

Permalink
responsive header
Browse files Browse the repository at this point in the history
  • Loading branch information
labrocadabro committed May 26, 2023
1 parent 23754d6 commit 97213fa
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions src/views/Layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,41 @@
.Layout-header {
background-color: var(--color-accent-primary);
position: sticky;
text-align: center;
top: 0;
min-height: 7rem;
display: flex;
align-items: center;
text-align: left;
}
.Layout-header h1 {
color: var(--color-text);
margin: 1rem 0;
margin: 1rem;

font-size: 2rem;
}

#dark-mode-switcher {
position: absolute;
right: 20px;
right: 10px;
top: 8px;
}

@media (min-width: 400px) {
.Layout-header h1 {
font-size: 2.5rem;
margin: 1rem 1.5rem;
}
}
@media (min-width: 768px) {
.Layout-header {
display: block;
}
.Layout-header h1 {
text-align: center;
font-size: 3rem;
}
}

.Layout-main {
margin: 0 auto;
max-width: 100vw;
Expand Down

0 comments on commit 97213fa

Please sign in to comment.