]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Additional heading font-size classes 7285/head
authorAndrew Stilliard <your.imagination@hotmail.co.uk>
Fri, 15 Mar 2013 02:11:37 +0000 (02:11 +0000)
committerAndrew Stilliard <your.imagination@hotmail.co.uk>
Fri, 15 Mar 2013 02:11:37 +0000 (02:11 +0000)
This relates to changes in issue #7284

less/type.less

index 8d177b61d16f5fac16b4ae8d8ad8b04b6b29b02b..13625c949ead57e5d79b79cd886e1e96e401aa26 100644 (file)
@@ -52,7 +52,8 @@ a.text-success:focus { color: darken(@state-success-text, 10%); }
 // Headings
 // -------------------------
 
-h1, h2, h3, h4, h5, h6 {
+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;
@@ -81,17 +82,17 @@ h6 {
   margin-bottom: (@line-height-base / 2);
 }
 
-h1 { font-size: (@font-size-base * 2.75); font-size: 4rem; } // ~38px
-h2 { font-size: (@font-size-base * 2.25); font-size: 3rem; } // ~32px
-h3 { font-size: (@font-size-base * 1.75); font-size: 2.5rem; } // ~24px
-h4 { font-size: (@font-size-base * 1.25); font-size: 2rem; } // ~18px
-h5 { font-size:  @font-size-base; font-size: 1.6rem; }
-h6 { font-size: (@font-size-base * 0.85); font-size: 1.2rem; } // ~12px
+h1, .h1 { font-size: (@font-size-base * 2.75); font-size: 4rem; } // ~38px
+h2, .h2 { font-size: (@font-size-base * 2.25); font-size: 3rem; } // ~32px
+h3, .h3 { font-size: (@font-size-base * 1.75); font-size: 2.5rem; } // ~24px
+h4, .h4 { font-size: (@font-size-base * 1.25); font-size: 2rem; } // ~18px
+h5, .h5 { font-size:  @font-size-base; font-size: 1.6rem; }
+h6, .h6 { font-size: (@font-size-base * 0.85); font-size: 1.2rem; } // ~12px
 
-h1 small { font-size: (@font-size-base * 1.75); } // ~24px
-h2 small { font-size: (@font-size-base * 1.25); } // ~18px
-h3 small { font-size: @font-size-base; }
-h4 small { font-size: @font-size-base; }
+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; }
+h4 small, .h4 small { font-size: @font-size-base; }
 
 
 // Page header