Skip to content

Commit

Permalink
Правит внешние отступы блока дополнительных статей (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
monochromer authored Jan 13, 2025
1 parent e471990 commit 1b7d364
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/styles/blocks/links.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

.links {
display: grid;
margin-top: -1px;
padding: 16px 16px 24px;
background-color: var(--token-color-links-background);
}
Expand Down
12 changes: 12 additions & 0 deletions src/styles/blocks/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@
padding-bottom: 10%;
}

@media (width < 800px) {
.main__related-articles {
margin-bottom: -1px;
}
}

@media (800px <= width < 1024px) {
.main__related-articles {
margin-bottom: 100px;
}
}

@media (min-width: 800px) {
.main__section {
padding-right: 24px;
Expand Down
11 changes: 3 additions & 8 deletions src/styles/blocks/related-articles.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
.related-articles {
max-width: 700px;
margin: 0 auto;
}

@media (min-width: 1240px) {
@media (width < 1024px) {
.related-articles {
max-width: none;
margin: 0;
max-width: 700px;
margin-inline: auto;
}
}

Expand Down

0 comments on commit 1b7d364

Please sign in to comment.