New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added margin top to lists. Fixes issue #5626 #5721
Conversation
As said in #5627 (comment), I would prefer to not have a top margin at the top there, only between two elements of the post. |
I think this would fix it. |
I guess added indent is a bit odd. |
I think the desired scheme is
|
@jhass please have a look. |
@sam09 I think all you have to do is setting the |
The case when list is the only element in post is a special case of the element being first child and the fourth last child. |
Ah, ok. Just saw @jhass's comment where he asked for an extra margin top for lists. You set all four margin values (top, right, bottom, left) in this PR which is not necessary. Instead your code could look cleaner if you would
|
Alright @sam09, could you please squash the commits? Then I will merge this PR. |
@svbergerem Is it fine? |
You added ul, ol {
margin-top:0.8em;
margin-bottom:0.8em;
&:first-child { margin-top: 0; }
&:nth-last-child(4) { margin-bottom: 0; }
} After you changed that you can update your existing commit with git commit --amend app/assets/stylesheets/stream_element.scss |
Added margin top to lists. Fixes issue #5626
Thank you! |
This offers an alternative to #5627