-
Notifications
You must be signed in to change notification settings - Fork 981
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
Styles for image alignment (pypa/warehouse#4023) #4391
Conversation
CSS code inspired on Spinx. Dependes on fixing pypa/readme_renderer#112.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if the SCSS looks good to @nlhkabu!
@@ -162,6 +162,34 @@ | |||
> a { | |||
margin-top: $spacing-unit / 2; | |||
} | |||
|
|||
img.align-left, | |||
.figure.align-left, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this supposed to be figure.align-left
not .figure.align-left
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just need to remove this .
and we are good to go :)
That dot is intentional. Docutils render figures as |
Ok, thanks for the clarification :) |
🎉 |
This PR applies styling to classes generated from restructuredText, but which are stripped now.
Fixes in pypa/readme_renderer#112 must be applied first and published to render proper HTML.