]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Use @font-size-small variable to calculate <small> font-size fixes #13713 #13809 13882/head
authorThomas Welton <thomaswelton@me.com>
Fri, 20 Jun 2014 09:31:49 +0000 (10:31 +0100)
committerThomas Welton <thomaswelton@me.com>
Mon, 23 Jun 2014 17:00:18 +0000 (18:00 +0100)
less/type.less

index 5eb69f3c21c240a2d0d04c1c36ba6ce29a43ea3a..9b1e48bae098299151aa3c9c9a4324718363e25d 100644 (file)
@@ -74,10 +74,10 @@ p {
 // Emphasis & misc
 // -------------------------
 
-// Ex: 14px base font * 85% = about 12px
+// Ex: (12px small font / 14px base font) * 100% = about 85%
 small,
 .small {
-  font-size: 85%;
+  font-size: floor((100% * @font-size-small / @font-size-base));
 }
 
 // Undo browser default styling