0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 09:52:29 +01:00

true > child + varargs

This commit is contained in:
Jacob Thornton 2012-03-04 14:27:13 -08:00
parent 3524aa909c
commit 29c63fdb6a
2 changed files with 6 additions and 6 deletions

Binary file not shown.

View File

@ -489,10 +489,10 @@
~".span@{index}" { .span(@index); }
#grid .spanX(@index - 1);
}
.spanX (@index, @child) when not (@index = 0) and (@child) {
~"> .span@{index}" { .span(@index); }
#grid .spanX(@index - 1, @child);
}
.spanX (@index, child) when (@index > 0) {
   ~"> .span@{index}" { .span(@index); }
   #grid .spanX(@index - 1, child);
 }
.spanX (0, ...) {}
.offsetX (@index) when (@index > 0) {
@ -550,7 +550,7 @@
}
// generate .spanX
#grid .spanX (@gridColumns, true);
#grid .spanX (@gridColumns, child);
}
}
@ -567,7 +567,7 @@
margin-left: 0; // override margin-left from core grid system
// generate .spanX
#grid .spanX (@gridColumns, true);
#grid .spanX (@gridColumns, child);
}
}