Skip to content

Commit

Permalink
Корректирует макет
Browse files Browse the repository at this point in the history
  • Loading branch information
vitya-ne committed Sep 6, 2024
1 parent b40c4fa commit 39ce493
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/styles/blocks/person-page.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
display: grid;
gap: var(--offset);
grid-template-columns: minmax(min(100%, 320px), 1fr);
max-width: 960px;
max-width: 1440px;
}

.person-page__group {
Expand Down Expand Up @@ -140,7 +140,7 @@
@media (width >= 1024px) {
.person-page {
--sidebar-size: 245px;
--content-max-size: 36rem;
--content-max-size: 34rem;
}

.person-page__avatar {
Expand Down Expand Up @@ -169,10 +169,21 @@
.person-page {
--sidebar-size-end: 1fr;
}

.person-page__articles {
grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
}

@media (width >= 1680px) {
.person-page__main {
grid-template-areas:
"avatar header ."
"meta articles articles"
". footer footer"
}

.person-page {
--sidebar-size: 320px;
--sidebar-size: 300px;
}
}

0 comments on commit 39ce493

Please sign in to comment.