1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-24 03:40:10 +00:00

Merge branch '2.1.0-wip' of https://github.com/twitter/bootstrap into 2.1.0-wip

This commit is contained in:
Jacob Thornton 2012-08-14 21:06:39 -07:00
commit ae9a2bd93a
19 changed files with 121 additions and 67 deletions

View File

@ -34,7 +34,7 @@
.input-block-level { .input-block-level {
display: block; display: block;
width: 100%; width: 100%;
min-height: 28px; min-height: 30px;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
@ -203,7 +203,7 @@
display: block; display: block;
float: left; float: left;
width: 100%; width: 100%;
min-height: 28px; min-height: 30px;
margin-left: 2.564102564102564%; margin-left: 2.564102564102564%;
*margin-left: 2.5109110747408616%; *margin-left: 2.5109110747408616%;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
@ -548,7 +548,7 @@
display: block; display: block;
float: left; float: left;
width: 100%; width: 100%;
min-height: 28px; min-height: 30px;
margin-left: 2.7624309392265194%; margin-left: 2.7624309392265194%;
*margin-left: 2.709239449864817%; *margin-left: 2.709239449864817%;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
@ -830,7 +830,7 @@
.uneditable-input { .uneditable-input {
display: block; display: block;
width: 100%; width: 100%;
min-height: 28px; min-height: 30px;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;

View File

@ -150,7 +150,7 @@ textarea {
.input-block-level { .input-block-level {
display: block; display: block;
width: 100%; width: 100%;
min-height: 28px; min-height: 30px;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
@ -340,7 +340,7 @@ a:hover {
display: block; display: block;
float: left; float: left;
width: 100%; width: 100%;
min-height: 28px; min-height: 30px;
margin-left: 2.127659574468085%; margin-left: 2.127659574468085%;
*margin-left: 2.074468085106383%; *margin-left: 2.074468085106383%;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
@ -1012,10 +1012,9 @@ input[type="color"]:focus,
input[type="radio"], input[type="radio"],
input[type="checkbox"] { input[type="checkbox"] {
margin: 4px 0; margin: 4px 0 0;
margin-top: 1px \9;
*margin-top: 0; *margin-top: 0;
/* IE7 */
line-height: normal; line-height: normal;
cursor: pointer; cursor: pointer;
} }
@ -1031,13 +1030,13 @@ input[type="checkbox"] {
select, select,
input[type="file"] { input[type="file"] {
height: 28px; height: 30px;
/* In IE7, the height of the select element cannot be changed by height, only font-size */ /* In IE7, the height of the select element cannot be changed by height, only font-size */
*margin-top: 4px; *margin-top: 4px;
/* For IE7, add top margin to align select with labels */ /* For IE7, add top margin to align select with labels */
line-height: 28px; line-height: 30px;
} }
select { select {
@ -1863,8 +1862,8 @@ table {
background-color: #f9f9f9; background-color: #f9f9f9;
} }
.table-hover tr:hover td, .table-hover tbody tr:hover td,
.table-hover tr:hover th { .table-hover tbody tr:hover th {
background-color: #f5f5f5; background-color: #f5f5f5;
} }
@ -2866,6 +2865,7 @@ table .span24 {
position: relative; position: relative;
height: 0; height: 0;
overflow: hidden; overflow: hidden;
overflow: visible \9;
-webkit-transition: height 0.35s ease; -webkit-transition: height 0.35s ease;
-moz-transition: height 0.35s ease; -moz-transition: height 0.35s ease;
-o-transition: height 0.35s ease; -o-transition: height 0.35s ease;
@ -3254,8 +3254,8 @@ button.close {
button.btn, button.btn,
input[type="submit"].btn { input[type="submit"].btn {
*padding-top: 2px; *padding-top: 3px;
*padding-bottom: 2px; *padding-bottom: 3px;
} }
button.btn::-moz-focus-inner, button.btn::-moz-focus-inner,
@ -4030,7 +4030,7 @@ input[type="submit"].btn.btn-mini {
.navbar .brand { .navbar .brand {
display: block; display: block;
float: left; float: left;
padding: 8px 20px 12px; padding: 10px 20px 10px;
margin-left: -20px; margin-left: -20px;
font-size: 20px; font-size: 20px;
font-weight: 200; font-weight: 200;
@ -4146,6 +4146,11 @@ input[type="submit"].btn.btn-mini {
margin-bottom: 0; margin-bottom: 0;
} }
.navbar-fixed-top .navbar-inner,
.navbar-fixed-bottom .navbar-inner {
border: 0;
}
.navbar-fixed-top .navbar-inner, .navbar-fixed-top .navbar-inner,
.navbar-fixed-bottom .navbar-inner { .navbar-fixed-bottom .navbar-inner {
padding-right: 0; padding-right: 0;
@ -4165,7 +4170,6 @@ input[type="submit"].btn.btn-mini {
} }
.navbar-fixed-top .navbar-inner { .navbar-fixed-top .navbar-inner {
border-width: 0 0 1px;
-webkit-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
-moz-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); -moz-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
@ -4176,7 +4180,6 @@ input[type="submit"].btn.btn-mini {
} }
.navbar-fixed-bottom .navbar-inner { .navbar-fixed-bottom .navbar-inner {
border-width: 1px 0 0;
-webkit-box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1);
-moz-box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1); -moz-box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1);
box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1); box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1);
@ -4285,7 +4288,7 @@ input[type="submit"].btn.btn-mini {
margin-top: 3px; margin-top: 3px;
} }
.navbar .dropdown-menu:before { .navbar .nav > li > .dropdown-menu:before {
position: absolute; position: absolute;
top: -7px; top: -7px;
left: 9px; left: 9px;
@ -4297,7 +4300,7 @@ input[type="submit"].btn.btn-mini {
content: ''; content: '';
} }
.navbar .dropdown-menu:after { .navbar .nav > li > .dropdown-menu:after {
position: absolute; position: absolute;
top: -6px; top: -6px;
left: 10px; left: 10px;
@ -4308,7 +4311,7 @@ input[type="submit"].btn.btn-mini {
content: ''; content: '';
} }
.navbar-fixed-bottom .dropdown-menu:before { .navbar-fixed-bottom .nav > li > .dropdown-menu:before {
top: auto; top: auto;
bottom: -7px; bottom: -7px;
border-top: 7px solid #ccc; border-top: 7px solid #ccc;
@ -4316,7 +4319,7 @@ input[type="submit"].btn.btn-mini {
border-top-color: rgba(0, 0, 0, 0.2); border-top-color: rgba(0, 0, 0, 0.2);
} }
.navbar-fixed-bottom .dropdown-menu:after { .navbar-fixed-bottom .nav > li > .dropdown-menu:after {
top: auto; top: auto;
bottom: -6px; bottom: -6px;
border-top: 6px solid #ffffff; border-top: 6px solid #ffffff;
@ -4342,24 +4345,35 @@ input[type="submit"].btn.btn-mini {
border-bottom-color: #555555; border-bottom-color: #555555;
} }
.navbar .pull-right .dropdown-menu, .navbar .pull-right > li > .dropdown-menu,
.navbar .dropdown-menu.pull-right { .navbar .nav > li > .dropdown-menu.pull-right {
right: 0; right: 0;
left: auto; left: auto;
} }
.navbar .pull-right .dropdown-menu:before, .navbar .pull-right > li > .dropdown-menu:before,
.navbar .dropdown-menu.pull-right:before { .navbar .nav > li > .dropdown-menu.pull-right:before {
right: 12px; right: 12px;
left: auto; left: auto;
} }
.navbar .pull-right .dropdown-menu:after, .navbar .pull-right > li > .dropdown-menu:after,
.navbar .dropdown-menu.pull-right:after { .navbar .nav > li > .dropdown-menu.pull-right:after {
right: 13px; right: 13px;
left: auto; left: auto;
} }
.navbar .pull-right > li > .dropdown-menu .dropdown-menu,
.navbar .nav > li > .dropdown-menu.pull-right .dropdown-menu {
right: 100%;
left: auto;
margin-right: -1px;
margin-left: 0;
-webkit-border-radius: 6px 0 6px 6px;
-moz-border-radius: 6px 0 6px 6px;
border-radius: 6px 0 6px 6px;
}
.navbar-inverse { .navbar-inverse {
color: #999999; color: #999999;
} }

View File

@ -133,9 +133,14 @@ hr.soften {
/* Download button */ /* Download button */
@-webkit-keyframes downloadButton { @-webkit-keyframes downloadButton {
from { -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 10px rgba(0,68,204,.5); } from { box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 10px rgba(0,68,204,.5); }
50% { -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 25px rgba(0,68,204,.9); } 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 25px rgba(0,68,204,.9); }
to { -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 10px rgba(0,68,204,.5); } to { box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 10px rgba(0,68,204,.5); }
}
@-moz-keyframes downloadButton {
from { box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 10px rgba(0,68,204,.5); }
50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 25px rgba(0,68,204,.9); }
to { box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 10px rgba(0,68,204,.5); }
} }
.masthead .btn { .masthead .btn {
padding: 14px 24px; padding: 14px 24px;
@ -150,8 +155,11 @@ hr.soften {
-moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 10px rgba(0,68,204,.01); -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 10px rgba(0,68,204,.01);
box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 10px rgba(0,68,204,.01); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 10px rgba(0,68,204,.01);
-webkit-animation-name: downloadButton; -webkit-animation-name: downloadButton;
-moz-animation-name: downloadButton;
-webkit-animation-duration: 1.5s; -webkit-animation-duration: 1.5s;
-moz-animation-duration: 1.5s;
-webkit-animation-iteration-count: infinite; -webkit-animation-iteration-count: infinite;
-moz-animation-iteration-count: infinite;
-webkit-transition: none; -webkit-transition: none;
-moz-transition: none; -moz-transition: none;
transition: none; transition: none;

View File

@ -1257,7 +1257,7 @@ For example, <code>section</code> should be wrapped as inline.
<span class="input-xlarge uneditable-input">Some value here</span> <span class="input-xlarge uneditable-input">Some value here</span>
</form> </form>
<pre class="prettyprint linenums"> <pre class="prettyprint linenums">
&lt;span class="input-xlarge uneditable-input"&gt;Some value here&lt;/span&gt; &lt;span class="input-xlarge uneditable-input"&gt;Some value here&lt;/span&gt;
</pre> </pre>
<h3>Form actions</h3> <h3>Form actions</h3>

View File

@ -190,12 +190,16 @@
<input type="checkbox" checked="true" value="bootstrap-tooltip.js"> <input type="checkbox" checked="true" value="bootstrap-tooltip.js">
Tooltips Tooltips
</label> </label>
</div><!-- /span -->
<div class="span3">
<label class="checkbox"> <label class="checkbox">
<input type="checkbox" checked="true" value="bootstrap-popover.js"> <input type="checkbox" checked="true" value="bootstrap-popover.js">
Popovers <small>(requires Tooltips)</small> Popovers <small>(requires Tooltips)</small>
</label> </label>
</div><!-- /span -->
<div class="span3">
<label class="checkbox">
<input type="checkbox" checked="true" value="bootstrap-affix.js">
Affix
</label>
<label class="checkbox"> <label class="checkbox">
<input type="checkbox" checked="true" value="bootstrap-alert.js"> <input type="checkbox" checked="true" value="bootstrap-alert.js">
Alert messages Alert messages
@ -294,11 +298,11 @@
<label>@monoFontFamily</label> <label>@monoFontFamily</label>
<input type="text" class="span3" placeholder="Menlo, Monaco, 'Courier New', monospace"> <input type="text" class="span3" placeholder="Menlo, Monaco, 'Courier New', monospace">
<label>@baseFontSize</label> <label>@baseFontSize</label>
<input type="text" class="span3" placeholder="13px"> <input type="text" class="span3" placeholder="14px">
<label>@baseFontFamily</label> <label>@baseFontFamily</label>
<input type="text" class="span3" placeholder="@sansFontFamily"> <input type="text" class="span3" placeholder="@sansFontFamily">
<label>@baseLineHeight</label> <label>@baseLineHeight</label>
<input type="text" class="span3" placeholder="18px"> <input type="text" class="span3" placeholder="20px">
<label>@altFontFamily</label> <label>@altFontFamily</label>
<input type="text" class="span3" placeholder="@serifFontFamily"> <input type="text" class="span3" placeholder="@serifFontFamily">
<label>@headingsFontFamily</label> <label>@headingsFontFamily</label>

View File

@ -46,6 +46,18 @@
<li class="active"><a href="#">Home</a></li> <li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li> <li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li> <li><a href="#contact">Contact</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
<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 class="nav-header">Nav header</li>
<li><a href="#">Separated link</a></li>
<li><a href="#">One more separated link</a></li>
</ul>
</li>
</ul> </ul>
<form class="navbar-form pull-right"> <form class="navbar-form pull-right">
<input class="span2" type="text" placeholder="Email"> <input class="span2" type="text" placeholder="Email">

View File

@ -86,7 +86,7 @@
<div class="container"> <div class="container">
<ul class="bs-docs-social-buttons"> <ul class="bs-docs-social-buttons">
<li> <li>
<iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twitter&repo=bootstrap&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="112px" height="20px"></iframe> <iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twitter&repo=bootstrap&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
</li> </li>
<li> <li>
<iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twitter&repo=bootstrap&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="98px" height="20px"></iframe> <iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twitter&repo=bootstrap&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="98px" height="20px"></iframe>

View File

@ -74,7 +74,7 @@
<header class="jumbotron subhead" id="overview"> <header class="jumbotron subhead" id="overview">
<div class="container"> <div class="container">
<h1>JavaScript for Bootstrap</h1> <h1>JavaScript for Bootstrap</h1>
<p class="lead">Bring Bootstrap's components to life&mdash;now with 12 custom jQuery plugins. <p class="lead">Bring Bootstrap's components to life&mdash;now with 13 custom jQuery plugins.
</div> </div>
</header> </header>

View File

@ -1194,7 +1194,7 @@
<span class="input-xlarge uneditable-input">Some value here</span> <span class="input-xlarge uneditable-input">Some value here</span>
</form> </form>
<pre class="prettyprint linenums"> <pre class="prettyprint linenums">
&lt;span class="input-xlarge uneditable-input"&gt;Some value here&lt;/span&gt; &lt;span class="input-xlarge uneditable-input"&gt;Some value here&lt;/span&gt;
</pre> </pre>
<h3>{{_i}}Form actions{{/i}}</h3> <h3>{{_i}}Form actions{{/i}}</h3>

View File

@ -119,12 +119,16 @@
<input type="checkbox" checked="true" value="bootstrap-tooltip.js"> <input type="checkbox" checked="true" value="bootstrap-tooltip.js">
{{_i}}Tooltips{{/i}} {{_i}}Tooltips{{/i}}
</label> </label>
</div><!-- /span -->
<div class="span3">
<label class="checkbox"> <label class="checkbox">
<input type="checkbox" checked="true" value="bootstrap-popover.js"> <input type="checkbox" checked="true" value="bootstrap-popover.js">
{{_i}}Popovers <small>(requires Tooltips)</small>{{/i}} {{_i}}Popovers <small>(requires Tooltips)</small>{{/i}}
</label> </label>
</div><!-- /span -->
<div class="span3">
<label class="checkbox">
<input type="checkbox" checked="true" value="bootstrap-affix.js">
{{_i}}Affix{{/i}}
</label>
<label class="checkbox"> <label class="checkbox">
<input type="checkbox" checked="true" value="bootstrap-alert.js"> <input type="checkbox" checked="true" value="bootstrap-alert.js">
{{_i}}Alert messages{{/i}} {{_i}}Alert messages{{/i}}
@ -223,11 +227,11 @@
<label>@monoFontFamily</label> <label>@monoFontFamily</label>
<input type="text" class="span3" placeholder="Menlo, Monaco, 'Courier New', monospace"> <input type="text" class="span3" placeholder="Menlo, Monaco, 'Courier New', monospace">
<label>@baseFontSize</label> <label>@baseFontSize</label>
<input type="text" class="span3" placeholder="13px"> <input type="text" class="span3" placeholder="14px">
<label>@baseFontFamily</label> <label>@baseFontFamily</label>
<input type="text" class="span3" placeholder="@sansFontFamily"> <input type="text" class="span3" placeholder="@sansFontFamily">
<label>@baseLineHeight</label> <label>@baseLineHeight</label>
<input type="text" class="span3" placeholder="18px"> <input type="text" class="span3" placeholder="20px">
<label>@altFontFamily</label> <label>@altFontFamily</label>
<input type="text" class="span3" placeholder="@serifFontFamily"> <input type="text" class="span3" placeholder="@serifFontFamily">
<label>@headingsFontFamily</label> <label>@headingsFontFamily</label>

View File

@ -15,7 +15,7 @@
<div class="container"> <div class="container">
<ul class="bs-docs-social-buttons"> <ul class="bs-docs-social-buttons">
<li> <li>
<iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twitter&repo=bootstrap&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="112px" height="20px"></iframe> <iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twitter&repo=bootstrap&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
</li> </li>
<li> <li>
<iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twitter&repo=bootstrap&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="98px" height="20px"></iframe> <iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twitter&repo=bootstrap&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="98px" height="20px"></iframe>

View File

@ -3,7 +3,7 @@
<header class="jumbotron subhead" id="overview"> <header class="jumbotron subhead" id="overview">
<div class="container"> <div class="container">
<h1>{{_i}}JavaScript for Bootstrap{{/i}}</h1> <h1>{{_i}}JavaScript for Bootstrap{{/i}}</h1>
<p class="lead">{{_i}}Bring Bootstrap's components to life&mdash;now with 12 custom jQuery plugins.{{/i}} <p class="lead">{{_i}}Bring Bootstrap's components to life&mdash;now with 13 custom jQuery plugins.{{/i}}
</div> </div>
</header> </header>

View File

@ -170,8 +170,9 @@ input[type="submit"].btn {
} }
// IE7 has some default padding on button controls // IE7 has some default padding on button controls
*padding-top: 2px; *padding-top: 3px;
*padding-bottom: 2px; *padding-bottom: 3px;
&.btn-large { &.btn-large {
*padding-top: 7px; *padding-top: 7px;
*padding-bottom: 7px; *padding-bottom: 7px;

View File

@ -15,6 +15,7 @@
position: relative; position: relative;
height: 0; height: 0;
overflow: hidden; overflow: hidden;
overflow: visible \9;
.transition(height .35s ease); .transition(height .35s ease);
&.in { &.in {
height: auto; height: auto;

View File

@ -132,8 +132,9 @@ input[type="color"],
// Position radios and checkboxes better // Position radios and checkboxes better
input[type="radio"], input[type="radio"],
input[type="checkbox"] { input[type="checkbox"] {
margin: 4px 0; margin: 4px 0 0;
*margin-top: 0; /* IE7 */ *margin-top: 0; /* IE7 */
margin-top: 1px \9; /* IE8-9 */
line-height: normal; line-height: normal;
cursor: pointer; cursor: pointer;
} }
@ -151,9 +152,9 @@ input[type="checkbox"] {
// Set the height of select and file controls to match text inputs // Set the height of select and file controls to match text inputs
select, select,
input[type="file"] { input[type="file"] {
height: 28px; /* In IE7, the height of the select element cannot be changed by height, only font-size */ height: 30px; /* In IE7, the height of the select element cannot be changed by height, only font-size */
*margin-top: 4px; /* For IE7, add top margin to align select with labels */ *margin-top: 4px; /* For IE7, add top margin to align select with labels */
line-height: 28px; line-height: 30px;
} }
// Make select elements obey height by applying a border // Make select elements obey height by applying a border

View File

@ -154,11 +154,12 @@
.input-block-level { .input-block-level {
display: block; display: block;
width: 100%; width: 100%;
min-height: 28px; // Make inputs at least the height of their button counterpart min-height: 30px; // Make inputs at least the height of their button counterpart
.box-sizing(border-box); // Makes inputs behave like true block-level elements .box-sizing(border-box); // Makes inputs behave like true block-level elements
} }
// Mixin for form field states // Mixin for form field states
.formFieldState(@textColor: #555, @borderColor: #ccc, @backgroundColor: #f5f5f5) { .formFieldState(@textColor: #555, @borderColor: #ccc, @backgroundColor: #f5f5f5) {
// Set the text color // Set the text color
@ -605,7 +606,7 @@
.offset (@columns) { .offset (@columns) {
margin-left: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1)) + (@fluidGridGutterWidth*2); margin-left: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1)) + (@fluidGridGutterWidth*2);
*margin-left: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1)) - (.5 / @gridRowWidth * 100 * 1%) + (@fluidGridGutterWidth*2) - (.5 / @gridRowWidth * 100 * 1%); *margin-left: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1)) - (.5 / @gridRowWidth * 100 * 1%) + (@fluidGridGutterWidth*2) - (.5 / @gridRowWidth * 100 * 1%);
} }
.offsetFirstChild (@columns) { .offsetFirstChild (@columns) {

View File

@ -47,9 +47,7 @@
float: left; float: left;
display: block; display: block;
// Vertically center the text given @navbarHeight // Vertically center the text given @navbarHeight
@elementHeight: 20px; padding: ((@navbarHeight - @baseLineHeight) / 2) 20px ((@navbarHeight - @baseLineHeight) / 2);
@heightDifference: @navbarHeight - @elementHeight;
padding: ((@heightDifference / 2) - 2) 20px ((@heightDifference / 2) + 2);
margin-left: -20px; // negative indent to left-align the text down the page margin-left: -20px; // negative indent to left-align the text down the page
font-size: 20px; font-size: 20px;
font-weight: 200; font-weight: 200;
@ -153,6 +151,9 @@
left: 0; left: 0;
z-index: @zindexFixedNavbar; z-index: @zindexFixedNavbar;
margin-bottom: 0; // remove 18px margin for static navbar margin-bottom: 0; // remove 18px margin for static navbar
.navbar-inner {
border: 0;
}
} }
.navbar-fixed-top .navbar-inner, .navbar-fixed-top .navbar-inner,
.navbar-fixed-bottom .navbar-inner { .navbar-fixed-bottom .navbar-inner {
@ -161,6 +162,7 @@
.border-radius(0); .border-radius(0);
} }
// Reset container width
.navbar-fixed-top .container, .navbar-fixed-top .container,
.navbar-fixed-bottom .container { .navbar-fixed-bottom .container {
#grid > .core > .span(@gridColumns); #grid > .core > .span(@gridColumns);
@ -170,7 +172,6 @@
.navbar-fixed-top { .navbar-fixed-top {
top: 0; top: 0;
.navbar-inner { .navbar-inner {
border-width: 0 0 1px;
.box-shadow(0 1px 10px rgba(0,0,0,.1)); .box-shadow(0 1px 10px rgba(0,0,0,.1));
} }
} }
@ -179,7 +180,6 @@
.navbar-fixed-bottom { .navbar-fixed-bottom {
bottom: 0; bottom: 0;
.navbar-inner { .navbar-inner {
border-width: 1px 0 0;
.box-shadow(0 -1px 10px rgba(0,0,0,.1)); .box-shadow(0 -1px 10px rgba(0,0,0,.1));
} }
} }
@ -207,8 +207,7 @@
.navbar .nav > li > a { .navbar .nav > li > a {
float: none; float: none;
// Vertically center the text given @navbarHeight // Vertically center the text given @navbarHeight
@elementHeight: 20px; padding: ((@navbarHeight - @baseLineHeight) / 2) 15px ((@navbarHeight - @baseLineHeight) / 2);
padding: ((@navbarHeight - @elementHeight) / 2) 15px ((@navbarHeight - @elementHeight) / 2);
color: @navbarLinkColor; color: @navbarLinkColor;
text-decoration: none; text-decoration: none;
text-shadow: 0 1px 0 @navbarBackgroundHighlight; text-shadow: 0 1px 0 @navbarBackgroundHighlight;
@ -266,7 +265,7 @@
// -------------- // --------------
// Menu position and menu carets // Menu position and menu carets
.navbar .dropdown-menu { .navbar .nav > li > .dropdown-menu {
&:before { &:before {
content: ''; content: '';
display: inline-block; display: inline-block;
@ -290,7 +289,7 @@
} }
} }
// Menu position and menu caret support for dropups via extra dropup class // Menu position and menu caret support for dropups via extra dropup class
.navbar-fixed-bottom .dropdown-menu { .navbar-fixed-bottom .nav > li > .dropdown-menu {
&:before { &:before {
border-top: 7px solid #ccc; border-top: 7px solid #ccc;
border-top-color: @dropdownBorder; border-top-color: @dropdownBorder;
@ -325,8 +324,8 @@
} }
// Right aligned menus need alt position // Right aligned menus need alt position
.navbar .pull-right .dropdown-menu, .navbar .pull-right > li > .dropdown-menu,
.navbar .dropdown-menu.pull-right { .navbar .nav > li > .dropdown-menu.pull-right {
left: auto; left: auto;
right: 0; right: 0;
&:before { &:before {
@ -337,6 +336,13 @@
left: auto; left: auto;
right: 13px; right: 13px;
} }
.dropdown-menu {
left: auto;
right: 100%;
margin-left: 0;
margin-right: -1px;
.border-radius(6px 0 6px 6px);
}
} }

View File

@ -159,9 +159,11 @@ table {
// ------------ // ------------
// Placed here since it has to come after the potential zebra striping // Placed here since it has to come after the potential zebra striping
.table-hover { .table-hover {
tr:hover td, tbody {
tr:hover th { tr:hover td,
background-color: @tableBackgroundHover; tr:hover th {
background-color: @tableBackgroundHover;
}
} }
} }

View File

@ -27,7 +27,7 @@
.thumbnail { .thumbnail {
display: block; display: block;
padding: 4px; padding: 4px;
line-height: 20px; line-height: @baseLineHeight;
border: 1px solid #ddd; border: 1px solid #ddd;
.border-radius(4px); .border-radius(4px);
.box-shadow(0 1px 3px rgba(0,0,0,.055)); .box-shadow(0 1px 3px rgba(0,0,0,.055));