Skip to content

Commit

Permalink
Reader: remove width constraint on discover header (#98716)
Browse files Browse the repository at this point in the history
  • Loading branch information
holdercp authored Jan 23, 2025
1 parent 9341169 commit 5a9b99a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 29 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
.is-section-reader .navigation-header.discover-stream-header {
margin: 0 auto;
max-width: 600px;
&.reader-dual-column {
max-width: 968px; // Max width of dual column reader stream.
}
}

.scrollable-horizontal-navigation {
position: relative;
margin: auto;
margin-bottom: -20px;
max-width: 600px; // Max width of single column reader stream.
overflow: hidden;
@media only screen and (max-width: 600px) {
padding: 0 24px;
Expand Down
21 changes: 16 additions & 5 deletions client/reader/discover/discover-navigation.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
.is-section-reader .navigation-header.discover-stream-header {
margin: 0 auto;
max-width: 600px;
&.reader-dual-column {
max-width: 968px; // Max width of dual column reader stream.
.is-section-reader {
.navigation-header.discover-stream-header {
margin: 0 auto;
padding: 0 0 24px 0;

@media only screen and ( max-width: 660px ) {
padding: 0 16px 24px;
}

&.reader-dual-column {
max-width: 968px; // Max width of dual column reader stream.
}
}
.discover-stream-navigation {
padding: 0;
margin-bottom: 0;
}
}
15 changes: 0 additions & 15 deletions client/reader/sidebar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,21 +117,6 @@ body.is-section-reader {
height: calc(100vh - var(--masterbar-height) - var(--content-padding-top) - var(--content-padding-bottom));
}
}

.is-discover-stream {
header.navigation-header.discover-stream-header {
padding: 0;
@media only screen and (max-width: 600px) {
padding: 0 24px;
}
}
@media only screen and (max-width: 660px) {
.discover-stream-navigation {
margin-left: 0;
margin-right: 0;
}
}
}
}

.is-section-reader {
Expand Down

0 comments on commit 5a9b99a

Please sign in to comment.