mirror of
https://github.com/twbs/bootstrap.git
synced 2025-03-15 05:00:15 +01:00
true > child + varargs
This commit is contained in:
parent
3524aa909c
commit
29c63fdb6a
Binary file not shown.
@ -489,10 +489,10 @@
|
|||||||
~".span@{index}" { .span(@index); }
|
~".span@{index}" { .span(@index); }
|
||||||
#grid .spanX(@index - 1);
|
#grid .spanX(@index - 1);
|
||||||
}
|
}
|
||||||
.spanX (@index, @child) when not (@index = 0) and (@child) {
|
.spanX (@index, child) when (@index > 0) {
|
||||||
~"> .span@{index}" { .span(@index); }
|
~"> .span@{index}" { .span(@index); }
|
||||||
#grid .spanX(@index - 1, @child);
|
#grid .spanX(@index - 1, child);
|
||||||
}
|
}
|
||||||
.spanX (0, ...) {}
|
.spanX (0, ...) {}
|
||||||
|
|
||||||
.offsetX (@index) when (@index > 0) {
|
.offsetX (@index) when (@index > 0) {
|
||||||
@ -550,7 +550,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// generate .spanX
|
// generate .spanX
|
||||||
#grid .spanX (@gridColumns, true);
|
#grid .spanX (@gridColumns, child);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -567,7 +567,7 @@
|
|||||||
margin-left: 0; // override margin-left from core grid system
|
margin-left: 0; // override margin-left from core grid system
|
||||||
|
|
||||||
// generate .spanX
|
// generate .spanX
|
||||||
#grid .spanX (@gridColumns, true);
|
#grid .spanX (@gridColumns, child);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user