body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
- line-height: 1.428;
+ line-height: 1.428571429;
color: #333333;
background-color: #ffffff;
}
.h4,
.h5,
.h6 {
- font-family: inherit;
font-weight: 500;
line-height: 1.1;
}
}
li {
- line-height: 1.428;
+ line-height: 1.428571429;
}
.list-unstyled {
dt,
dd {
- line-height: 1.428;
+ line-height: 1.428571429;
}
dt {
blockquote small {
display: block;
- line-height: 1.428;
+ line-height: 1.428571429;
color: #999999;
}
display: block;
margin-bottom: 20px;
font-style: normal;
- line-height: 1.428;
+ line-height: 1.428571429;
}
code,
padding: 9.5px;
margin: 0 0 10px;
font-size: 13px;
- line-height: 1.428;
+ line-height: 1.428571429;
word-break: break-all;
word-wrap: break-word;
white-space: pre;
.table thead > tr > td,
.table tbody > tr > td {
padding: 8px;
- line-height: 1.428;
+ line-height: 1.428571429;
vertical-align: top;
border-top: 1px solid #dddddd;
}
padding: 0;
margin-bottom: 20px;
font-size: 21px;
- line-height: 1.1;
+ line-height: inherit;
color: #333333;
border: 0;
border-bottom: 1px solid #e5e5e5;
input[type="tel"],
input[type="color"] {
display: block;
- min-height: 34px;
- padding: 6px 9px;
+ min-height: 36px;
+ padding: 8px 12px;
font-size: 14px;
- line-height: 1.428;
+ line-height: 1.428571429;
color: #555555;
vertical-align: middle;
background-color: #ffffff;
select,
input[type="file"] {
- height: 34px;
+ height: 36px;
/* In IE7, the height of the select element cannot be changed by height, only font-size. TODO: Check if this is still needed when dropping IE7 support */
- line-height: 34px;
+ line-height: 36px;
}
select[multiple],
input[type="search"].input-large,
input[type="tel"].input-large,
input[type="color"].input-large {
- padding: 11px 14px;
+ padding: 14px 16px;
font-size: 18px;
border-radius: 6px;
}
input[type="search"].input-small,
input[type="tel"].input-small,
input[type="color"].input-small {
- min-height: 26px;
- padding: 2px 10px;
+ min-height: 30px;
+ padding: 5px 10px;
font-size: 12px;
border-radius: 3px;
}
padding: 6px 8px;
font-size: 14px;
font-weight: normal;
- line-height: 1.428;
+ line-height: 1.428571429;
text-align: center;
text-shadow: 0 1px 0 #fff;
background-color: #eeeeee;
}
.input-group-addon.input-small {
- padding: 2px 10px;
+ padding: 5px 10px;
font-size: 12px;
border-radius: 3px;
}
.input-group-addon.input-large {
- padding: 11px 14px;
+ padding: 14px 16px;
font-size: 18px;
border-radius: 6px;
}
.btn {
display: inline-block;
- padding: 6px 12px;
+ padding: 8px 12px;
margin-bottom: 0;
font-size: 14px;
font-weight: 500;
- line-height: 1.428;
+ line-height: 1.428571429;
text-align: center;
white-space: nowrap;
vertical-align: middle;
}
.btn-large {
- padding: 11px 14px;
+ padding: 14px 16px;
font-size: 18px;
border-radius: 6px;
}
.btn-small {
- padding: 2px 10px;
+ padding: 5px 10px;
font-size: 12px;
- border-radius: 3px;
-}
-
-.btn-mini {
- padding: 0 6px;
- font-size: 11px;
+ line-height: 1.5;
border-radius: 3px;
}
padding: 3px 20px;
clear: both;
font-weight: normal;
- line-height: 1.428;
+ line-height: 1.428571429;
color: #333333;
white-space: nowrap;
}
.nav-tabs > li > a {
margin-right: 2px;
- line-height: 1.428;
+ line-height: 1.428571429;
border: 1px solid transparent;
border-radius: 4px 4px 0 0;
}
padding: 3px 15px;
font-size: 11px;
font-weight: bold;
- line-height: 1.428;
+ line-height: 1.428571429;
color: #999999;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
text-transform: uppercase;
}
.navbar-btn {
- margin-top: 8px;
+ margin-top: 7px;
}
.navbar-text {
.pagination > li > span {
float: left;
padding: 4px 12px;
- line-height: 1.428;
+ line-height: 1.428571429;
text-decoration: none;
background-color: #ffffff;
border: 1px solid #dddddd;
.pagination-large > li > a,
.pagination-large > li > span {
- padding: 11px 14px;
+ padding: 14px 16px;
font-size: 18px;
}
border-bottom-right-radius: 6px;
}
-.pagination-mini > li:first-child > a,
+.pagination-small > li > a,
+.pagination-small > li > span {
+ padding: 5px 10px;
+ font-size: 12px;
+}
+
.pagination-small > li:first-child > a,
-.pagination-mini > li:first-child > span,
.pagination-small > li:first-child > span {
border-bottom-left-radius: 3px;
border-top-left-radius: 3px;
}
-.pagination-mini > li:last-child > a,
.pagination-small > li:last-child > a,
-.pagination-mini > li:last-child > span,
.pagination-small > li:last-child > span {
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
}
-.pagination-small > li > a,
-.pagination-small > li > span {
- padding: 2px 10px;
- font-size: 12px;
-}
-
-.pagination-mini > li > a,
-.pagination-mini > li > span {
- padding: 0 6px;
- font-size: 11px;
-}
-
.pager {
margin: 20px 0;
text-align: center;
}
.modal-header {
- min-height: 16.428px;
+ min-height: 16.428571429px;
padding: 15px;
border-bottom: 1px solid #e5e5e5;
}
.modal-title {
margin: 0;
- line-height: 1.428;
+ line-height: 1.428571429;
}
.modal-body {
.thumbnail,
.img-thumbnail {
padding: 4px;
- line-height: 1.428;
+ line-height: 1.428571429;
background-color: #ffffff;
border: 1px solid #dddddd;
border-radius: 4px;
margin-bottom: 30px;
font-size: 21px;
font-weight: 200;
- line-height: 2.142;
+ line-height: 2.1428571435;
color: inherit;
background-color: #eeeeee;
}
margin: 0;
}
+/* Forms */
+.bs-example-control-sizing input[type="text"] + input[type="text"] {
+ margin-top: 10px;
+}
+
/* List groups */
.bs-example > .list-group {
max-width: 400px;
{% endhighlight %}
<h3 id="btn-dropdowns-sizes">Works with all button sizes</h3>
- <p>Button dropdowns work at any size: <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code>.</p>
+ <p>Button dropdowns work with buttons of all sizes.</p>
<div class="bs-example">
<div class="btn-toolbar" style="margin: 0;">
<div class="btn-group">
<li><a href="#">Separated link</a></li>
</ul>
</div><!-- /btn-group -->
- <div class="btn-group">
- <button class="btn btn-default btn-mini dropdown-toggle" type="button" data-toggle="dropdown">
- Mini button <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><!-- /btn-group -->
</div><!-- /btn-toolbar -->
</div><!-- /example -->
{% highlight html %}
...
</ul>
</div>
-
-<!-- Mini button group -->
-<div class="btn-group">
- <button class="btn btn-default btn-mini dropdown-toggle" type="button" data-toggle="dropdown">
- Mini button <span class="caret"></span>
- </button>
- <ul class="dropdown-menu">
- ...
- </ul>
</div>
{% endhighlight %}
<h3>Sizes</h3>
- <p>Fancy larger or smaller pagination? Add <code>.pagination-large</code>, <code>.pagination-small</code>, or <code>.pagination-mini</code> for additional sizes.</p>
+ <p>Fancy larger or smaller pagination? Add <code>.pagination-large</code> or <code>.pagination-small</code> for additional sizes.</p>
<div class="bs-example">
<div>
<ul class="pagination pagination-large">
<li><a href="#">»</a></li>
</ul>
</div>
- <div>
- <ul class="pagination pagination-mini">
- <li><a href="#">«</a></li>
- <li><a href="#">1</a></li>
- <li><a href="#">2</a></li>
- <li><a href="#">3</a></li>
- <li><a href="#">4</a></li>
- <li><a href="#">5</a></li>
- <li><a href="#">»</a></li>
- </ul>
- </div>
</div>
{% highlight html %}
<ul class="pagination pagination-large">...</ul>
<ul class="pagination pagination">...</ul>
<ul class="pagination pagination-small">...</ul>
-<ul class="pagination pagination-mini">...</ul>
{% endhighlight %}
<h4>Relative sizing</h4>
<p>Create larger or smaller form controls that match button sizes.</p>
- <form class="bs-example" style="padding-bottom: 15px;">
+ <form class="bs-example bs-example-control-sizing">
<div class="controls docs-input-sizes">
<input class="input-large" type="text" placeholder=".input-large">
<input type="text" placeholder="Default input">
{% endhighlight %}
<h2 id="buttons-sizes">Button sizes</h2>
- <p>Fancy larger or smaller buttons? Add <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code> for additional sizes.</p>
+ <p>Fancy larger or smaller buttons? Add <code>.btn-large</code> or <code>.btn-small</code> for additional sizes.</p>
<div class="bs-example">
<p>
<button type="button" class="btn btn-primary btn-large">Large button</button>
<button type="button" class="btn btn-primary btn-small">Small button</button>
<button type="button" class="btn btn-default btn-small">Small button</button>
</p>
- <p>
- <button type="button" class="btn btn-primary btn-mini">Mini button</button>
- <button type="button" class="btn btn-default btn-mini">Mini button</button>
- </p>
</div>
{% highlight html %}
<p>
<button type="button" class="btn btn-primary btn-small">Small button</button>
<button type="button" class="btn btn-default btn-small">Small button</button>
</p>
-<p>
- <button type="button" class="btn btn-primary btn-mini">Mini button</button>
- <button type="button" class="btn btn-default btn-mini">Mini button</button>
-</p>
{% endhighlight %}
<p>Create block level buttons—those that span the full width of a parent— by adding <code>.btn-block</code>.</p>
// Core styles
.btn {
display: inline-block;
- padding: 6px 12px;
+ padding: @padding-base-vertical @padding-base-horizontal;
margin-bottom: 0; // For input.btn
font-size: @font-size-base;
font-weight: 500;
// --------------------------------------------------
.btn-large {
- padding: @padding-large;
+ padding: @padding-large-vertical @padding-large-horizontal;
font-size: @font-size-large;
border-radius: @border-radius-large;
}
.btn-small {
- padding: @padding-small;
+ padding: @padding-small-vertical @padding-small-horizontal;
font-size: @font-size-small;
- border-radius: @border-radius-small;
-}
-.btn-mini {
- padding: @padding-mini;
- font-size: @font-size-mini;
+ line-height: 1.5; // ensure proper height of button next to small input
border-radius: @border-radius-small;
}
padding: 0;
margin-bottom: @line-height-computed;
font-size: (@font-size-base * 1.5);
- line-height: @line-height-headings;
+ line-height: inherit;
color: @gray-dark;
border: 0;
border-bottom: 1px solid #e5e5e5;
input[type="color"] {
display: block;
min-height: @input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
- padding: 6px 9px;
+ padding: @padding-base-vertical @padding-base-horizontal;
font-size: @font-size-base;
line-height: @line-height-base;
color: @gray;
input[type="tel"],
input[type="color"] {
&.input-large {
- padding: @padding-large;
+ padding: @padding-large-vertical @padding-large-horizontal;
font-size: @font-size-large;
border-radius: @border-radius-large;
}
&.input-small {
min-height: @input-height-small;
- padding: @padding-small;
+ padding: @padding-small-vertical @padding-small-horizontal;
font-size: @font-size-small;
border-radius: @border-radius-small;
}
border-radius: @border-radius-base;
&.input-small {
- padding: @padding-small;
+ padding: @padding-small-vertical @padding-small-horizontal;
font-size: @font-size-small;
- border-radius: @border-radius-small; }
+ border-radius: @border-radius-small;
+ }
&.input-large {
- padding: @padding-large;
+ padding: @padding-large-vertical @padding-large-horizontal;
font-size: @font-size-large;
border-radius: @border-radius-large;
}
.pagination-large {
> li > a,
> li > span {
- padding: @padding-large;
+ padding: @padding-large-vertical @padding-large-horizontal;
font-size: @font-size-large;
}
> li:first-child > a,
}
}
-// Small and mini
-.pagination-mini,
+// Small
.pagination-small {
+ > li > a,
+ > li > span {
+ padding: @padding-small-vertical @padding-small-horizontal;
+ font-size: @font-size-small;
+ }
> li:first-child > a,
> li:first-child > span {
.border-left-radius(@border-radius-small);
.border-right-radius(@border-radius-small);
}
}
-
-// Small
-.pagination-small {
- > li > a,
- > li > span {
- padding: @padding-small;
- font-size: @font-size-small;
- }
-}
-// Mini
-.pagination-mini {
- > li > a,
- > li > span {
- padding: @padding-mini;
- font-size: @font-size-mini;
- }
-}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
- font-family: @headings-font-family;
font-weight: @headings-font-weight;
- line-height: @line-height-headings;
+ line-height: @headings-line-height;
small {
font-weight: normal;
line-height: 1;
@font-size-small: ceil(@font-size-base * 0.85); // ~12px
@font-size-mini: ceil(@font-size-base * 0.75); // ~11px
-@line-height-base: 1.428; // 20/14
-@line-height-computed: ceil(@font-size-base * @line-height-base); // ~20px
-@line-height-headings: 1.1;
+@line-height-base: 1.428571429; // 20/14
+@line-height-computed: floor(@font-size-base * @line-height-base); // ~20px
-@headings-font-family: inherit; // empty to use BS default, @font-family-base
@headings-font-weight: 500;
+@headings-line-height: 1.1;
// Components
// -------------------------
-// Based on 14px font-size and 1.5 line-height
+// Based on 14px font-size and 1.428 line-height (~20px to start)
-@padding-large: 11px 14px; // 44px
-@padding-small: 2px 10px; // 26px
-@padding-mini: 0 6px; // 22px
+@padding-base-vertical: 8px;
+@padding-base-horizontal: 12px;
-@border-radius-base: 4px;
-@border-radius-large: 6px;
-@border-radius-small: 3px;
+@padding-large-vertical: 14px;
+@padding-large-horizontal: 16px;
+
+@padding-small-vertical: 5px;
+@padding-small-horizontal: 10px;
+
+@border-radius-base: 4px;
+@border-radius-large: 6px;
+@border-radius-small: 3px;
@component-active-bg: @brand-primary;
@input-color-placeholder: @gray-light;
-@input-height-base: (@line-height-computed + 14px); // base line-height + 12px vertical padding + 2px top/bottom border
-@input-height-large: (@line-height-computed + 24px); // base line-height + 22px vertical padding + 2px top/bottom border
-@input-height-small: (@line-height-computed + 6px); // base line-height + 4px vertical padding + 2px top/bottom border
+@input-height-base: (@line-height-computed + (@padding-base-vertical * 2));
+@input-height-large: (@line-height-computed + (@padding-large-vertical * 2));
+@input-height-small: (@line-height-computed + (@padding-small-vertical * 2));
-@form-actions-bg: #f5f5f5;
+@form-actions-bg: #f5f5f5;
// Dropdowns