Skip to content
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

Improve styling for reviews, comments, and blockquotes #209

Merged
merged 5 commits into from
Aug 20, 2018

Conversation

miguelsolorio
Copy link
Contributor

Fixes #194 #195

Before
image

After
image

@@ -384,12 +406,18 @@ body .comment-form .form-actions button {
}

.comment-body blockquote {
margin: 0 7px 0 5px;
padding: 0 16px 0 10px;
display: flex;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For xtermjs/xterm.js#1577, I think this display property makes the blockquote shift down too much:

screen shot 2018-08-16 at 9 18 59 am

compared to
screen shot 2018-08-16 at 9 23 35 am

I think changing the padding to something like 1px 12px would work, I'm not sure why it collapses when there's no vertical padding

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Something weird was happening with the flex property (originally used it to get the paragraph padding to show up). Change it to to a block element and adjusted the padding so it shows up correctly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should work better with list items:
image

And with longer paragraphs:
image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! 👍

@@ -384,12 +406,18 @@ body .comment-form .form-actions button {
}

.comment-body blockquote {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you change this to just blockquote? xtermjs/xterm.js#1392 has an example of a blockquote being used in somewhere that's not a comment-body

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Opened the scope so it's for all blockquote elements

@@ -3,11 +3,15 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

:root {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary space carried from auto indent on enter.

Copy link
Member

@rebornix rebornix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a tiny comment, whose root cause is actually a vscode bug of auto indent. I'll fix it and merge this PR. Looks pretty good.

@rebornix rebornix merged commit 92f231e into master Aug 20, 2018
@miguelsolorio miguelsolorio deleted the misolori/ux-polish branch August 21, 2018 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants