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

Define clearfix CSS class #772

Merged
merged 1 commit into from
Feb 24, 2017
Merged

Define clearfix CSS class #772

merged 1 commit into from
Feb 24, 2017

Conversation

JanPetr
Copy link
Contributor

@JanPetr JanPetr commented Feb 24, 2017

Fixes #771

@JanPetr JanPetr requested a review from maxiloc February 24, 2017 08:35
@rayrutjes
Copy link
Member

The ":before" is not required for the clearfix to work.
Also you can add the classes to the parent container instead of adding empty divs.
Regarding the zoom rule, it is there to support IE6/7, not longer needed.
http://cssmojo.com/the-very-latest-clearfix-reloaded/

@JanPetr
Copy link
Contributor Author

JanPetr commented Feb 24, 2017

Good catch, thanks @rayrutjes. Will change


.algolia-clearfix:after {
content:"";
display:block;
Copy link
Member

Choose a reason for hiding this comment

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

On the shared link, they use display:table, it probably addresses some edge case so I think it is better to use it instead of block.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually in the link he's favoring block:
screenshot 2017-02-24 09 55 14

@rayrutjes
Copy link
Member

Correct, I overlooked that, makes sense, thank you for spotting that!

@JanPetr JanPetr merged commit 5bf5180 into develop Feb 24, 2017
@JanPetr JanPetr deleted the fix_clearfix branch February 24, 2017 15:44
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.

2 participants