0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-18 10:52:19 +01:00

simplify the left margin for offset grid columns

This commit is contained in:
Mark Otto 2012-04-15 16:48:17 -07:00
parent 13e4d1d5ac
commit d374fe92e5
2 changed files with 17 additions and 1 deletions

View File

@ -546,7 +546,7 @@
.offsetX (0) {}
.offset (@columns) {
margin-left: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1)) + (@gridGutterWidth * 2);
margin-left: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns + 1));
}
.span (@columns) {

View File

@ -374,6 +374,19 @@
</ul>
</li>
</ul>
<h4>Dropdown on a button</h4>
<div style="position: relative;">
<button class="btn" type="button" data-toggle="dropdown">Dropdown <span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</div>
<br>
@ -445,6 +458,7 @@
</div>
<!-- Tabs
================================================== -->
@ -491,6 +505,8 @@
<!-- Footer
================================================== -->
<footer class="footer">