Make the website more mobile-friendly
This commit is contained in:
@@ -21,6 +21,10 @@ header {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
header #menu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
header nav a {
|
||||
margin: 0px 20px;
|
||||
}
|
||||
@@ -101,3 +105,32 @@ textarea {
|
||||
padding: 5px 10px;
|
||||
margin: 0px 10px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 500px) {
|
||||
header {
|
||||
padding: 20px 0px;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
header #menu {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
header > nav {
|
||||
display: none;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
header nav a {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
header:focus-within > nav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
input {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user