Skip to content

Commit

Permalink
started with mobile header
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjorn Zschernack committed Nov 5, 2023
1 parent 3de2d93 commit e23af69
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 2 deletions.
17 changes: 17 additions & 0 deletions scss/includes/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,25 @@ body {
}

header {

#header-inner-container{
@media (max-width: 1200px) {
background-color: $darkblue;
max-width: 100%;
}
}

.mobile{
display: none;
@media (max-width: 1200px) {
display: block !important;
}
}

.contact {
@media (max-width: 1200px) {
display: none !important;
}

.whatsapp{
padding-left:20px;
Expand Down
5 changes: 4 additions & 1 deletion scss/includes/_menu.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#menucontainer {
background-color: #03223e;
background-color: $darkblue;
min-height: 50px;

ul {
display: flex;
list-style: none;
padding: 0;
@media (max-width: 1200px) {
display: none;
}
li {
padding:0;

Expand Down
3 changes: 2 additions & 1 deletion scss/includes/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ $orange:#e8a422;
$green:#89b459;
$red:#ea612e;
$blue:#245861;
$lightgrey:#f7f8f8;
$lightgrey:#f7f8f8;
$darkblue:#03223e;
24 changes: 24 additions & 0 deletions scss/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,25 @@ body a {
body a:hover {
text-decoration: underline;
}
@media (max-width: 1200px) {
body header #header-inner-container {
background-color: #03223e;
max-width: 100%;
}
}
body header .mobile {
display: none;
}
@media (max-width: 1200px) {
body header .mobile {
display: block !important;
}
}
@media (max-width: 1200px) {
body header .contact {
display: none !important;
}
}
body header .contact .whatsapp {
padding-left: 20px;
}
Expand Down Expand Up @@ -76,6 +95,11 @@ body header .contact .clock:before {
list-style: none;
padding: 0;
}
@media (max-width: 1200px) {
#menucontainer ul {
display: none;
}
}
#menucontainer ul li {
padding: 0;
}
Expand Down

0 comments on commit e23af69

Please sign in to comment.