Skip to content

Updated crate.scss #1856

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

Merged
merged 2 commits into from
Oct 2, 2019
Merged

Updated crate.scss #1856

merged 2 commits into from
Oct 2, 2019

Conversation

hbina
Copy link
Contributor

@hbina hbina commented Sep 28, 2019

  1. Fixed table from overflowing when the width is too large.
  2. Removed a pointless CSS property. See https://developer.mozilla.org/en-US/docs/Web/CSS/float

inline-block is ignored due to the float.
If float has a value other than none, the box is floated and display is treated as block.

Fixes: #1638

1. Fixed table from overflowing when the width is too large.
2. Removed a pointless CSS property. See https://developer.mozilla.org/en-US/docs/Web/CSS/float

`inline-block` is ignored due to the `float`.
If `float` has a value other than `none`, the box is floated and `display` is treated as `block`.
@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @jtgeibel (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@@ -341,6 +341,9 @@

table {
border-collapse: collapse;
display: block;
overflow-x: auto;
white-space: wrap;
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need this property (and wrap isn't a valid value anyway).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@@ -466,7 +469,6 @@
.small { margin-left: 20px; display: inline-block; }
a.arrow {
display: inline-block;
float: right;
Copy link
Contributor

Choose a reason for hiding this comment

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

Removing this does change the semantics – the arrow won't be a float anymore, and it's not moved to the right side of the containing element anymore. It does not appear to make a difference on modern browsers because the containing element has justify-content: space-between;, which also results in moving the arrow to the right, but I'd be careful and just leave this in.

Added `float` back and remove an unnecessary value...

Should I merge this?
@hbina
Copy link
Contributor Author

hbina commented Sep 29, 2019

Should I merge these commits?

@jtgeibel
Copy link
Member

jtgeibel commented Oct 2, 2019

LGTM!

@bors r+

@bors
Copy link
Contributor

bors commented Oct 2, 2019

📌 Commit d4905d1 has been approved by jtgeibel

@bors
Copy link
Contributor

bors commented Oct 2, 2019

⌛ Testing commit d4905d1 with merge 7ce236f...

bors added a commit that referenced this pull request Oct 2, 2019
Updated crate.scss

1. Fixed table from overflowing when the width is too large.
2. Removed a pointless CSS property. See https://developer.mozilla.org/en-US/docs/Web/CSS/float

`inline-block` is ignored due to the `float`.
If `float` has a value other than `none`, the box is floated and `display` is treated as `block`.

Fixes: #1638
@bors
Copy link
Contributor

bors commented Oct 2, 2019

☀️ Test successful - checks-travis
Approved by: jtgeibel
Pushing 7ce236f to master...

@bors bors merged commit d4905d1 into rust-lang:master Oct 2, 2019
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.

A wide table in the README breaks the layout
5 participants