Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorIgor Rzegocki <ajgon@irgon.com>2012-05-09 17:50:13 +0400
committerMarcus Schwab <marcus@atws.ca>2012-06-08 04:23:22 +0400
commitf8d68002dc22a15a84c0a4dff5a5851ff131c9c8 (patch)
tree40d55e8fe06ca36f675cff1aecb8f8326eae662f /less
parent860a96939a58831228c2ea90055ca82cd9c84698 (diff)
Added offsets for .row-fluid
Diffstat (limited to 'less')
-rw-r--r--less/mixins.less14
1 files changed, 13 insertions, 1 deletions
diff --git a/less/mixins.less b/less/mixins.less
index 4f204d1af7..47353bcc55 100644
--- a/less/mixins.less
+++ b/less/mixins.less
@@ -596,6 +596,17 @@
}
.spanX (0) {}
+ .offsetX (@index) when (@index > 0) {
+ (~'.offset@{index}, .row-fluid > .offset@{index}[class*="span"]') { .offset(@index); }
+ .offsetX(@index - 1);
+ }
+ .offsetX (0) {}
+
+ .offset (@columns) {
+ margin-left: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1)) + @fluidGridGutterWidth;
+ *margin-left: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1)) - (.5 / @gridRowWidth * 100 * 1%) + @fluidGridGutterWidth - (.5 / @gridRowWidth * 100 * 1%);
+ }
+
.span (@columns) {
width: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1));
*width: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1)) - (.5 / @gridRowWidth * 100 * 1%);
@@ -614,8 +625,9 @@
margin-left: 0;
}
- // generate .spanX
+ // generate .spanX and .offsetX
.spanX (@gridColumns);
+ .offsetX (@gridColumns);
}
}