Skip to content

Commit

Permalink
chore: change discussion page skeleton to grid layout
Browse files Browse the repository at this point in the history
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
  • Loading branch information
SychO9 committed Sep 2, 2022
1 parent 854ef2a commit 5d745ab
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
20 changes: 14 additions & 6 deletions framework/core/less/forum/DiscussionPage.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,25 @@
}
}
@media @tablet-up {
.DiscussionPage-discussion {
> .container {
display: grid;
grid-gap: 75px;
grid-template-columns: 1fr 150px;

&::before, &::after {
content: none;
}
}
}

.DiscussionPage-nav {
float: right;
align-self: start;
position: sticky;
top: var(--header-height);
padding-top: 32px;
z-index: 1;

&, > ul {
width: 150px;
}

> ul {
> li {
margin-bottom: 10px;
Expand All @@ -53,7 +61,7 @@
}

.DiscussionPage-stream {
margin-right: 225px;
order: -1;
}
}

Expand Down
1 change: 1 addition & 0 deletions framework/core/less/forum/Post.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
position: relative;
top: 0;
border-radius: var(--border-radius);
.clearfix();

&.editing {
top: 5px;
Expand Down

0 comments on commit 5d745ab

Please sign in to comment.