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

Styles for image alignment (pypa/warehouse#4023) #4391

Merged
merged 2 commits into from
Jul 31, 2018
Merged

Styles for image alignment (pypa/warehouse#4023) #4391

merged 2 commits into from
Jul 31, 2018

Conversation

mila
Copy link
Contributor

@mila mila commented Jul 28, 2018

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.

CSS code inspired on Spinx.

Dependes on fixing pypa/readme_renderer#112.
@mila
Copy link
Contributor Author

mila commented Jul 28, 2018

localhost_project_remt_

@nlhkabu nlhkabu requested a review from di July 28, 2018 17:40
Copy link
Member

@di di left a 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!

@di di requested a review from nlhkabu July 28, 2018 23:55
@@ -162,6 +162,34 @@
> a {
margin-top: $spacing-unit / 2;
}

img.align-left,
.figure.align-left,
Copy link
Contributor

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 ?

Copy link
Contributor

@nlhkabu nlhkabu left a 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 :)

@mila
Copy link
Contributor Author

mila commented Jul 29, 2018

is this supposed to be figure.align-left not .figure.align-left ?

That dot is intentional. Docutils render figures as <div class="figure"> https://sourceforge.net/p/docutils/code/HEAD/tree/tags/docutils-0.14/docutils/writers/_html_base.py#l821

@nlhkabu
Copy link
Contributor

nlhkabu commented Jul 31, 2018

Ok, thanks for the clarification :)

@nlhkabu nlhkabu merged commit 20e6969 into pypi:master Jul 31, 2018
@nlhkabu
Copy link
Contributor

nlhkabu commented Jul 31, 2018

🎉

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