aboutsummaryrefslogtreecommitdiff
path: root/less/type.less
diff options
context:
space:
mode:
authorIvan Khalopik <[email protected]>2013-05-27 11:06:31 +0300
committerIvan Khalopik <[email protected]>2013-05-27 11:06:31 +0300
commit3285f4c3062f4a56eaed2461a3128a2e6a3ba9cc (patch)
tree5fa0a3d3556a83cd96147da46e90ae9f361d8efc /less/type.less
parent3c7a43a1f373d0c534476578b96a75ae2e63c985 (diff)
parent7cbb1c0452a1d9904f7655aea78644def85b7f2e (diff)
downloadbootstrap-3285f4c3062f4a56eaed2461a3128a2e6a3ba9cc.tar.xz
bootstrap-3285f4c3062f4a56eaed2461a3128a2e6a3ba9cc.zip
Merge remote-tracking branch 'bootstrap/3.0.0-wip' into 3.0.0-wip
Conflicts: js/bootstrap-collapse.js
Diffstat (limited to 'less/type.less')
-rw-r--r--less/type.less53
1 files changed, 24 insertions, 29 deletions
diff --git a/less/type.less b/less/type.less
index f6b5eecd5..a95e5bff7 100644
--- a/less/type.less
+++ b/less/type.less
@@ -7,10 +7,10 @@
// -------------------------
p {
- margin: 0 0 (@line-height-base / 2);
+ margin: 0 0 (@line-height-computed / 2);
}
.lead {
- margin-bottom: @line-height-base;
+ margin-bottom: @line-height-computed;
font-size: (@font-size-base * 1.5);
font-weight: 200;
line-height: 1.4;
@@ -54,9 +54,8 @@ a.text-success:focus { color: darken(@state-success-text, 10%); }
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-base;
+ line-height: @headings-line-height;
small {
font-weight: normal;
line-height: 1;
@@ -67,30 +66,26 @@ h1, h2, h3, h4, h5, h6,
h1,
h2,
h3 {
- margin-top: @line-height-base;
- margin-bottom: (@line-height-base / 2);
- line-height: (@line-height-base * 2);
-}
-h3 {
- line-height: (@line-height-base * 1.5);
+ margin-top: @line-height-computed;
+ margin-bottom: (@line-height-computed / 2);
}
h4,
h5,
h6 {
- margin-top: (@line-height-base / 2);
- margin-bottom: (@line-height-base / 2);
+ margin-top: (@line-height-computed / 2);
+ margin-bottom: (@line-height-computed / 2);
}
-h1, .h1 { font-size: (@font-size-base * 2.75); } // ~38px
-h2, .h2 { font-size: (@font-size-base * 2.25); } // ~32px
-h3, .h3 { font-size: (@font-size-base * 1.75); } // ~24px
-h4, .h4 { font-size: (@font-size-base * 1.25); } // ~18px
+h1, .h1 { font-size: ceil(@font-size-base * 2.70); } // ~38px
+h2, .h2 { font-size: ceil(@font-size-base * 2.25); } // ~32px
+h3, .h3 { font-size: ceil(@font-size-base * 1.70); } // ~24px
+h4, .h4 { font-size: ceil(@font-size-base * 1.25); } // ~18px
h5, .h5 { font-size: @font-size-base; }
-h6, .h6 { font-size: (@font-size-base * 0.85); } // ~12px
+h6, .h6 { font-size: ceil(@font-size-base * 0.85); } // ~12px
-h1 small, .h1 small { font-size: (@font-size-base * 1.75); } // ~24px
-h2 small, .h2 small { font-size: (@font-size-base * 1.25); } // ~18px
-h3 small, .h3 small { font-size: @font-size-base; }
+h1 small, .h1 small { font-size: ceil(@font-size-base * 1.70); } // ~24px
+h2 small, .h2 small { font-size: ceil(@font-size-base * 1.25); } // ~18px
+h3 small, .h3 small,
h4 small, .h4 small { font-size: @font-size-base; }
@@ -98,8 +93,8 @@ h4 small, .h4 small { font-size: @font-size-base; }
// -------------------------
.page-header {
- padding-bottom: ((@line-height-base / 2) - 1);
- margin: (@line-height-base * 2) 0 @line-height-base;
+ padding-bottom: ((@line-height-computed / 2) - 1);
+ margin: (@line-height-computed * 2) 0 @line-height-computed;
border-bottom: 1px solid @gray-lighter;
}
@@ -112,7 +107,7 @@ h4 small, .h4 small { font-size: @font-size-base; }
ul,
ol {
padding: 0;
- margin: 0 0 (@line-height-base / 2) 25px;
+ margin: 0 0 (@line-height-computed / 2) 25px;
}
ul ul,
ul ol,
@@ -143,7 +138,7 @@ li {
// Description Lists
dl {
- margin-bottom: @line-height-base;
+ margin-bottom: @line-height-computed;
}
dt,
dd {
@@ -153,7 +148,7 @@ dt {
font-weight: bold;
}
dd {
- margin-left: (@line-height-base / 2);
+ margin-left: (@line-height-computed / 2);
}
// Horizontal layout (like forms)
.dl-horizontal {
@@ -175,7 +170,7 @@ dd {
// Horizontal rules
hr {
- margin: @line-height-base 0;
+ margin: @line-height-computed 0;
border: 0;
border-top: 1px solid @hr-border;
border-bottom: 1px solid #fff;
@@ -196,8 +191,8 @@ abbr.initialism {
// Blockquotes
blockquote {
- padding: (@line-height-base/2) @line-height-base;
- margin: 0 0 @line-height-base;
+ padding: (@line-height-computed / 2) @line-height-computed;
+ margin: 0 0 @line-height-computed;
border-left: 5px solid @gray-lighter;
p {
font-size: (@font-size-base * 1.25);
@@ -249,7 +244,7 @@ blockquote:after {
// Addresses
address {
display: block;
- margin-bottom: @line-height-base;
+ margin-bottom: @line-height-computed;
font-style: normal;
line-height: @line-height-base;
}