Skip to content

Commit

Permalink
feat: use position: sticky for discussion side nav (#3540)
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat authored Jul 17, 2022
1 parent cd610a1 commit 29179e2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion framework/core/less/common/App.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
position: relative !important;
padding-top: var(--header-height);
padding-bottom: 50px;
overflow-x: hidden;
min-height: 100vh;

@media @phone {
Expand Down
1 change: 1 addition & 0 deletions framework/core/less/common/scaffolding.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ body {
font-size: 13px;
line-height: 1.5;
overflow-y: scroll;
overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
Expand Down
8 changes: 4 additions & 4 deletions framework/core/less/forum/DiscussionPage.less
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
@media @tablet-up {
.DiscussionPage-nav {
float: right;
position: sticky;
top: var(--header-height);
padding-top: 32px;

&, > ul {
width: 150px;
}

> ul {
position: fixed;
margin-top: 30px;
z-index: 1;

> li {
margin-bottom: 10px;
}
Expand Down
1 change: 0 additions & 1 deletion framework/core/less/forum/Post.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
position: relative;
top: 0;
border-radius: var(--border-radius);
.clearfix();

&.editing {
top: 5px;
Expand Down

0 comments on commit 29179e2

Please sign in to comment.