aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-03-14 23:01:23 -0700
committerMark Otto <[email protected]>2013-03-14 23:01:23 -0700
commitecfdecea00eb5ee398814cdc2d5e8469e90ae1e4 (patch)
tree56a7bae8feaadabbb3120a636aaa805a4105b053 /less
parent4c0719ea5f11aae5ec825229ee6e7143bbae4432 (diff)
downloadbootstrap-ecfdecea00eb5ee398814cdc2d5e8469e90ae1e4.tar.xz
bootstrap-ecfdecea00eb5ee398814cdc2d5e8469e90ae1e4.zip
Use translucent box shadow on hr elements; colorize hr elements within alert components
Diffstat (limited to 'less')
-rw-r--r--less/alerts.less27
-rw-r--r--less/type.less1
2 files changed, 22 insertions, 6 deletions
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