0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-19 16:54:24 +01:00

more consistent variable naming patterns

This commit is contained in:
Mark Otto 2012-11-30 14:45:25 -08:00
parent 7a3d15eb21
commit b0e2b5813d
33 changed files with 221 additions and 219 deletions

View File

@ -131,7 +131,7 @@
<pre class="prettyprint">&lt;p class="lead"&gt;...&lt;/p&gt;</pre> <pre class="prettyprint">&lt;p class="lead"&gt;...&lt;/p&gt;</pre>
<h3>Built with Less</h3> <h3>Built with Less</h3>
<p>The typographic scale is based on two LESS variables in <strong>variables.less</strong>: <code>@base-font-size</code> and <code>@base-line-height</code>. The first is the base font-size used throughout and the second is the base line-height. We use those variables and some simple math to create the margins, paddings, and line-heights of all our type and more. Customize them and Bootstrap adapts.</p> <p>The typographic scale is based on two LESS variables in <strong>variables.less</strong>: <code>@font-size-base</code> and <code>@line-height-base</code>. The first is the base font-size used throughout and the second is the base line-height. We use those variables and some simple math to create the margins, paddings, and line-heights of all our type and more. Customize them and Bootstrap adapts.</p>
<hr class="bs-docs-separator"> <hr class="bs-docs-separator">

View File

@ -296,13 +296,15 @@
<label>@font-family-monospace</label> <label>@font-family-monospace</label>
<input type="text" class="span3" placeholder="Menlo, Monaco, 'Courier New', monospace"> <input type="text" class="span3" placeholder="Menlo, Monaco, 'Courier New', monospace">
<label>@base-font-size</label> <label>@font-size-base</label>
<input type="text" class="span3" placeholder="14px"> <input type="text" class="span3" placeholder="14px">
<label>@base-font-family</label> <label>@font-family-base</label>
<input type="text" class="span3" placeholder="@font-family-sans-serif"> <input type="text" class="span3" placeholder="@font-family-sans-serif">
<label>@base-line-height</label> <label>@line-height-base</label>
<input type="text" class="span3" placeholder="20px"> <input type="text" class="span3" placeholder="20px">
<label>@altFontFamily</label>
<input type="text" class="span3" placeholder="@font-family-serif">
<label>@headings-font-family</label> <label>@headings-font-family</label>
<input type="text" class="span3" placeholder="inherit"> <input type="text" class="span3" placeholder="inherit">
<label>@headings-font-weight</label> <label>@headings-font-weight</label>
@ -310,25 +312,25 @@
<label>@headingsColor</label> <label>@headingsColor</label>
<input type="text" class="span3" placeholder="inherit"> <input type="text" class="span3" placeholder="inherit">
<label>@fontSizeLarge</label> <label>@font-size-large</label>
<input type="text" class="span3" placeholder="@base-font-size * 1.25"> <input type="text" class="span3" placeholder="@font-size-base * 1.25">
<label>@fontSizeSmall</label> <label>@font-size-small</label>
<input type="text" class="span3" placeholder="@base-font-size * 0.85"> <input type="text" class="span3" placeholder="@font-size-base * 0.85">
<label>@fontSizeMini</label> <label>@font-size-mini</label>
<input type="text" class="span3" placeholder="@base-font-size * 0.75"> <input type="text" class="span3" placeholder="@font-size-base * 0.75">
<label>@paddingLarge</label> <label>@padding-large</label>
<input type="text" class="span3" placeholder="11px 19px"> <input type="text" class="span3" placeholder="11px 19px">
<label>@paddingSmall</label> <label>@padding-small</label>
<input type="text" class="span3" placeholder="2px 10px"> <input type="text" class="span3" placeholder="2px 10px">
<label>@paddingMini</label> <label>@padding-mini</label>
<input type="text" class="span3" placeholder="1px 6px"> <input type="text" class="span3" placeholder="1px 6px">
<label>@baseBorderRadius</label> <label>@border-radius-base</label>
<input type="text" class="span3" placeholder="4px"> <input type="text" class="span3" placeholder="4px">
<label>@borderRadiusLarge</label> <label>@border-radius-large</label>
<input type="text" class="span3" placeholder="6px"> <input type="text" class="span3" placeholder="6px">
<label>@borderRadiusSmall</label> <label>@border-radius-small</label>
<input type="text" class="span3" placeholder="3px"> <input type="text" class="span3" placeholder="3px">
<label>@heroUnitBackground</label> <label>@heroUnitBackground</label>

View File

@ -113,7 +113,7 @@
<ul> <ul>
<li>Remove <code>margin</code> on the body</li> <li>Remove <code>margin</code> on the body</li>
<li>Set <code>background-color: white;</code> on the <code>body</code></li> <li>Set <code>background-color: white;</code> on the <code>body</code></li>
<li>Use the <code>@base-font-family</code>, <code>@base-font-size</code>, and <code>@base-line-height</code> attributes as our typographic base</li> <li>Use the <code>@font-family-base</code>, <code>@font-size-base</code>, and <code>@line-height-base</code> attributes as our typographic base</li>
<li>Set the global link color via <code>@link-color</code> and apply link underlines only on <code>:hover</code></li> <li>Set the global link color via <code>@link-color</code> and apply link underlines only on <code>:hover</code></li>
</ul> </ul>
<p>These styles can be found within <strong>scaffolding.less</strong>.</p> <p>These styles can be found within <strong>scaffolding.less</strong>.</p>

View File

@ -67,7 +67,7 @@
{{! Using LESS }} {{! Using LESS }}
<h3>{{_i}}Built with Less{{/i}}</h3> <h3>{{_i}}Built with Less{{/i}}</h3>
<p>{{_i}}The typographic scale is based on two LESS variables in <strong>variables.less</strong>: <code>@base-font-size</code> and <code>@base-line-height</code>. The first is the base font-size used throughout and the second is the base line-height. We use those variables and some simple math to create the margins, paddings, and line-heights of all our type and more. Customize them and Bootstrap adapts.{{/i}}</p> <p>{{_i}}The typographic scale is based on two LESS variables in <strong>variables.less</strong>: <code>@font-size-base</code> and <code>@line-height-base</code>. The first is the base font-size used throughout and the second is the base line-height. We use those variables and some simple math to create the margins, paddings, and line-heights of all our type and more. Customize them and Bootstrap adapts.{{/i}}</p>
<hr class="bs-docs-separator"> <hr class="bs-docs-separator">

View File

