Skip to content

Commit

Permalink
LSD-1501 Fix mobile Safari, grid tpl on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyklapatch committed May 9, 2024
1 parent 4688991 commit 02f7dc9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion best-cigars-guide/blocks/columns/columns.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
display: block;
}

@media (width >= 900px) {
@media (min-width: 900px) {
.columns > div {
align-items: center;
flex-direction: unset;
Expand Down
14 changes: 9 additions & 5 deletions best-cigars-guide/blocks/header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,17 @@ header nav[aria-expanded="true"] {
min-height: 100vh;
}

@media (width <= 600px) {
@media (max-width: 600px) {
header nav {
grid-template:
'brand' calc(var(--nav-height) / 2)
'brand' auto
'tools' auto
}

header nav p {
font-size: 0.8em;
}

header nav .brand-logo {
flex-flow: column;
}
Expand All @@ -44,7 +48,7 @@ header nav[aria-expanded="true"] {
}
}

@media (width >= 900px) {
@media (min-width: 900px) {
header nav[aria-expanded="true"] {
min-height: 0;
overflow: visible;
Expand Down Expand Up @@ -135,7 +139,7 @@ header nav[aria-expanded="true"] .nav-hamburger-icon::after {
transform: rotate(-45deg);
}

@media (width >= 900px) {
@media (min-width: 900px) {
header nav .nav-hamburger {
display: none;
visibility: hidden;
Expand Down Expand Up @@ -234,7 +238,7 @@ header nav .nav-sections ul > li > ul > li {
font-weight: 500;
}

@media (width >= 900px) {
@media (min-width: 900px) {
header nav .nav-sections {
display: block;
visibility: visible;
Expand Down
8 changes: 4 additions & 4 deletions best-cigars-guide/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
--content-width: 1020px;
}

@media (width >= 900px) {
@media (min-width: 900px) {
:root {
--heading-font-size-xxl: 60px;
--heading-font-size-xl: 48px;
Expand All @@ -56,7 +56,7 @@
}
}

@media (width <= 600px) {
@media (max-width: 600px) {
:root {
--nav-height: 180px;
}
Expand Down Expand Up @@ -203,13 +203,13 @@ main .section {
padding: 64px 16px;
}

@media (width >= 600px) {
@media (min-width: 600px) {
main .section {
padding: 64px 32px;
}
}

@media (width >= 900px) {
@media (min-width: 900px) {
.section > div {
max-width: var(--content-width);
margin: auto;
Expand Down

0 comments on commit 02f7dc9

Please sign in to comment.