aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-08-23 14:22:51 -0700
committerMark Otto <[email protected]>2013-08-23 14:22:51 -0700
commit2b37d2b5333c0b10d5be53865a1a153d5ac4a4b5 (patch)
tree1264a6c24977979c09302032c5d0badad6c3ca6b /less
parent310642d5acd3b6c3f80f758c854b12a2de4cdeb6 (diff)
downloadbootstrap-2b37d2b5333c0b10d5be53865a1a153d5ac4a4b5.tar.xz
bootstrap-2b37d2b5333c0b10d5be53865a1a153d5ac4a4b5.zip
Update and document use of `small` in headings
Diffstat (limited to 'less')
-rw-r--r--less/type.less14
1 files changed, 9 insertions, 5 deletions
diff --git a/less/type.less b/less/type.less
index 590cbcbb4..b0423e982 100644
--- a/less/type.less
+++ b/less/type.less
@@ -52,6 +52,7 @@ h1, h2, h3, h4, h5, h6,
font-family: @headings-font-family;
font-weight: @headings-font-weight;
line-height: @headings-line-height;
+
small {
font-weight: normal;
line-height: 1;
@@ -64,12 +65,20 @@ h2,
h3 {
margin-top: @line-height-computed;
margin-bottom: (@line-height-computed / 2);
+
+ small {
+ font-size: 65%;
+ }
}
h4,
h5,
h6 {
margin-top: (@line-height-computed / 2);
margin-bottom: (@line-height-computed / 2);
+
+ small {
+ font-size: 75%;
+ }
}
h1, .h1 { font-size: @font-size-h1; }
@@ -79,11 +88,6 @@ h4, .h4 { font-size: @font-size-h4; }
h5, .h5 { font-size: @font-size-h5; }
h6, .h6 { font-size: @font-size-h6; }
-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; }
-
// Page header
// -------------------------