@ -228,11 +228,11 @@
<label>@font-family-monospace</label> <label>@font-family-monospace</label>
<input type="text" class="span3" placeholder="Menlo, Monaco, 'Courier New', monospace"> <input type="text" class="span3" placeholder="Menlo, Monaco, 'Courier New', monospace">
<label>@base-font-size</label> <label>@font-size-base</label>
<input type="text" class="span3" placeholder="14px"> <input type="text" class="span3" placeholder="14px">
<label>@base-font-family</label> <label>@font-family-base</label>
<input type="text" class="span3" placeholder="@font-family-sans-serif"> <input type="text" class="span3" placeholder="@font-family-sans-serif">
<label>@base-line-height</label> <label>@line-height-base</label>
<input type="text" class="span3" placeholder="20px"> <input type="text" class="span3" placeholder="20px">
<label>@headings-font-family</label> <label>@headings-font-family</label>
@ -242,25 +242,25 @@
<label>@headingsColor</label> <label>@headingsColor</label>
<input type="text" class="span3" placeholder="inherit"> <input type="text" class="span3" placeholder="inherit">
<label>@fontSizeLarge</label> <label>@font-size-large</label>
<input type="text" class="span3" placeholder="@base-font-size * 1.25"> <input type="text" class="span3" placeholder="@font-size-base * 1.25">
<label>@fontSizeSmall</label> <label>@font-size-small</label>
<input type="text" class="span3" placeholder="@base-font-size * 0.85"> <input type="text" class="span3" placeholder="@font-size-base * 0.85">
<label>@fontSizeMini</label> <label>@font-size-mini</label>
<input type="text" class="span3" placeholder="@base-font-size * 0.75"> <input type="text" class="span3" placeholder="@font-size-base * 0.75">
<label>@paddingLarge</label> <label>@padding-large</label>
<input type="text" class="span3" placeholder="11px 19px"> <input type="text" class="span3" placeholder="11px 19px">
<label>@paddingSmall</label> <label>@padding-small</label>
<input type="text" class="span3" placeholder="2px 10px"> <input type="text" class="span3" placeholder="2px 10px">
<label>@paddingMini</label> <label>@padding-mini</label>
<input type="text" class="span3" placeholder="1px 6px"> <input type="text" class="span3" placeholder="1px 6px">
<label>@baseBorderRadius</label> <label>@border-radius-base</label>
<input type="text" class="span3" placeholder="4px"> <input type="text" class="span3" placeholder="4px">
<label>@borderRadiusLarge</label> <label>@border-radius-large</label>
<input type="text" class="span3" placeholder="6px"> <input type="text" class="span3" placeholder="6px">
<label>@borderRadiusSmall</label> <label>@border-radius-small</label>
<input type="text" class="span3" placeholder="3px"> <input type="text" class="span3" placeholder="3px">
<label>@heroUnitBackground</label> <label>@heroUnitBackground</label>

View File

@ -45,7 +45,7 @@
<ul> <ul>
<li>{{_i}}Remove <code>margin</code> on the body{{/i}}</li> <li>{{_i}}Remove <code>margin</code> on the body{{/i}}</li>
<li>{{_i}}Set <code>background-color: white;</code> on the <code>body</code>{{/i}}</li> <li>{{_i}}Set <code>background-color: white;</code> on the <code>body</code>{{/i}}</li>
<li>{{_i}}Use the <code>@base-font-family</code>, <code>@base-font-size</code>, and <code>@base-line-height</code> attributes as our typographic base{{/i}}</li> <li>{{_i}}Use the <code>@font-family-base</code>, <code>@font-size-base</code>, and <code>@line-height-base</code> attributes as our typographic base{{/i}}</li>
<li>{{_i}}Set the global link color via <code>@link-color</code> and apply link underlines only on <code>:hover</code>{{/i}}</li> <li>{{_i}}Set the global link color via <code>@link-color</code> and apply link underlines only on <code>:hover</code>{{/i}}</li>
</ul> </ul>
<p>{{_i}}These styles can be found within <strong>scaffolding.less</strong>.{{/i}}</p> <p>{{_i}}These styles can be found within <strong>scaffolding.less</strong>.{{/i}}</p>

View File

