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

Fix Padding #5

Closed
wants to merge 1 commit into from
Closed

Fix Padding #5

wants to merge 1 commit into from

Conversation

JSanchezIO
Copy link

I'm not super fond of using !important but I wasn't sure what selectors were available. Had I known, I would've opted to increase specificity by using a stronger selector.

for #4

@@ -1,8 +1,6 @@
.markdown-alert {
padding: 1em;
padding: 0 1em !important;

Choose a reason for hiding this comment

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

This is what GitHub itself uses, though maybe it wouldn't even match correctly due to the weird CSS? Looks good to me this way though.

Suggested change
padding: 0 1em !important;
padding: 0.5rem 1rem !important;

@JSanchezIO
Copy link
Author

Closing this because I think the root cause of the problem is with the generated CSS packaged with Markdown Preview GitHub Styling extension. See mjbvz/vscode-github-markdown-preview-style#137 (comment) for more details.

@JSanchezIO JSanchezIO closed this Jun 24, 2024
@JSanchezIO JSanchezIO deleted the patch-1 branch June 24, 2024 02:28
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.

None yet

2 participants