aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-09-20 09:06:43 -0700
committerMark Otto <[email protected]>2012-09-20 09:06:43 -0700
commit6c3cd6fd9d0c35d1d033dd97d22ec44cf74d0021 (patch)
treecc13c49ed793b7d7f083b675ac57b0a148668f9b
parenta6206c98d5dbf21b790638741c88f09a8fc25596 (diff)
downloadbootstrap-6c3cd6fd9d0c35d1d033dd97d22ec44cf74d0021.tar.xz
bootstrap-6c3cd6fd9d0c35d1d033dd97d22ec44cf74d0021.zip
fixes #5212: text emphasis classes only get hover with links
-rw-r--r--docs/assets/css/bootstrap.css8
-rw-r--r--less/type.less35
2 files changed, 15 insertions, 28 deletions
diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css
index d4d4e031f..fc9190fbe 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 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