From 6c3cd6fd9d0c35d1d033dd97d22ec44cf74d0021 Mon Sep 17 00:00:00 2001
From: Mark Otto <markotto@twitter.com>
Date: Thu, 20 Sep 2012 09:06:43 -0700
Subject: [PATCH] fixes #5212: text emphasis classes only get hover with links

---
 docs/assets/css/bootstrap.css |  8 ++++----
 less/type.less                | 35 +++++++++++------------------------
 2 files changed, 15 insertions(+), 28 deletions(-)

diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css
index d4d4e031f3..fc9190fbe6 100644
--- a/docs/assets/css/bootstrap.css
+++ b/docs/assets/css/bootstrap.css
@@ -618,7 +618,7 @@ cite {
   color: #c09853;
 }
 
-.text-warning:hover {
+a.text-warning:hover {
   color: #a47e3c;
 }
 
@@ -626,7 +626,7 @@ cite {
   color: #b94a48;
 }
 
-.text-error:hover {
+a.text-error:hover {
   color: #953b39;
 }
 
@@ -634,7 +634,7 @@ cite {
   color: #3a87ad;
 }
 
-.text-info:hover {
+a.text-info:hover {
   color: #2d6987;
 }
 
@@ -642,7 +642,7 @@ cite {
   color: #468847;
 }
 
-.text-success:hover {
+a.text-success:hover {
   color: #356635;
 }
 
diff --git a/less/type.less b/less/type.less
index 78ccb81192..512ead99ee 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
-- 
GitLab