-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Fix .clearfix on .dl-horizontal dd (#12753) #12756
Conversation
Filed an upstream less.js bug regarding the duplication: less/less.js#1886 |
@mdo We're gonna need some kind of workaround here to avoid duplication. |
Omitting the parenthesis on the declaration of the
appears to behave as desired. (On the other hand, the duplicate rules aren't the end of the world.) |
Something like this should be fine I think: // Horizontal description lists
//
// Defaults to being stacked without any of the below styles applied, until the
// grid breakpoint is reached (default of ~768px).
.dl-horizontal {
dd {
&:extend(.clearfix all); // Clear the floated `dt` if an empty `dd` is present
}
@media (min-width: @grid-float-breakpoint) {
dt {
float: left;
width: (@component-offset-horizontal - 20);
clear: left;
text-align: right;
.text-overflow();
}
dd {
margin-left: @component-offset-horizontal;
}
}
} We don't need to change the way we clearfix, just where the clearfix is. This shouldn't change much really since it's just a clearfix. |
Yes, I suspect that's fine, too. Do you want me to update this PR accordingly? (I.e. are you going to merge it if I do?) |
Thanks! |
<3 |
…the clearfix out of the media query
See #12753 for details.