Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Revert "doc: fix word wrapping for api stability boxes"
This reverts commit e0dcbd7.
  • Loading branch information
saadq committed Aug 14, 2017
commit be1c7ca7fa6544ec35efa5501bb5f85f8f454d3d
2 changes: 0 additions & 2 deletions doc/api_assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ em code {
color: white !important;
margin: 0 0 1em 0;
font-family: "Lato", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif;
white-space: pre-wrap;
word-wrap: break-word;
padding: 1em;
line-height: 1.5;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these (esp. the font and wrapping ones) still necessary now that the container has been switched to a <div>?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, you're right. Since it's not pre anymore, the wrapping is no longer an issue. The padding and line-height are still necessary though.

Copy link
Copy Markdown
Contributor Author

@saadq saadq Aug 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reverted the wrapping changes. Just to clarify, I don't know if the line-height is strictly "necessary", I just added it because that was what the pre had originally. I'm not sure if you all think it looks fine without it.

Without line-height:
screen shot 2017-08-14 at 5 18 42 am

With line-height:
screen shot 2017-08-14 at 5 18 53 am

Copy link
Copy Markdown
Contributor

@silverwind silverwind Aug 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I like it more with the extra space. Another option would be to make it a <p> which already sets 1.5em line-height and a similar margin-bottom, so you save two declarations.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thought, it might be unexpected to have <p> and those boxes share CSS. So, LGTM as-is.

}
Expand Down