2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00

Switch to &:extend(.clearfix all) for clearfix mixin

Original discussion:
https://github.com/less/less.js/issues/1437#issuecomment-21383639.

Since we’re switching to `grunt-contrib-less`, we can take advantage of
newer LESS features than what RECESS supported. Included in that is the
ability to `:extend`, and not only that, but `:extend(.mixin-name
all)`. By doing so, we remove duplicate CSS for all our elements that
were being clearfix-ed.

Fixes #8947, #8968, #8991, #9257, #9268, #9291, #9430, #9604, #9686,
#9929, #10731, #10793, #11305, #11498, #11533, #11570, #11604, #11652.

(dem issues, tho)
This commit is contained in:
Mark Otto
2013-12-08 23:18:28 -08:00
parent 2a4621b71f
commit 0016c17f93
10 changed files with 54 additions and 239 deletions
+2 -2
View File
@@ -37,7 +37,7 @@
// Optional: Group multiple button groups together for a toolbar
.btn-toolbar {
.clearfix();
&:extend(.clearfix all);
.btn-group {
float: left;
@@ -157,7 +157,7 @@
// Clear floats so dropdown menus can be properly placed
> .btn-group {
.clearfix();
&:extend(.clearfix all);
> .btn {
float: none;
}