aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-09-04 13:56:32 -0700
committerMark Otto <[email protected]>2013-09-04 13:56:32 -0700
commit1c4bdb053bc526be1719b919b8a41b1248158cd5 (patch)
tree3e943e0c6831fbcb9fc507298c9697055210a18e /less
parentc0f6d722b02c8dcf167cc5f55fcfbadaf34d58a2 (diff)
downloadbootstrap-1c4bdb053bc526be1719b919b8a41b1248158cd5.tar.xz
bootstrap-1c4bdb053bc526be1719b919b8a41b1248158cd5.zip
Fixes #10399: Add hover styles to text emphasis classes
Diffstat (limited to 'less')
-rw-r--r--less/type.less39
1 files changed, 33 insertions, 6 deletions
diff --git a/less/type.less b/less/type.less
index 981068962..2f154516c 100644
--- a/less/type.less
+++ b/less/type.less
@@ -32,12 +32,39 @@ small,
cite { font-style: normal; }
// Contextual emphasis
-.text-muted { color: @text-muted; }
-.text-primary { color: @brand-primary; }
-.text-warning { color: @state-warning-text; }
-.text-danger { color: @state-danger-text; }
-.text-success { color: @state-success-text; }
-.text-info { color: @state-info-text; }
+.text-muted {
+ color: @text-muted;
+}
+.text-primary {
+ color: @brand-primary;
+ &:hover {
+ color: darken(@brand-primary, 10%);
+ }
+}
+.text-warning {
+ color: @state-warning-text;
+ &:hover {
+ color: darken(@state-warning-text, 10%);
+ }
+}
+.text-danger {
+ color: @state-danger-text;
+ &:hover {
+ color: darken(@state-danger-text, 10%);
+ }
+}
+.text-success {
+ color: @state-success-text;
+ &:hover {
+ color: darken(@state-success-text, 10%);
+ }
+}
+.text-info {
+ color: @state-info-text;
+ &:hover {
+ color: darken(@state-info-text, 10%);
+ }
+}
// Alignment
.text-left { text-align: left; }