@ -5,14 +5,14 @@
// Parent container // Parent container
.accordion { .accordion {
margin-bottom: @base-line-height; margin-bottom: @line-height-base;
} }
// Group == heading + body // Group == heading + body
.accordion-group { .accordion-group {
margin-bottom: 2px; margin-bottom: 2px;
border: 1px solid #e5e5e5; border: 1px solid #e5e5e5;
border-radius: @baseBorderRadius; border-radius: @border-radius-base;
} }
.accordion-heading { .accordion-heading {
border-bottom: 0; border-bottom: 0;

View File

@ -8,11 +8,11 @@
.alert { .alert {
padding: 8px 35px 8px 14px; padding: 8px 35px 8px 14px;
margin-bottom: @base-line-height; margin-bottom: @line-height-base;
text-shadow: 0 1px 0 rgba(255,255,255,.5); text-shadow: 0 1px 0 rgba(255,255,255,.5);
background-color: @warningBackground; background-color: @warningBackground;
border: 1px solid @warningBorder; border: 1px solid @warningBorder;
border-radius: @baseBorderRadius; border-radius: @border-radius-base;
} }
.alert, .alert,
.alert h4 { .alert h4 {
@ -28,7 +28,7 @@
position: relative; position: relative;
top: -2px; top: -2px;
right: -21px; right: -21px;
line-height: @base-line-height; line-height: @line-height-base;
} }

View File

@ -5,10 +5,10 @@
.breadcrumb { .breadcrumb {
padding: 8px 15px; padding: 8px 15px;
margin: 0 0 @base-line-height; margin: 0 0 @line-height-base;
list-style: none; list-style: none;
background-color: #f5f5f5; background-color: #f5f5f5;
border-radius: @baseBorderRadius; border-radius: @border-radius-base;
li { li {
display: inline-block; display: inline-block;
text-shadow: 0 1px 0 @white; text-shadow: 0 1px 0 @white;

View File

@ -20,8 +20,8 @@
// Optional: Group multiple button groups together for a toolbar // Optional: Group multiple button groups together for a toolbar
.btn-toolbar { .btn-toolbar {
font-size: 0; // Hack to remove whitespace that results from using inline-block font-size: 0; // Hack to remove whitespace that results from using inline-block
margin-top: @base-line-height / 2; margin-top: @line-height-base / 2;
margin-bottom: @base-line-height / 2; margin-bottom: @line-height-base / 2;
> .btn + .btn, > .btn + .btn,
> .btn-group + .btn, > .btn-group + .btn,
> .btn + .btn-group { > .btn + .btn-group {
@ -40,42 +40,42 @@
.btn-group > .btn, .btn-group > .btn,
.btn-group > .dropdown-menu, .btn-group > .dropdown-menu,
.btn-group > .popover { .btn-group > .popover {
font-size: @base-font-size; // redeclare as part 2 of font-size inline-block hack font-size: @font-size-base; // redeclare as part 2 of font-size inline-block hack
} }
// Reset fonts for other sizes // Reset fonts for other sizes
.btn-group > .btn-mini { .btn-group > .btn-mini {
font-size: @fontSizeMini; font-size: @font-size-mini;
} }
.btn-group > .btn-small { .btn-group > .btn-small {
font-size: @fontSizeSmall; font-size: @font-size-small;
} }
.btn-group > .btn-large { .btn-group > .btn-large {
font-size: @fontSizeLarge; font-size: @font-size-large;
} }
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match // Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
.btn-group > .btn:first-child { .btn-group > .btn:first-child {
margin-left: 0; margin-left: 0;
.border-top-left-radius(@baseBorderRadius); .border-top-left-radius(@border-radius-base);
.border-bottom-left-radius(@baseBorderRadius); .border-bottom-left-radius(@border-radius-base);
} }
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it // Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
.btn-group > .btn:last-child, .btn-group > .btn:last-child,
.btn-group > .dropdown-toggle { .btn-group > .dropdown-toggle {
.border-top-right-radius(@baseBorderRadius); .border-top-right-radius(@border-radius-base);
.border-bottom-right-radius(@baseBorderRadius); .border-bottom-right-radius(@border-radius-base);
} }
// Reset corners for large buttons // Reset corners for large buttons
.btn-group > .btn.large:first-child { .btn-group > .btn.large:first-child {
margin-left: 0; margin-left: 0;
.border-top-left-radius(@borderRadiusLarge); .border-top-left-radius(@border-radius-large);
.border-bottom-left-radius(@borderRadiusLarge); .border-bottom-left-radius(@border-radius-large);
} }
.btn-group > .btn.large:last-child, .btn-group > .btn.large:last-child,
.btn-group > .large.dropdown-toggle { .btn-group > .large.dropdown-toggle {
.border-top-right-radius(@borderRadiusLarge); .border-top-right-radius(@border-radius-large);
.border-bottom-right-radius(@borderRadiusLarge); .border-bottom-right-radius(@border-radius-large);
} }
// On hover/focus/active, bring the proper btn to front // On hover/focus/active, bring the proper btn to front
@ -201,14 +201,14 @@
margin-top: -1px; margin-top: -1px;
} }
.btn-group-vertical .btn:first-child { .btn-group-vertical .btn:first-child {
border-radius: @baseBorderRadius @baseBorderRadius 0 0; border-radius: @border-radius-base @border-radius-base 0 0;
} }
.btn-group-vertical .btn:last-child { .btn-group-vertical .btn:last-child {
border-radius: 0 0 @baseBorderRadius @baseBorderRadius; border-radius: 0 0 @border-radius-base @border-radius-base;
} }
.btn-group-vertical .btn-large:first-child { .btn-group-vertical .btn-large:first-child {
border-radius: @borderRadiusLarge @borderRadiusLarge 0 0; border-radius: @border-radius-large @border-radius-large 0 0;
} }
.btn-group-vertical .btn-large:last-child { .btn-group-vertical .btn-large:last-child {
border-radius: 0 0 @borderRadiusLarge @borderRadiusLarge; border-radius: 0 0 @border-radius-large @border-radius-large;
} }

View File

@ -11,15 +11,15 @@
display: inline-block; display: inline-block;
padding: 6px 12px; padding: 6px 12px;
margin-bottom: 0; // For input.btn margin-bottom: 0; // For input.btn
font-size: @base-font-size; font-size: @font-size-base;
line-height: @base-line-height; line-height: @line-height-base;
text-align: center; text-align: center;
vertical-align: middle; vertical-align: middle;
cursor: pointer; cursor: pointer;
.buttonBackground(@btnBackground, @btnBackgroundHighlight, @grayDark, 0 1px 1px rgba(255,255,255,.75)); .buttonBackground(@btnBackground, @btnBackgroundHighlight, @grayDark, 0 1px 1px rgba(255,255,255,.75));
border: 1px solid @btnBorder; border: 1px solid @btnBorder;
border-bottom-color: darken(@btnBorder, 10%); border-bottom-color: darken(@btnBorder, 10%);
border-radius: @baseBorderRadius; border-radius: @border-radius-base;
.box-shadow(~"inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)"); .box-shadow(~"inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
// Hover state // Hover state
@ -63,23 +63,23 @@
// Large // Large
.btn-large { .btn-large {
padding: @paddingLarge; padding: @padding-large;
font-size: @fontSizeLarge; font-size: @font-size-large;
border-radius: @borderRadiusLarge; border-radius: @border-radius-large;
} }
// Small // Small
.btn-small { .btn-small {
padding: @paddingSmall; padding: @padding-small;
font-size: @fontSizeSmall; font-size: @font-size-small;
border-radius: @borderRadiusSmall; border-radius: @border-radius-small;
} }
// Mini // Mini
.btn-mini { .btn-mini {
padding: @paddingMini; padding: @padding-mini;
font-size: @fontSizeMini; font-size: @font-size-mini;
border-radius: @borderRadiusSmall; border-radius: @border-radius-small;
} }

View File

@ -5,7 +5,7 @@
.carousel { .carousel {
position: relative; position: relative;
margin-bottom: @base-line-height; margin-bottom: @line-height-base;
line-height: 1; line-height: 1;
} }
@ -137,7 +137,7 @@
.carousel-caption h3, .carousel-caption h3,
.carousel-caption p { .carousel-caption p {
color: @white; color: @white;
line-height: @base-line-height; line-height: @line-height-base;
} }
.carousel-caption h3 { .carousel-caption h3 {
margin: 0 0 5px; margin: 0 0 5px;

View File

@ -7,7 +7,7 @@
float: right; float: right;
font-size: 20px; font-size: 20px;
font-weight: bold; font-weight: bold;
line-height: @base-line-height; line-height: @line-height-base;
color: @black; color: @black;
text-shadow: 0 1px 0 rgba(255,255,255,1); text-shadow: 0 1px 0 rgba(255,255,255,1);
.opacity(20); .opacity(20);

View File

@ -8,7 +8,7 @@ code,
pre { pre {
padding: 0 3px 2px; padding: 0 3px 2px;
#font > #family > .monospace; #font > #family > .monospace;
font-size: @base-font-size - 2; font-size: @font-size-base - 2;
color: @grayDark; color: @grayDark;
border-radius: 4px; border-radius: 4px;
} }
@ -25,10 +25,10 @@ code {
// Blocks of code // Blocks of code
pre { pre {
display: block; display: block;
padding: (@base-line-height - 1) / 2; padding: (@line-height-base - 1) / 2;
margin: 0 0 @base-line-height / 2; margin: 0 0 @line-height-base / 2;
font-size: @base-font-size - 1; // 14px to 13px font-size: @font-size-base - 1; // 14px to 13px
line-height: @base-line-height; line-height: @line-height-base;
word-break: break-all; word-break: break-all;
word-wrap: break-word; word-wrap: break-word;
white-space: pre; white-space: pre;
@ -36,11 +36,11 @@ pre {
background-color: #f5f5f5; background-color: #f5f5f5;
border: 1px solid #ccc; // IE8 fallback border: 1px solid #ccc; // IE8 fallback
border: 1px solid rgba(0,0,0,.15); border: 1px solid rgba(0,0,0,.15);
border-radius: @baseBorderRadius; border-radius: @border-radius-base;
// Make prettyprint styles more spaced out for readability // Make prettyprint styles more spaced out for readability
&.prettyprint { &.prettyprint {
margin-bottom: @base-line-height; margin-bottom: @line-height-base;
} }
// Account for some code outputs that place code tags in pre tags // Account for some code outputs that place code tags in pre tags

View File

@ -48,7 +48,7 @@
background-color: @dropdownBackground; background-color: @dropdownBackground;
border: 1px solid #ccc; // IE8 fallback border: 1px solid #ccc; // IE8 fallback
border: 1px solid @dropdownBorder; border: 1px solid @dropdownBorder;
border-radius: @baseBorderRadius; border-radius: @border-radius-base;
.box-shadow(0 5px 10px rgba(0,0,0,.2)); .box-shadow(0 5px 10px rgba(0,0,0,.2));
.background-clip(padding-box); .background-clip(padding-box);
@ -69,7 +69,7 @@
padding: 3px 20px; padding: 3px 20px;
clear: both; clear: both;
font-weight: normal; font-weight: normal;
line-height: @base-line-height; line-height: @line-height-base;
color: @dropdownLinkColor; color: @dropdownLinkColor;
white-space: nowrap; white-space: nowrap;
} }

View File

@ -7,7 +7,7 @@
// ------------------------- // -------------------------
form { form {
margin: 0 0 @base-line-height; margin: 0 0 @line-height-base;
} }
fieldset { fieldset {
@ -20,9 +20,9 @@ legend {
display: block; display: block;
width: 100%; width: 100%;
padding: 0; padding: 0;
margin-bottom: @base-line-height; margin-bottom: @line-height-base;
font-size: @base-font-size * 1.5; font-size: @font-size-base * 1.5;
line-height: @base-line-height * 2; line-height: @line-height-base * 2;
color: @grayDark; color: @grayDark;
border: 0; border: 0;
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
@ -59,9 +59,9 @@ input[type="color"],
.box-sizing(border-box); // Makes inputs behave like true block-level elements .box-sizing(border-box); // Makes inputs behave like true block-level elements
min-height: @inputHeight; // Make inputs at least the height of their button counterpart (base line-height + padding + border) min-height: @inputHeight; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
padding: 6px 9px; padding: 6px 9px;
margin-bottom: @base-line-height / 2; margin-bottom: @line-height-base / 2;
font-size: @base-font-size; font-size: @font-size-base;
line-height: @base-line-height; line-height: @line-height-base;
color: @gray; color: @gray;
vertical-align: middle; vertical-align: middle;
background-color: @inputBackground; background-color: @inputBackground;
@ -201,7 +201,7 @@ textarea {
.radio, .radio,
.checkbox { .checkbox {
display: block; display: block;
min-height: @base-line-height; // clear the floating input if there is no label text min-height: @line-height-base; // clear the floating input if there is no label text
padding-left: 20px; padding-left: 20px;
} }
.radio label, .radio label,
@ -257,21 +257,21 @@ input[type="tel"],
input[type="color"], input[type="color"],
.uneditable-input { .uneditable-input {
&.input-large { &.input-large {
padding: @paddingLarge; padding: @padding-large;
padding-left: 14px; padding-left: 14px;
padding-right: 14px; // TODO: Resolve this override padding-right: 14px; // TODO: Resolve this override
font-size: @fontSizeLarge; font-size: @font-size-large;
border-radius: @borderRadiusLarge; border-radius: @border-radius-large;
} }
&.input-small { &.input-small {
padding: @paddingSmall; padding: @padding-small;
font-size: @fontSizeSmall; font-size: @font-size-small;
border-radius: @borderRadiusSmall; border-radius: @border-radius-small;
} }
&.input-mini { &.input-mini {
padding: @paddingMini; padding: @padding-mini;
font-size: @fontSizeMini; font-size: @font-size-mini;
border-radius: @borderRadiusSmall; border-radius: @border-radius-small;
} }
} }
@ -390,9 +390,9 @@ select:focus:invalid {
// ------------ // ------------
.form-actions { .form-actions {
padding: (@base-line-height - 1) 20px @base-line-height; padding: (@line-height-base - 1) 20px @line-height-base;
margin-top: @base-line-height; margin-top: @line-height-base;
margin-bottom: @base-line-height; margin-bottom: @line-height-base;
background-color: @formActionsBackground; background-color: @formActionsBackground;
border-top: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5;
.clearfix(); // Adding clearfix to allow for .pull-right button containers .clearfix(); // Adding clearfix to allow for .pull-right button containers
@ -410,7 +410,7 @@ select:focus:invalid {
.help-block { .help-block {
display: block; // account for any element using help-block display: block; // account for any element using help-block
margin-bottom: @base-line-height / 2; margin-bottom: @line-height-base / 2;
} }
.help-inline { .help-inline {
@ -436,7 +436,7 @@ select:focus:invalid {
select, select,
.uneditable-input, .uneditable-input,
.dropdown-menu { .dropdown-menu {
font-size: @base-font-size; font-size: @font-size-base;
} }
input, input,
@ -445,7 +445,7 @@ select:focus:invalid {
position: relative; // placed here by default so that on :focus we can place the input above the .add-on for full border and box-shadow goodness position: relative; // placed here by default so that on :focus we can place the input above the .add-on for full border and box-shadow goodness
float: none; // Undo the float from grid sizing float: none; // Undo the float from grid sizing
margin: 0; // Prevent bottom margin from screwing up alignment in stacked forms margin: 0; // Prevent bottom margin from screwing up alignment in stacked forms
font-size: @base-font-size; font-size: @font-size-base;
vertical-align: top; vertical-align: top;
border-radius: 0 @inputBorderRadius @inputBorderRadius 0; border-radius: 0 @inputBorderRadius @inputBorderRadius 0;
// Make input on top when focused so blue border and shadow always show // Make input on top when focused so blue border and shadow always show
@ -461,12 +461,12 @@ select:focus:invalid {
.add-on { .add-on {
display: inline-block; display: inline-block;
width: auto; width: auto;
height: @base-line-height; height: @line-height-base;
min-width: 16px; min-width: 16px;
padding: 6px; padding: 6px;
font-size: @base-font-size; font-size: @font-size-base;
font-weight: normal; font-weight: normal;
line-height: @base-line-height; line-height: @line-height-base;
text-align: center; text-align: center;
text-shadow: 0 1px 0 @white; text-shadow: 0 1px 0 @white;
background-color: @grayLighter; background-color: @grayLighter;
@ -642,12 +642,12 @@ input.search-query {
// Margin to space out fieldsets // Margin to space out fieldsets
.control-group { .control-group {
margin-bottom: @base-line-height / 2; margin-bottom: @line-height-base / 2;
} }
// Legend collapses margin, so next element is responsible for spacing // Legend collapses margin, so next element is responsible for spacing
legend + .control-group { legend + .control-group {
margin-top: @base-line-height; margin-top: @line-height-base;
-webkit-margin-top-collapse: separate; -webkit-margin-top-collapse: separate;
} }
@ -657,7 +657,7 @@ legend + .control-group {
.form-horizontal { .form-horizontal {
// Increase spacing between groups // Increase spacing between groups
.control-group { .control-group {
margin-bottom: @base-line-height; margin-bottom: @line-height-base;
.clearfix(); .clearfix();
} }
// Float the labels left // Float the labels left
@ -683,7 +683,7 @@ legend + .control-group {
.input-prepend, .input-prepend,
.input-append { .input-append {
+ .help-block { + .help-block {
margin-top: @base-line-height / 2; margin-top: @line-height-base / 2;
} }
} }
// Move over buttons in .form-actions to align with .controls // Move over buttons in .form-actions to align with .controls

View File

@ -8,7 +8,7 @@
margin-bottom: 30px; margin-bottom: 30px;
font-size: 18px; font-size: 18px;
font-weight: 200; font-weight: 200;
line-height: @base-line-height * 1.5; line-height: @line-height-base * 1.5;
color: @heroUnitLeadColor; color: @heroUnitLeadColor;
background-color: @heroUnitBackground; background-color: @heroUnitBackground;
border-radius: 6px; border-radius: 6px;
@ -20,6 +20,6 @@
letter-spacing: -1px; letter-spacing: -1px;
} }
li { li {
line-height: @base-line-height * 1.5; // Reset since we specify in type.less line-height: @line-height-base * 1.5; // Reset since we specify in type.less
} }
} }

View File

@ -8,7 +8,7 @@
.badge { .badge {
display: inline-block; display: inline-block;
padding: 2px 4px; padding: 2px 4px;
font-size: @base-font-size * .846; font-size: @font-size-base * .846;
font-weight: bold; font-weight: bold;
line-height: 14px; // ensure proper line-height if floated line-height: 14px; // ensure proper line-height if floated
color: @white; color: @white;

View File

@ -101,20 +101,20 @@
font-family: @font-family-monospace; font-family: @font-family-monospace;
} }
} }
.shorthand(@size: @base-font-size, @weight: normal, @lineHeight: @base-line-height) { .shorthand(@size: @font-size-base, @weight: normal, @lineHeight: @line-height-base) {
font-size: @size; font-size: @size;
font-weight: @weight; font-weight: @weight;
line-height: @lineHeight; line-height: @lineHeight;
} }
.serif(@size: @base-font-size, @weight: normal, @lineHeight: @base-line-height) { .serif(@size: @font-size-base, @weight: normal, @lineHeight: @line-height-base) {
#font > #family > .serif; #font > #family > .serif;
#font > .shorthand(@size, @weight, @lineHeight); #font > .shorthand(@size, @weight, @lineHeight);
} }
.sans-serif(@size: @base-font-size, @weight: normal, @lineHeight: @base-line-height) { .sans-serif(@size: @font-size-base, @weight: normal, @lineHeight: @line-height-base) {
#font > #family > .sans-serif; #font > #family > .sans-serif;
#font > .shorthand(@size, @weight, @lineHeight); #font > .shorthand(@size, @weight, @lineHeight);
} }
.monospace(@size: @base-font-size, @weight: normal, @lineHeight: @base-line-height) { .monospace(@size: @font-size-base, @weight: normal, @lineHeight: @line-height-base) {
#font > #family > .monospace; #font > #family > .monospace;
#font > .shorthand(@size, @weight, @lineHeight); #font > .shorthand(@size, @weight, @lineHeight);
} }
@ -421,7 +421,7 @@
// Dividers (basically an hr) within dropdowns and nav lists // Dividers (basically an hr) within dropdowns and nav lists
.nav-divider(@top: #e5e5e5, @bottom: @white) { .nav-divider(@top: #e5e5e5, @bottom: @white) {
height: 1px; height: 1px;
margin: ((@base-line-height / 2) - 1) 1px; // 8px 1px margin: ((@line-height-base / 2) - 1) 1px; // 8px 1px
overflow: hidden; overflow: hidden;
background-color: @top; background-color: @top;
border-bottom: 1px solid @bottom; border-bottom: 1px solid @bottom;

View File

@ -10,10 +10,10 @@
.navbar { .navbar {
overflow: visible; overflow: visible;
padding: 0 20px; padding: 0 20px;
margin-bottom: @base-line-height; margin-bottom: @line-height-base;
#gradient > .vertical(@navbarBackgroundHighlight, @navbarBackground); #gradient > .vertical(@navbarBackgroundHighlight, @navbarBackground);
border: 1px solid @navbarBorder; border: 1px solid @navbarBorder;
border-radius: @baseBorderRadius; border-radius: @border-radius-base;
.box-shadow(0 1px 4px rgba(0,0,0,.065)); .box-shadow(0 1px 4px rgba(0,0,0,.065));
// Prevent floats from breaking the navbar // Prevent floats from breaking the navbar
@ -39,7 +39,7 @@
float: left; float: left;
display: block; display: block;
// Vertically center the text given @navbarHeight // Vertically center the text given @navbarHeight
padding: ((@navbarHeight - @base-line-height) / 2) 20px ((@navbarHeight - @base-line-height) / 2); padding: ((@navbarHeight - @line-height-base) / 2) 20px ((@navbarHeight - @line-height-base) / 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;
@ -215,7 +215,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
padding: ((@navbarHeight - @base-line-height) / 2) 15px ((@navbarHeight - @base-line-height) / 2); padding: ((@navbarHeight - @line-height-base) / 2) 15px ((@navbarHeight - @line-height-base) / 2);
color: @navbarLinkColor; color: @navbarLinkColor;
text-decoration: none; text-decoration: none;
text-shadow: 0 1px 0 @navbarBackgroundHighlight; text-shadow: 0 1px 0 @navbarBackgroundHighlight;

View File

@ -8,7 +8,7 @@
.nav { .nav {
margin-left: 0; margin-left: 0;
margin-bottom: @base-line-height; margin-bottom: @line-height-base;
list-style: none; list-style: none;
.clearfix(); .clearfix();
} }
@ -41,7 +41,7 @@
padding: 3px 15px; padding: 3px 15px;
font-size: 11px; font-size: 11px;
font-weight: bold; font-weight: bold;
line-height: @base-line-height; line-height: @line-height-base;
color: @grayLight; color: @grayLight;
text-shadow: 0 1px 0 rgba(255,255,255,.5); text-shadow: 0 1px 0 rgba(255,255,255,.5);
text-transform: uppercase; text-transform: uppercase;
@ -72,7 +72,7 @@
// Actual tabs (as links) // Actual tabs (as links)
.nav-tabs > li > a { .nav-tabs > li > a {
margin-right: 2px; margin-right: 2px;
line-height: @base-line-height; line-height: @line-height-base;
border: 1px solid transparent; border: 1px solid transparent;
border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0;
&:hover { &:hover {

View File

@ -4,7 +4,7 @@
.pager { .pager {
margin: @base-line-height 0; margin: @line-height-base 0;
list-style: none; list-style: none;
text-align: center; text-align: center;
.clearfix(); .clearfix();

View File

@ -4,7 +4,7 @@
// Space out pagination from surrounding content // Space out pagination from surrounding content
.pagination { .pagination {
margin: @base-line-height 0; margin: @line-height-base 0;
} }
.pagination ul { .pagination ul {
@ -14,7 +14,7 @@
margin-left: 0; margin-left: 0;
margin-bottom: 0; margin-bottom: 0;
// Visuals // Visuals
border-radius: @baseBorderRadius; border-radius: @border-radius-base;
.box-shadow(0 1px 2px rgba(0,0,0,.05)); .box-shadow(0 1px 2px rgba(0,0,0,.05));
} }
.pagination ul > li { .pagination ul > li {
@ -24,7 +24,7 @@
.pagination ul > li > span { .pagination ul > li > span {
float: left; // Collapse white-space float: left; // Collapse white-space
padding: 4px 12px; padding: 4px 12px;
line-height: @base-line-height; line-height: @line-height-base;
text-decoration: none; text-decoration: none;
background-color: @paginationBackground; background-color: @paginationBackground;
border: 1px solid @paginationBorder; border: 1px solid @paginationBorder;
@ -50,11 +50,11 @@
.pagination ul > li:first-child > a, .pagination ul > li:first-child > a,
.pagination ul > li:first-child > span { .pagination ul > li:first-child > span {
border-left-width: 1px; border-left-width: 1px;
.border-left-radius(@baseBorderRadius); .border-left-radius(@border-radius-base);
} }
.pagination ul > li:last-child > a, .pagination ul > li:last-child > a,
.pagination ul > li:last-child > span { .pagination ul > li:last-child > span {
.border-right-radius(@baseBorderRadius); .border-right-radius(@border-radius-base);
} }
@ -76,16 +76,16 @@
.pagination-large { .pagination-large {
ul > li > a, ul > li > a,
ul > li > span { ul > li > span {
padding: @paddingLarge; padding: @padding-large;
font-size: @fontSizeLarge; font-size: @font-size-large;
} }
ul > li:first-child > a, ul > li:first-child > a,
ul > li:first-child > span { ul > li:first-child > span {
.border-left-radius(@borderRadiusLarge); .border-left-radius(@border-radius-large);
} }
ul > li:last-child > a, ul > li:last-child > a,
ul > li:last-child > span { ul > li:last-child > span {
.border-right-radius(@borderRadiusLarge); .border-right-radius(@border-radius-large);
} }
} }
@ -94,11 +94,11 @@
.pagination-small { .pagination-small {
ul > li:first-child > a, ul > li:first-child > a,
ul > li:first-child > span { ul > li:first-child > span {
.border-left-radius(@borderRadiusSmall); .border-left-radius(@border-radius-small);
} }
ul > li:last-child > a, ul > li:last-child > a,
ul > li:last-child > span { ul > li:last-child > span {
.border-right-radius(@borderRadiusSmall); .border-right-radius(@border-radius-small);
} }
} }
@ -106,15 +106,15 @@
.pagination-small { .pagination-small {
ul > li > a, ul > li > a,
ul > li > span { ul > li > span {
padding: @paddingSmall; padding: @padding-small;
font-size: @fontSizeSmall; font-size: @font-size-small;
} }
} }
// Mini // Mini
.pagination-mini { .pagination-mini {
ul > li > a, ul > li > a,
ul > li > span { ul > li > span {
padding: @paddingMini; padding: @padding-mini;
font-size: @fontSizeMini; font-size: @font-size-mini;
} }
} }

View File

@ -44,11 +44,11 @@
// Outer container // Outer container
.progress { .progress {
overflow: hidden; overflow: hidden;
height: @base-line-height; height: @line-height-base;
margin-bottom: @base-line-height; margin-bottom: @line-height-base;
#gradient > .vertical(#f5f5f5, #f9f9f9); #gradient > .vertical(#f5f5f5, #f9f9f9);
.box-shadow(inset 0 1px 2px rgba(0,0,0,.1)); .box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
border-radius: @baseBorderRadius; border-radius: @border-radius-base;
} }
// Bar of progress // Bar of progress

View File

@ -104,7 +104,7 @@
// Block level the page header small tag for readability // Block level the page header small tag for readability
.page-header h1 small { .page-header h1 small {
display: block; display: block;
line-height: @base-line-height; line-height: @line-height-base;
} }
// Update checkboxes for iOS // Update checkboxes for iOS

View File

@ -19,10 +19,10 @@
position: static; position: static;
} }
.navbar-fixed-top { .navbar-fixed-top {
margin-bottom: @base-line-height; margin-bottom: @line-height-base;
} }
.navbar-fixed-bottom { .navbar-fixed-bottom {
margin-top: @base-line-height; margin-top: @line-height-base;
} }
.navbar-fixed-top, .navbar-fixed-top,
.navbar-fixed-bottom { .navbar-fixed-bottom {
@ -48,7 +48,7 @@
// Block-level the nav // Block-level the nav
.nav-collapse .nav { .nav-collapse .nav {
float: none; float: none;
margin: 0 0 (@base-line-height / 2); margin: 0 0 (@line-height-base / 2);
} }
.nav-collapse .nav > li { .nav-collapse .nav > li {
float: none; float: none;
@ -75,7 +75,7 @@
.nav-collapse .btn { .nav-collapse .btn {
padding: 4px 10px 4px; padding: 4px 10px 4px;
font-weight: normal; font-weight: normal;
border-radius: @baseBorderRadius; border-radius: @border-radius-base;
} }
.nav-collapse .dropdown-menu li + li a { .nav-collapse .dropdown-menu li + li a {
margin-bottom: 2px; margin-bottom: 2px;
@ -133,8 +133,8 @@
.nav-collapse .navbar-form, .nav-collapse .navbar-form,
.nav-collapse .navbar-search { .nav-collapse .navbar-search {
float: none; float: none;
padding: (@base-line-height / 2) 15px; padding: (@line-height-base / 2) 15px;
margin: (@base-line-height / 2) 0; margin: (@line-height-base / 2) 0;
border-top: 1px solid @navbarBackground; border-top: 1px solid @navbarBackground;
border-bottom: 1px solid @navbarBackground; border-bottom: 1px solid @navbarBackground;
.box-shadow(~"inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1)"); .box-shadow(~"inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1)");

View File

@ -18,9 +18,9 @@ input,
button, button,
select, select,
textarea { textarea {
font-family: @base-font-family; font-family: @font-family-base;
font-size: @base-font-size; font-size: @font-size-base;
line-height: @base-line-height; line-height: @line-height-base;
} }

View File

@ -17,12 +17,12 @@ table {
.table { .table {
width: 100%; width: 100%;
margin-bottom: @base-line-height; margin-bottom: @line-height-base;
// Cells // Cells
th, th,
td { td {
padding: 8px; padding: 8px;
line-height: @base-line-height; line-height: @line-height-base;
text-align: left; text-align: left;
vertical-align: top; vertical-align: top;
border-top: 1px solid @tableBorder; border-top: 1px solid @tableBorder;
@ -70,7 +70,7 @@ table {
border: 1px solid @tableBorder; border: 1px solid @tableBorder;
border-collapse: separate; // Done so we can round those corners! border-collapse: separate; // Done so we can round those corners!
border-left: 0; border-left: 0;
border-radius: @baseBorderRadius; border-radius: @border-radius-base;
th, th,
td { td {
border-left: 1px solid @tableBorder; border-left: 1px solid @tableBorder;
@ -90,22 +90,22 @@ table {
// For first th or td in the first row in the first thead or tbody // For first th or td in the first row in the first thead or tbody
thead:first-child tr:first-child th:first-child, thead:first-child tr:first-child th:first-child,
tbody:first-child tr:first-child td:first-child { tbody:first-child tr:first-child td:first-child {
.border-top-left-radius(@baseBorderRadius); .border-top-left-radius(@border-radius-base);
} }
thead:first-child tr:first-child th:last-child, thead:first-child tr:first-child th:last-child,
tbody:first-child tr:first-child td:last-child { tbody:first-child tr:first-child td:last-child {
.border-top-right-radius(@baseBorderRadius); .border-top-right-radius(@border-radius-base);
} }
// For first th or td in the last row in the last thead or tbody // For first th or td in the last row in the last thead or tbody
thead:last-child tr:last-child th:first-child, thead:last-child tr:last-child th:first-child,
tbody:last-child tr:last-child td:first-child, tbody:last-child tr:last-child td:first-child,
tfoot:last-child tr:last-child td:first-child { tfoot:last-child tr:last-child td:first-child {
.border-bottom-left-radius(@baseBorderRadius); .border-bottom-left-radius(@border-radius-base);
} }
thead:last-child tr:last-child th:last-child, thead:last-child tr:last-child th:last-child,
tbody:last-child tr:last-child td:last-child, tbody:last-child tr:last-child td:last-child,
tfoot:last-child tr:last-child td:last-child { tfoot:last-child tr:last-child td:last-child {
.border-bottom-right-radius(@baseBorderRadius); .border-bottom-right-radius(@border-radius-base);
} }
// Clear border-radius for first and last td in the last row in the last tbody for table with tfoot // Clear border-radius for first and last td in the last row in the last tbody for table with tfoot
@ -122,13 +122,13 @@ table {
caption + tbody tr:first-child td:first-child, caption + tbody tr:first-child td:first-child,
colgroup + thead tr:first-child th:first-child, colgroup + thead tr:first-child th:first-child,
colgroup + tbody tr:first-child td:first-child { colgroup + tbody tr:first-child td:first-child {
.border-top-left-radius(@baseBorderRadius); .border-top-left-radius(@border-radius-base);
} }
caption + thead tr:first-child th:last-child, caption + thead tr:first-child th:last-child,
caption + tbody tr:first-child td:last-child, caption + tbody tr:first-child td:last-child,
colgroup + thead tr:first-child th:last-child, colgroup + thead tr:first-child th:last-child,
colgroup + tbody tr:first-child td:last-child { colgroup + tbody tr:first-child td:last-child {
.border-top-right-radius(@baseBorderRadius); .border-top-right-radius(@border-radius-base);
} }
} }

View File

@ -7,9 +7,9 @@
.thumbnail { .thumbnail {
display: block; display: block;
padding: 4px; padding: 4px;
line-height: @base-line-height; line-height: @line-height-base;
border: 1px solid #ddd; border: 1px solid #ddd;
border-radius: @baseBorderRadius; border-radius: @border-radius-base;
.box-shadow(0 1px 3px rgba(0,0,0,.055)); .box-shadow(0 1px 3px rgba(0,0,0,.055));
.transition(all .2s ease-in-out); .transition(all .2s ease-in-out);
} }

View File

@ -27,7 +27,7 @@
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
background-color: @tooltipBackground; background-color: @tooltipBackground;
border-radius: @baseBorderRadius; border-radius: @border-radius-base;
} }
// Arrows // Arrows

View File

@ -7,13 +7,13 @@
// ------------------------- // -------------------------
p { p {
margin: 0 0 @base-line-height / 2; margin: 0 0 @line-height-base / 2;
} }
.lead { .lead {
margin-bottom: @base-line-height; margin-bottom: @line-height-base;
font-size: @base-font-size * 1.5; font-size: @font-size-base * 1.5;
font-weight: 200; font-weight: 200;
line-height: @base-line-height * 1.5; line-height: @line-height-base * 1.5;
} }
@ -48,10 +48,10 @@ a.text-success:hover { color: darken(@successText, 10%); }
// ------------------------- // -------------------------
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
margin: (@base-line-height / 2) 0; margin: (@line-height-base / 2) 0;
font-family: @headings-font-family; font-family: @headings-font-family;
font-weight: @headings-font-weight; font-weight: @headings-font-weight;
line-height: @base-line-height; line-height: @line-height-base;
text-rendering: optimizelegibility; // Fix the character spacing for headings text-rendering: optimizelegibility; // Fix the character spacing for headings
small { small {
font-weight: normal; font-weight: normal;
@ -62,27 +62,27 @@ h1, h2, h3, h4, h5, h6 {
h1, h1,
h2, h2,
h3 { line-height: @base-line-height * 2; } h3 { line-height: @line-height-base * 2; }
h1 { font-size: @base-font-size * 2.75; } // ~38px h1 { font-size: @font-size-base * 2.75; } // ~38px
h2 { font-size: @base-font-size * 2.25; } // ~32px h2 { font-size: @font-size-base * 2.25; } // ~32px
h3 { font-size: @base-font-size * 1.75; } // ~24px h3 { font-size: @font-size-base * 1.75; } // ~24px
h4 { font-size: @base-font-size * 1.25; } // ~18px h4 { font-size: @font-size-base * 1.25; } // ~18px
h5 { font-size: @base-font-size; } h5 { font-size: @font-size-base; }
h6 { font-size: @base-font-size * 0.85; } // ~12px h6 { font-size: @font-size-base * 0.85; } // ~12px
h1 small { font-size: @base-font-size * 1.75; } // ~24px h1 small { font-size: @font-size-base * 1.75; } // ~24px
h2 small { font-size: @base-font-size * 1.25; } // ~18px h2 small { font-size: @font-size-base * 1.25; } // ~18px
h3 small { font-size: @base-font-size; } h3 small { font-size: @font-size-base; }
h4 small { font-size: @base-font-size; } h4 small { font-size: @font-size-base; }
// Page header // Page header
// ------------------------- // -------------------------
.page-header { .page-header {
padding-bottom: (@base-line-height / 2) - 1; padding-bottom: (@line-height-base / 2) - 1;
margin: @base-line-height 0 (@base-line-height * 1.5); margin: @line-height-base 0 (@line-height-base * 1.5);
border-bottom: 1px solid @grayLighter; border-bottom: 1px solid @grayLighter;
} }
@ -94,7 +94,7 @@ h4 small { font-size: @base-font-size; }
// Unordered and Ordered lists // Unordered and Ordered lists
ul, ol { ul, ol {
padding: 0; padding: 0;
margin: 0 0 @base-line-height / 2 25px; margin: 0 0 @line-height-base / 2 25px;
} }
ul ul, ul ul,
ul ol, ul ol,
@ -103,7 +103,7 @@ ol ul {
margin-bottom: 0; margin-bottom: 0;
} }
li { li {
line-height: @base-line-height; line-height: @line-height-base;
} }
// List options // List options
@ -123,17 +123,17 @@ li {
// Description Lists // Description Lists
dl { dl {
margin-bottom: @base-line-height; margin-bottom: @line-height-base;
} }
dt, dt,
dd { dd {
line-height: @base-line-height; line-height: @line-height-base;
} }
dt { dt {
font-weight: bold; font-weight: bold;
} }
dd { dd {
margin-left: @base-line-height / 2; margin-left: @line-height-base / 2;
} }
// Horizontal layout (like forms) // Horizontal layout (like forms)
.dl-horizontal { .dl-horizontal {
@ -155,7 +155,7 @@ dd {
// Horizontal rules // Horizontal rules
hr { hr {
margin: @base-line-height 0; margin: @line-height-base 0;
border: 0; border: 0;
border-top: 1px solid @hrBorder; border-top: 1px solid @hrBorder;
border-bottom: 1px solid @white; border-bottom: 1px solid @white;
@ -176,15 +176,15 @@ abbr.initialism {
// Blockquotes // Blockquotes
blockquote { blockquote {
padding: 0 0 0 15px; padding: 0 0 0 15px;
margin: 0 0 @base-line-height; margin: 0 0 @line-height-base;
border-left: 5px solid @grayLighter; border-left: 5px solid @grayLighter;
p { p {
margin-bottom: 0; margin-bottom: 0;
#font > .shorthand(16px,300,@base-line-height * 1.25); #font > .shorthand(16px,300,@line-height-base * 1.25);
} }
small { small {
display: block; display: block;
line-height: @base-line-height; line-height: @line-height-base;
color: @grayLight; color: @grayLight;
&:before { &:before {
content: '\2014 \00A0'; content: '\2014 \00A0';
@ -224,7 +224,7 @@ blockquote:after {
// Addresses // Addresses
address { address {
display: block; display: block;
margin-bottom: @base-line-height; margin-bottom: @line-height-base;
font-style: normal; font-style: normal;
line-height: @base-line-height; line-height: @line-height-base;
} }

View File

@ -46,30 +46,30 @@
@font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif; @font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
@font-family-serif: Georgia, "Times New Roman", Times, serif; @font-family-serif: Georgia, "Times New Roman", Times, serif;
@font-family-monospace: Monaco, Menlo, Consolas, "Courier New", monospace; @font-family-monospace: Monaco, Menlo, Consolas, "Courier New", monospace;
@font-family-base: @font-family-sans-serif;
@base-font-size: 14px; @font-size-base: 14px;
@base-font-family: @font-family-sans-serif; @font-size-large: @font-size-base * 1.25; // ~18px
@base-line-height: 20px; @font-size-small: @font-size-base * 0.85; // ~12px
@font-size-mini: @font-size-base * 0.75; // ~11px
@headings-font-family: inherit; // empty to use BS default, @base-font-family @line-height-base: 20px;
@headings-font-family: inherit; // empty to use BS default, @font-family-base
@headings-font-weight: bold; // instead of browser default, bold @headings-font-weight: bold; // instead of browser default, bold
// Component sizing // Component sizing
// ------------------------- // -------------------------
// Based on 14px font-size and 20px line-height // Based on 14px font-size and 1.5 line-height
@fontSizeLarge: @base-font-size * 1.25; // ~18px @padding-large: 11px 19px; // 44px
@fontSizeSmall: @base-font-size * 0.85; // ~12px @padding-small: 2px 10px; // 26px
@fontSizeMini: @base-font-size * 0.75; // ~11px @padding-mini: 0 6px; // 22px
@paddingLarge: 11px 19px; // 44px @border-radius-base: 4px;
@paddingSmall: 2px 10px; // 26px @border-radius-large: 6px;
@paddingMini: 0 6px; // 22px @border-radius-small: 3px;
@baseBorderRadius: 4px;
@borderRadiusLarge: 6px;
@borderRadiusSmall: 3px;
// Tables // Tables
@ -109,11 +109,11 @@
// ------------------------- // -------------------------
@inputBackground: @white; @inputBackground: @white;
@inputBorder: #ccc; @inputBorder: #ccc;
@inputBorderRadius: @baseBorderRadius; @inputBorderRadius: @border-radius-base;
@inputSearchBorderRadius: 20px; @inputSearchBorderRadius: 20px;
@inputDisabledBackground: @grayLighter; @inputDisabledBackground: @grayLighter;
@formActionsBackground: #f5f5f5; @formActionsBackground: #f5f5f5;
@inputHeight: @base-line-height + 14px; // base line-height + 12px vertical padding + 2px top/bottom border @inputHeight: @line-height-base + 14px; // base line-height + 12px vertical padding + 2px top/bottom border
// Dropdowns // Dropdowns

View File

@ -10,7 +10,7 @@
margin-bottom: 20px; margin-bottom: 20px;
background-color: @wellBackground; background-color: @wellBackground;
border: 1px solid darken(@wellBackground, 7%); border: 1px solid darken(@wellBackground, 7%);
border-radius: @baseBorderRadius; border-radius: @border-radius-base;
.box-shadow(inset 0 1px 1px rgba(0,0,0,.05)); .box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
blockquote { blockquote {
border-color: #ddd; border-color: #ddd;
@ -21,9 +21,9 @@
// Sizes // Sizes
.well-large { .well-large {
padding: 24px; padding: 24px;
border-radius: @borderRadiusLarge; border-radius: @border-radius-large;
} }
.well-small { .well-small {
padding: 9px; padding: 9px;
border-radius: @borderRadiusSmall; border-radius: @border-radius-small;
} }