Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…s-faweb-demo into 8-text-image
  • Loading branch information
kesiah committed Dec 5, 2024
2 parents 649f7f2 + df79b30 commit de39f1d
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
{
"message": "Expected class \"%s\" to be in kebab-case or BEM-style naming."
}
]
],
"media-feature-range-notation": "prefix"
}
}
2 changes: 1 addition & 1 deletion 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
2 changes: 1 addition & 1 deletion blocks/footer/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ footer .footer p {
margin: 0;
}

@media (width >= 900px) {
@media (min-width: 900px) {
footer .footer > div {
padding: 40px 32px 24px;
}
Expand Down
6 changes: 3 additions & 3 deletions blocks/header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ header nav[aria-expanded='true'] {
min-height: 100dvh;
}

@media (width >= 900px) {
@media (min-width: 900px) {
header nav {
display: flex;
justify-content: space-between;
Expand Down Expand Up @@ -128,7 +128,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 @@ -182,7 +182,7 @@ header nav .nav-sections ul > li > ul > li {
font-weight: 400;
}

@media (width >= 900px) {
@media (min-width: 900px) {
header nav .nav-sections {
display: block;
visibility: visible;
Expand Down
2 changes: 1 addition & 1 deletion blocks/hero/hero.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
height: 100%;
}

@media (width >= 900px) {
@media (min-width: 900px) {
.hero {
padding: 40px 32px;
}
Expand Down
6 changes: 3 additions & 3 deletions blocks/text-image/text-image.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
flex-direction: column;
gap: 24px;

@media (width >= 768px) {
@media (min-width: 768px) {
flex-direction: row;
}

Expand All @@ -21,7 +21,7 @@
order: 1;
flex-grow: 1;

@media (width >= 768px) {
@media (min-width: 768px) {
order: initial;
width: calc(100% - var(--image-width));
}
Expand All @@ -31,7 +31,7 @@
.text-image__image-container {
order: 0;

@media (width >= 768px) {
@media (min-width: 768px) {
order: initial;
width: var(--image-width);

Expand Down
10 changes: 5 additions & 5 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,19 @@
--txt154-font-size: 14px;
--txt154-line-height: 114%;

@media (width >= 768px) {
@media (min-width: 768px) {
--hl17-font-size: 48px;
--hl17-line-height: 120%;
--hl18-font-size: 40px;
--hl21-font-size: 20px;
}

@media (width >= 1024px) {
@media (min-width: 1024px) {
--hl19-font-size: 32px;
--txt201-font-size: 14px;
}

@media (width >= 1280px) {
@media (min-width: 1280px) {
--hl20-font-size: 24px;
--hl20-line-height: 150%;
--hl22-font-size: 18px;
Expand All @@ -76,7 +76,7 @@
--txt204-line-height: 150%;
}

@media (width >= 1440px) {
@media (min-width: 1440px) {
--txt201-font-size: 17px;
}

Expand Down Expand Up @@ -331,7 +331,7 @@ main {
}
}

@media (width >= 900px) {
@media (min-width: 900px) {
main {
& > .section {
& > div {
Expand Down

0 comments on commit de39f1d

Please sign in to comment.