Skip to content

Commit

Permalink
fix: исправление стилей для страницы библиотека
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrDronov committed Oct 27, 2023
1 parent 054cd22 commit 65d40dd
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 7 deletions.
4 changes: 4 additions & 0 deletions src/components/author-list/item/author-list-item.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.root {
display: block;

a {
width: 100%;
}
}
30 changes: 24 additions & 6 deletions src/components/library-layout/library-layout.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

@media tablet-portrait {
padding: 0 24px;
background-color: var(--white);
}
}

Expand Down Expand Up @@ -63,6 +64,7 @@
position: static;
z-index: auto;
padding: 0 24px;
background-color: var(--white);
}
}

Expand All @@ -76,9 +78,11 @@
grid-area: navigation;

@media tablet-portrait {
z-index: 1;
z-index: 2;
top: 0;
border-bottom: 1px solid var(--coal);
box-sizing: border-box;
padding-top: 26px;
background-color: var(--white);
}
}

Expand All @@ -93,7 +97,7 @@

.pagination {
position: sticky;
z-index: 3;
z-index: 1;
top: calc(var(--height-navbar-tablet-portrait) + var(--height-library-navigation-menu-tablet-portrait));
display: flex;
border-bottom: 1px solid var(--coal);
Expand All @@ -107,8 +111,14 @@

top: var(--height-library-navigation-menu-tablet-portrait);
display: block;
margin: 0 0 56px;
margin: 0;
background-color: var(--white);
overflow-x: auto;

nav {
border-top: 1px solid var(--coal);
margin-top: 16px;
}
}
}

Expand Down Expand Up @@ -136,6 +146,12 @@
top: calc(var(--height-navbar-tablet-portrait) + 24px);
max-width: 580px;
}

.content {
@media tablet-portrait {
padding-top: 56px;
}
}
}

.plays {
Expand Down Expand Up @@ -183,9 +199,11 @@
overflow-y: auto;

@media tablet-portrait {
position: static;
z-index: 1;
top: 80px;
height: auto;
padding: 16px 24px;
padding: 10px 24px 16px;
background-color: var(--white);
overflow-x: auto;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/components/page/navbar/page-navbar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
position: static;
z-index: auto;
border: 0;
background-color: var(--white);
}
}
3 changes: 3 additions & 0 deletions src/components/play-card/play-card.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,17 @@

.author {
display: inline-block;
max-width: 100%;
padding: 0;
margin-inline-start: 0;
overflow-x: hidden;

:first-child {
font-family: "PP Neue Machina", Arial, sans-serif;
font-weight: 400;
letter-spacing: -.01em;
line-height: 24px;
text-overflow: ellipsis;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/menu/type/library-navigation.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
&::after {
display: block;
width: .6em;
height: 1.6em;
height: 1.5em;
box-sizing: border-box;
border: 1px solid currentColor;
content: "";
Expand Down

0 comments on commit 65d40dd

Please sign in to comment.