Curious if we could normalize any of these. I'll also say that on top of these, there are a lot of images in the docs that are not within any kind of class/wrapper - so those are either left-aligned with the content if they're less than the width of the content wrapper, or they consume 100% of the content width with no max-width.
.ws-docs-content-img
|
.ws-docs-content-img { |
|
text-align: center; |
|
margin-inline: auto; |
|
width: 100%; |
|
max-width: 700px; |
|
} |
.ws-image
|
.ws-image { |
|
text-align: center; |
|
} |
.ws-images
-
centers itself horizontally
-
has a max-width of 600px
-
Same as the first one except 600px instead of 700px and it will not center its children, so if an image less than 600px wide is passed, it will be left aligned within the container.
|
.ws-images { |
|
margin: auto; |
|
width: 600px; |
|
} |
Jira Issue: PF-2788
Curious if we could normalize any of these. I'll also say that on top of these, there are a lot of images in the docs that are not within any kind of class/wrapper - so those are either left-aligned with the content if they're less than the width of the content wrapper, or they consume 100% of the content width with no max-width.
.ws-docs-content-imgwill only grow up to
700pxcenters itself horizontally
centers its child horizontally (if the image inside is less than
700px)Button docs use this with a bunch of varied image sizes - https://www.patternfly.org/components/button/design-guidelines
patternfly-org/packages/documentation-site/patternfly-docs/content/design-guidelines/components/components.css
Lines 1 to 6 in b455d81
.ws-imagecenters its child horizontally
same as above but will grow to 100% of the available width instead of a max of 700px
patternfly-org/packages/documentation-framework/templates/mdx.css
Lines 19 to 21 in b455d81
.ws-imagescenters itself horizontally
has a max-width of
600pxSame as the first one except 600px instead of 700px and it will not center its children, so if an image less than 600px wide is passed, it will be left aligned within the container.
patternfly-org/packages/site/src/content/get-started/get-started.css
Lines 5 to 8 in b455d81
Jira Issue: PF-2788