From ecfdecea00eb5ee398814cdc2d5e8469e90ae1e4 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 14 Mar 2013 23:01:23 -0700 Subject: Use translucent box shadow on hr elements; colorize hr elements within alert components --- less/alerts.less | 27 +++++++++++++++++++++------ less/type.less | 1 + 2 files changed, 22 insertions(+), 6 deletions(-) (limited to 'less') diff --git a/less/alerts.less b/less/alerts.less index 5cdbf734d..04b3f46b4 100644 --- a/less/alerts.less +++ b/less/alerts.less @@ -13,15 +13,21 @@ background-color: @state-warning-background; border: 1px solid @state-warning-border; border-radius: @border-radius-base; -} -.alert h4 { - margin-top: 0; - // Specified for the h4 to prevent conflicts of changing @headingsColor - color: inherit; + + // Headings for larger alerts + h4 { + margin-top: 0; + // Specified for the h4 to prevent conflicts of changing @headingsColor + color: inherit; + } + // Match the hr to the border of the alert + hr { + border-top-color: darken(@state-warning-border, 5%); + } } // Adjust close link position -.alert .close { +.close { position: relative; top: -2px; right: -21px; @@ -36,17 +42,26 @@ background-color: @state-success-background; border-color: @state-success-border; color: @state-success-text; + hr { + border-top-color: darken(@state-success-border, 5%); + } } .alert-danger, .alert-error { background-color: @state-error-background; border-color: @state-error-border; color: @state-error-text; + hr { + border-top-color: darken(@state-error-border, 5%); + } } .alert-info { background-color: @state-info-background; border-color: @state-info-border; color: @state-info-text; + hr { + border-top-color: darken(@state-info-border, 5%); + } } // Block alerts diff --git a/less/type.less b/less/type.less index 13625c949..03566ebef 100644 --- a/less/type.less +++ b/less/type.less @@ -178,6 +178,7 @@ hr { border: 0; border-top: 1px solid @hr-border; border-bottom: 1px solid #fff; + border-bottom: 1px solid rgba(255,255,255,.5); } // Abbreviations and acronyms -- cgit v1.2.3