}
body {
- margin: 0;
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
- font-size: 14px;
- font-size: 1.4rem;
- line-height: 1.5;
color: #333333;
background-color: #ffffff;
}
textarea {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
+ font-size: 1.4rem;
line-height: 20px;
}
.lead {
margin-bottom: 20px;
font-size: 21px;
+ font-size: 2.1rem;
font-weight: 200;
line-height: 1.25;
}
h1,
.h1 {
- font-size: 38.5px;
+ font-size: 38.5;
font-size: 4rem;
}
h2,
.h2 {
- font-size: 31.5px;
+ font-size: 31.5;
font-size: 3rem;
}
h3,
.h3 {
- font-size: 24.5px;
+ font-size: 24.5;
font-size: 2.5rem;
}
h4,
.h4 {
- font-size: 17.5px;
+ font-size: 17.5;
font-size: 2rem;
}
h5,
.h5 {
- font-size: 14px;
+ font-size: 14;
font-size: 1.6rem;
}
h6,
.h6 {
- font-size: 11.9px;
+ font-size: 11.9;
font-size: 1.2rem;
}
h1 small,
.h1 small {
- font-size: 24.5px;
+ font-size: 24.5;
}
h2 small,
.h2 small {
- font-size: 17.5px;
+ font-size: 17.5;
}
h3 small,
.h3 small {
- font-size: 14px;
+ font-size: 14;
}
h4 small,
.h4 small {
- font-size: 14px;
+ font-size: 14;
}
.page-header {
blockquote p {
margin-bottom: 0;
- font-size: 17.5px;
+ font-size: 17.5;
font-weight: 300;
line-height: 1.25;
}
pre {
padding: 0 3px 2px;
font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
- font-size: 12px;
+ font-size: 12;
color: #333333;
border-radius: 4px;
}
display: block;
padding: 9.5px;
margin: 0 0 10px;
- font-size: 13px;
+ font-size: 13;
line-height: 20px;
word-break: break-all;
word-wrap: break-word;
width: 100%;
padding: 0;
margin-bottom: 20px;
- font-size: 21px;
+ font-size: 21;
line-height: 40px;
color: #333333;
border: 0;
display: inline-block;
min-height: 34px;
padding: 6px 9px;
- font-size: 14px;
+ font-size: 14;
line-height: 20px;
color: #555555;
vertical-align: middle;
input[type="tel"].input-large,
input[type="color"].input-large {
padding: 11px 14px;
- font-size: 17.5px;
+ font-size: 17.5;
border-radius: 6px;
}
input[type="color"].input-small {
min-height: 26px;
padding: 2px 10px;
- font-size: 11.9px;
+ font-size: 11.9;
border-radius: 3px;
}
.input-group-addon {
padding: 6px 8px;
- font-size: 14px;
+ font-size: 14;
font-weight: normal;
line-height: 20px;
text-align: center;
.input-group-addon.input-small {
padding: 2px 10px;
- font-size: 11.9px;
+ font-size: 11.9;
}
.input-group-addon.input-large {
padding: 11px 14px;
- font-size: 17.5px;
+ font-size: 17.5;
}
.input-group input:first-child,
display: inline-block;
padding: 6px 12px;
margin-bottom: 0;
- font-size: 14px;
+ font-size: 14;
font-weight: 500;
line-height: 20px;
text-align: center;
.btn-large {
padding: 11px 14px;
- font-size: 17.5px;
+ font-size: 17.5;
border-radius: 6px;
}
.btn-small {
padding: 2px 10px;
- font-size: 11.9px;
+ font-size: 11.9;
border-radius: 3px;
}
.btn-mini {
padding: 0 6px;
- font-size: 10.5px;
+ font-size: 10.5;
border-radius: 3px;
}
.pagination-large > li > a,
.pagination-large > li > span {
padding: 11px 14px;
- font-size: 17.5px;
+ font-size: 17.5;
}
.pagination-large > li:first-child > a,
.pagination-small > li > a,
.pagination-small > li > span {
padding: 2px 10px;
- font-size: 11.9px;
+ font-size: 11.9;
}
.pagination-mini > li > a,
.pagination-mini > li > span {
padding: 0 6px;
- font-size: 10.5px;
+ font-size: 10.5;
}
.pager {
}
-// FORMS
-// --------------------------------------------------
-
-.formFieldState(@text-color: #555, @border-color: #ccc, @background-color: #f5f5f5) {
- // Color the label text
- .control-label {
- color: @text-color;
- }
- // Set the border and box shadow on specific inputs to match
- .input-with-feedback {
- padding-right: 32px; // to account for the feedback icon
- border-color: @border-color;
- .box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
- &:focus {
- border-color: darken(@border-color, 10%);
- @shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@border-color, 20%);
- .box-shadow(@shadow);
- }
- }
-}
-
-
// CSS3 PROPERTIES
// --------------------------------------------------
.pushX(@grid-columns);
.pullX(@grid-columns);
}
+
+
+
+// Framework mixins
+// --------------------------------------------------
+
+// Generate rem font-sizes with pixel fallbacks
+// By default uses `@font-size-base` with an initial value of 14 (1.4rem or 14px)
+.font-size(@font-size: @font-size-base) {
+ @rem-size: (@font-size / 10);
+ font-size: ~"@{font-size}px";
+ font-size: ~"@{rem-size}rem";
+}
+
+// Generate form validation states
+.formFieldState(@text-color: #555, @border-color: #ccc, @background-color: #f5f5f5) {
+ // Color the label text
+ .control-label {
+ color: @text-color;
+ }
+ // Set the border and box shadow on specific inputs to match
+ .input-with-feedback {
+ padding-right: 32px; // to account for the feedback icon
+ border-color: @border-color;
+ .box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
+ &:focus {
+ border-color: darken(@border-color, 10%);
+ @shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@border-color, 20%);
+ .box-shadow(@shadow);
+ }
+ }
+}
}
body {
- margin: 0;
color: @text-color;
- font-family: @font-family-base;
- font-size: 14px;
- font-size: 1.4rem;
- line-height: 1.5;
background-color: @body-background;
}
select,
textarea {
font-family: @font-family-base;
- font-size: @font-size-base;
+ .font-size();
line-height: @line-height-base;
}
}
.lead {
margin-bottom: @line-height-base;
- font-size: (@font-size-base * 1.5);
+ .font-size((@font-size-base * 1.5));
font-weight: 200;
line-height: 1.25;
}
@font-family-monospace: Monaco, Menlo, Consolas, "Courier New", monospace;
@font-family-base: @font-family-sans-serif;
-@font-size-base: 14px;
+@font-size-base: 14;
@font-size-large: (@font-size-base * 1.25); // ~18px
@font-size-small: (@font-size-base * 0.85); // ~12px
@font-size-mini: (@font-size-base * 0.75); // ~11px