mirror of
https://github.com/DerTyp7/dertyp7.github.io.git
synced 2025-11-01 22:22:32 +01:00
implement responsive header
This commit is contained in:
@@ -39,4 +39,57 @@
|
||||
align-items: center;
|
||||
flex: 0.5;
|
||||
}
|
||||
|
||||
.header-mobile {
|
||||
display: none; // will be set to flex on mobile/small screens
|
||||
justify-content: space-between;
|
||||
flex: 1;
|
||||
width: 100%;
|
||||
flex-direction: row;
|
||||
|
||||
.logo {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.control {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
.logo {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.control {
|
||||
display: none;
|
||||
}
|
||||
.header-mobile {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 300px) {
|
||||
.header-mobile {
|
||||
flex-direction: column;
|
||||
.logo {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.control {
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
.links {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user