6
0
Fork 0

Logo verkleinen of laten verdwijnen als er mobiel apparaat wordt gebruikt, tevens achtergrondkleur voor mobiele apparaten

This commit is contained in:
Michael Boelen 2023-05-17 10:44:14 +02:00
parent f32e40c375
commit 18bc55f9f0
2 changed files with 18 additions and 10 deletions

View file

@ -184,7 +184,7 @@ ul, ol {
}
.content {
max-width: 800px;
max-width: 1024px;
margin: 0 auto;
// text-align: justify;
}

View file

@ -1,6 +1,6 @@
header {
position: relative;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
//box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.header-content {
@ -70,9 +70,9 @@ input[type="checkbox"]:focus + label::before {
box-shadow: 0 0 20px black;
}
//ul.menu {
// background: #f2f2f2;
//}
ul.menu {
background: #f2f2f2;
}
ul.menu li {
list-style: none;
@ -148,8 +148,17 @@ li:focus-within > button > .arrow {
}
/* MEDIA QUERIES */
@media (max-width: 360px) {
.logo img {
visibility: collapse;
}
}
@media (max-width: 480px) {
.logo img {
max-width: 200px;
}
}
@media (min-width: 640px) {
.header-content {
display: flex;
}
@ -161,21 +170,20 @@ li:focus-within > button > .arrow {
display: flex;
transform: initial;
}
label, input[type="checkbox"] {
display: none;
}
ul.menu {
background-color: white;
}
ul.menu li {
position: relative;
font-size: 14px;
}
ul.menu li a:hover,
ul.menu li button:hover {
background-color: #f2f2f2;
}
.dropdown {
position: absolute;
right: 0;