Make the website more mobile-friendly

This commit is contained in:
Bat
2018-05-12 18:59:38 +01:00
parent aefa31b84e
commit b68e481b3f
5 changed files with 38 additions and 3 deletions
+33
View File
@@ -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%;
}
}