From 51ec513b5c50123761350d2bcd27dafb07192a7e Mon Sep 17 00:00:00 2001 From: Jacob Rask Date: Sun, 19 Feb 2012 21:29:32 +0100 Subject: Use inherit on alert-heading color Heading then inherits from the parent alert. Avoids a lot of extra unneccessary CSS. --- less/alerts.less | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'less') diff --git a/less/alerts.less b/less/alerts.less index 562826fd3..46a0d77bf 100644 --- a/less/alerts.less +++ b/less/alerts.less @@ -9,10 +9,10 @@ background-color: @warningBackground; border: 1px solid @warningBorder; .border-radius(4px); + color: @warningText; } -.alert, .alert-heading { - color: @warningText; + color: inherit; } // Adjust close link position @@ -29,32 +29,20 @@ .alert-success { background-color: @successBackground; border-color: @successBorder; -} -.alert-success, -.alert-success .alert-heading { color: @successText; } .alert-danger, .alert-error { background-color: @errorBackground; border-color: @errorBorder; -} -.alert-danger, -.alert-error, -.alert-danger .alert-heading, -.alert-error .alert-heading { color: @errorText; } .alert-info { background-color: @infoBackground; border-color: @infoBorder; -} -.alert-info, -.alert-info .alert-heading { color: @infoText; } - // Block alerts // ------------------------ .alert-block { -- cgit v1.2.3