Skip to content

Commit

Permalink
improvements to media query's
Browse files Browse the repository at this point in the history
  • Loading branch information
Roxaski committed Feb 14, 2024
1 parent 6a7f18c commit 22e9b0f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h1>Coffee Cup Café</h1>
<h1>What a better way to espresso yourself...</h1>
<h2>Than with the freshest coffee around, start your day the right way</h2>
<div role="button" class="btn">
<a href="./pages/menu.html">grab coffee</a>
<a href="./pages/menu.html">grab some</a>
</div>
</div>
<div class="img-container">
Expand Down
26 changes: 20 additions & 6 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,10 @@ nav.active .hamburger-menu .bars::after {
color: var(--clr-white);
text-align: center;
text-decoration: none;
text-transform: capitalize;
text-transform: uppercase;
letter-spacing: .5px;
font-size: clamp(1rem, 3vw, 1.1rem);
font-size: clamp(1rem, 3vw, 1rem);
font-weight: 400;
padding: 10px 15px;
-webkit-tap-highlight-color: transparent;
}
Expand All @@ -173,8 +174,7 @@ nav.active .hamburger-menu .bars::after {
position: absolute;
bottom: 0;
right: 0;
width: 535px;
max-width: 100%;
max-width: 535px;
opacity: 75%;
color: var(--clr-grey);
}
Expand Down Expand Up @@ -221,7 +221,16 @@ nav.active .hamburger-menu .bars::after {
.btn:hover {
background-color: none;
}

}
@media screen and (max-width: 500px) {
.img-container img {
max-width: 225px;
}
}
@media screen and (max-width: 345px) {
.img-container img {
max-width: 175px;
}
}
@media screen and (max-width: 1180px) and (orientation: landscape) {
nav.active .links {
Expand Down Expand Up @@ -266,7 +275,12 @@ nav.active .hamburger-menu .bars::after {
width: 55%;
}
.img-container img {
max-width: 45%;
max-width: 375px;
}
}
@media screen and (max-width: 725px) {
.img-container img {
max-width: 275px;
}
}
@media screen and (max-width: 655px) and (orientation: landscape) {
Expand Down

0 comments on commit 22e9b0f

Please sign in to comment.