From 3b3def4898b7d60e9a8b9b95707ee56323b23f36 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 17 Sep 2012 23:19:52 -0700 Subject: fixes #5087: add hover states to text emphasis classes for links --- less/type.less | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'less/type.less') diff --git a/less/type.less b/less/type.less index 2e0f386ee..78ccb8119 100644 --- a/less/type.less +++ b/less/type.less @@ -39,15 +39,27 @@ cite { } .text-warning { color: @warningText; + &:hover { + color: darken(@warningText, 10%); + } } .text-error { color: @errorText; + &:hover { + color: darken(@errorText, 10%); + } } .text-info { color: @infoText; + &:hover { + color: darken(@infoText, 10%); + } } .text-success { color: @successText; + &:hover { + color: darken(@successText, 10%); + } } -- cgit v1.2.3 From 6c3cd6fd9d0c35d1d033dd97d22ec44cf74d0021 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 20 Sep 2012 09:06:43 -0700 Subject: fixes #5212: text emphasis classes only get hover with links --- less/type.less | 35 +++++++++++------------------------ 1 file changed, 11 insertions(+), 24 deletions(-) (limited to 'less/type.less') diff --git a/less/type.less b/less/type.less index 78ccb8119..512ead99e 100644 --- a/less/type.less +++ b/less/type.less @@ -37,30 +37,17 @@ cite { .muted { color: @grayLight; } -.text-warning { - color: @warningText; - &:hover { - color: darken(@warningText, 10%); - } -} -.text-error { - color: @errorText; - &:hover { - color: darken(@errorText, 10%); - } -} -.text-info { - color: @infoText; - &:hover { - color: darken(@infoText, 10%); - } -} -.text-success { - color: @successText; - &:hover { - color: darken(@successText, 10%); - } -} +.text-warning { color: @warningText; } +a.text-warning:hover { color: darken(@warningText, 10%); } + +.text-error { color: @errorText; } +a.text-error:hover { color: darken(@errorText, 10%); } + +.text-info { color: @infoText; } +a.text-info:hover { color: darken(@infoText, 10%); } + +.text-success { color: @successText; } +a.text-success:hover { color: darken(@successText, 10%); } // Headings -- cgit v1.2.3 From af871d57c9eeb4ce1cdafd63c983bf706a89bec0 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 22 Sep 2012 22:16:12 -0700 Subject: fixes #5216: calculate heading sizes via math rather than fixed pixel amounts --- less/type.less | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) (limited to 'less/type.less') diff --git a/less/type.less b/less/type.less index 512ead99e..3a05bcf0d 100644 --- a/less/type.less +++ b/less/type.less @@ -57,7 +57,7 @@ h1, h2, h3, h4, h5, h6 { margin: (@baseLineHeight / 2) 0; font-family: @headingsFontFamily; font-weight: @headingsFontWeight; - line-height: 1; + line-height: @baseLineHeight; color: @headingsColor; text-rendering: optimizelegibility; // Fix the character spacing for headings small { @@ -66,17 +66,22 @@ h1, h2, h3, h4, h5, h6 { color: @grayLight; } } -h1 { font-size: 36px; line-height: 40px; } -h2 { font-size: 30px; line-height: 40px; } -h3 { font-size: 24px; line-height: 40px; } -h4 { font-size: 18px; line-height: 20px; } -h5 { font-size: 14px; line-height: 20px; } -h6 { font-size: 12px; line-height: 20px; } - -h1 small { font-size: 24px; } -h2 small { font-size: 18px; } -h3 small { font-size: 14px; } -h4 small { font-size: 14px; } + +h1, +h2, +h3 { line-height: @baseLineHeight * 2; } + +h1 { font-size: @baseFontSize * 2.75; } // ~38px +h2 { font-size: @baseFontSize * 2.25; } // ~32px +h3 { font-size: @baseFontSize * 1.75; } // ~24px +h4 { font-size: @baseFontSize * 1.25; } // ~18px +h5 { font-size: @baseFontSize; } +h6 { font-size: @baseFontSize * .85; } // ~12px + +h1 small { font-size: @baseFontSize * 1.75; } // ~24px +h2 small { font-size: @baseFontSize * 1.25; } // ~18px +h3 small { font-size: @baseFontSize; } +h4 small { font-size: @baseFontSize; } // Page header -- cgit v1.2.3 From a4bf6ef0a0ace19e2e939c0484095e8d45527548 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 23 Sep 2012 15:16:13 -0700 Subject: match decimal placements in type.less --- less/type.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less/type.less') diff --git a/less/type.less b/less/type.less index 3a05bcf0d..2d913dde3 100644 --- a/less/type.less +++ b/less/type.less @@ -76,7 +76,7 @@ h2 { font-size: @baseFontSize * 2.25; } // ~32px h3 { font-size: @baseFontSize * 1.75; } // ~24px h4 { font-size: @baseFontSize * 1.25; } // ~18px h5 { font-size: @baseFontSize; } -h6 { font-size: @baseFontSize * .85; } // ~12px +h6 { font-size: @baseFontSize * 0.85; } // ~12px h1 small { font-size: @baseFontSize * 1.75; } // ~24px h2 small { font-size: @baseFontSize * 1.25; } // ~18px -- cgit v1.2.3 From 11ee1633b459352de9831a507c20e78f4f1fd5c3 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 3 Oct 2012 09:36:45 -0700 Subject: fixes #5257: add data-original-title attribute selector to abbr element --- less/type.less | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'less/type.less') diff --git a/less/type.less b/less/type.less index 2d913dde3..3b428e79d 100644 --- a/less/type.less +++ b/less/type.less @@ -159,7 +159,9 @@ hr { } // Abbreviations and acronyms -abbr[title] { +abbr[title], +// Added data-* attribute to help out our tooltip plugin, per https://github.com/twitter/bootstrap/issues/5257 +abbr[data-original-title] { cursor: help; border-bottom: 1px dotted @grayLight; } -- cgit v1.2.3