Skip to content

Commit

Permalink
refactor:add display grid news--wrapper on tablet
Browse files Browse the repository at this point in the history
  • Loading branch information
ab3MN committed Oct 23, 2024
1 parent 5aac521 commit 4b330da
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 33 deletions.
26 changes: 14 additions & 12 deletions src/styles/components/_news.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,33 @@
margin-bottom: $section-mb-xxl;
}

&-title {
margin-bottom: 6rem;

&--wrapper {
@include media-tablet {
grid-column: span 4;
}
display: grid;

@include media-tablet-l {
margin-bottom: 7rem;
grid-auto-flow: row dense;

@include page-grid(6, $glutter-tablet);
}

@include media-decstop-xl {
margin-bottom: 6rem;
@include page-grid(12, $glutter-desctop);
}
}

&--wrapper {
&-title {
margin-bottom: 6rem;

@include media-tablet {
@include page-grid(6, $glutter-tablet);
grid-column: span 4;
}

grid-auto-flow: row dense;
@include media-tablet-l {
margin-bottom: 7rem;
}

@include media-decstop-xl {
@include page-grid(12, $glutter-desctop);
margin-bottom: 6rem;
}
}
}
Expand Down
39 changes: 19 additions & 20 deletions src/styles/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4b330da

Please sign in to comment.