Skip to content

Images are presented inconsistently in docs #4827

@mcoker

Description

@mcoker

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

  • centers its child horizontally
  • same as above but will grow to 100% of the available width instead of a max of 700px

.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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions