From 1c4bdb053bc526be1719b919b8a41b1248158cd5 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 4 Sep 2013 13:56:32 -0700 Subject: Fixes #10399: Add hover styles to text emphasis classes --- less/type.less | 39 +++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) (limited to 'less') 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; } -- cgit v1.2.3