From dc4436dbc9f328f4ad6ee391b6836b6c8d0324c2 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 20 Apr 2013 15:36:11 -0700 Subject: Only use .danger for alerts, no more .error --- less/alerts.less | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'less/alerts.less') diff --git a/less/alerts.less b/less/alerts.less index e3637ead9..ee5fc294d 100644 --- a/less/alerts.less +++ b/less/alerts.less @@ -55,8 +55,7 @@ color: darken(@state-success-text, 10%); } } -.alert-danger, -.alert-error { +.alert-danger { background-color: @state-danger-bg; border-color: @state-danger-border; color: @state-danger-text; -- cgit v1.2.3 From 2d5ab9a2de88a5cb9c0e13d2c9024e8cc0719b4e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 20 Apr 2013 15:47:07 -0700 Subject: Make alerts use variables better --- less/alerts.less | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'less/alerts.less') diff --git a/less/alerts.less b/less/alerts.less index ee5fc294d..882b25bef 100644 --- a/less/alerts.less +++ b/less/alerts.less @@ -9,10 +9,10 @@ .alert { padding: 8px 35px 8px 14px; margin-bottom: @line-height-base; - color: @state-warning-text; - background-color: @state-warning-bg; - border: 1px solid @state-warning-border; - border-radius: @border-radius-base; + color: @alert-text; + background-color: @alert-bg; + border: 1px solid @alert-border; + border-radius: @alert-border-radius; // Headings for larger alerts h4 { @@ -22,13 +22,13 @@ } // Match the hr to the border of the alert hr { - border-top-color: darken(@state-warning-border, 5%); + border-top-color: darken(@alert-border, 5%); } // Inherit color for immediate links and bolden them some > a, > p > a { font-weight: 500; - color: darken(@state-warning-text, 10%); + color: darken(@alert-text, 10%); } // Adjust close link position @@ -44,39 +44,39 @@ // ------------------------- .alert-success { - background-color: @state-success-bg; - border-color: @state-success-border; - color: @state-success-text; + background-color: @alert-success-bg; + border-color: @alert-success-border; + color: @alert-success-text; hr { - border-top-color: darken(@state-success-border, 5%); + border-top-color: darken(@alert-success-border, 5%); } > a, > p > a { - color: darken(@state-success-text, 10%); + color: darken(@alert-success-text, 10%); } } .alert-danger { - background-color: @state-danger-bg; - border-color: @state-danger-border; - color: @state-danger-text; + background-color: @alert-danger-bg; + border-color: @alert-danger-border; + color: @alert-danger-text; hr { - border-top-color: darken(@state-danger-border, 5%); + border-top-color: darken(@alert-danger-border, 5%); } > a, > p > a { - color: darken(@state-danger-text, 10%); + color: darken(@alert-danger-text, 10%); } } .alert-info { - background-color: @state-info-bg; - border-color: @state-info-border; - color: @state-info-text; + background-color: @alert-info-bg; + border-color: @alert-info-border; + color: @alert-info-text; hr { - border-top-color: darken(@state-info-border, 5%); + border-top-color: darken(@alert-info-border, 5%); } > a, > p > a { - color: darken(@state-info-text, 10%); + color: darken(@alert-info-text, 10%); } } -- cgit v1.2.3