Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #383 from B77Mills/fixCommentCss
Browse files Browse the repository at this point in the history
Adjust comment stream css to account for comment count
  • Loading branch information
solocommand authored Jul 27, 2022
2 parents b8d2d1e + bc2f360 commit db0d2be
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions packages/marko-web-theme-monorail/scss/components/_comments.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,26 @@ $bottom-gradient-height: 180px !default;
}
}
.idx-comment-stream-wrapper {
max-height: $comment-start-height;
overflow: hidden;
display: flex;
flex-direction: column;
margin-top: 24px;
border-radius: 4px;
border: 1px solid $gray-200;
.idx-comment-stream {
&:not(.idx-comment-stream__counter--1) {
max-height: $comment-start-height;
overflow: hidden;
}
}
&--open {
.idx-comment-stream {
max-height: 100%;
overflow: visible;
&:not(.idx-comment-stream__counter--1) {
max-height: initial;
overflow: visible;
}
}
height: initial;
max-height: initial;
.idx-comment-stream ~ .comment-stream__toggle-btn {
Expand All @@ -52,8 +64,6 @@ $bottom-gradient-height: 180px !default;

.idx-comment-stream {
$self: &;
max-height: 100%;
overflow: hidden;
position: relative;
display: block;
padding-top: map-get($spacers, block);
Expand Down

0 comments on commit db0d2be

Please sign in to comment.