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

Maintain image size ratio #2

Closed
jodal opened this issue Oct 26, 2013 · 1 comment
Closed

Maintain image size ratio #2

jodal opened this issue Oct 26, 2013 · 1 comment

Comments

@jodal
Copy link
Member

jodal commented Oct 26, 2013

When images are wider than the page, they are made narrower without making them lower, distorting the image size ratio.

Example: http://docs.mopidy.com/en/develop/clients/http/#mopidy-lux

@snide snide closed this as completed in 181a823 Oct 27, 2013
@snide
Copy link
Collaborator

snide commented Oct 27, 2013

The only way I could really solve this one when rst outputs height/width in style markup is to do this...

max-width: 800px
height: auto !important

It's ugly, but it'll work for docs that set unusually large widths on images. In general though I'd avoid setting widths and heights in your docs unless you happen to be aligning them left or right within the doc.

piogor pushed a commit to piogor/sphinx_rtd_theme that referenced this issue May 25, 2017
piogor pushed a commit to piogor/sphinx_rtd_theme that referenced this issue May 25, 2017
piogor pushed a commit to piogor/sphinx_rtd_theme that referenced this issue May 25, 2017
piogor pushed a commit to piogor/sphinx_rtd_theme that referenced this issue May 26, 2017
piogor pushed a commit to piogor/sphinx_rtd_theme that referenced this issue May 26, 2017
piogor pushed a commit to piogor/sphinx_rtd_theme that referenced this issue May 26, 2017
agjohnson pushed a commit that referenced this issue Jul 25, 2019
…-uglify-approx-4.0.1

Update grunt-contrib-uglify requirement from ~3.3.0 to ~4.0.1
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

No branches or pull requests

2 participants