2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00

Use translucent box shadow on hr elements; colorize hr elements within alert components

This commit is contained in:
Mark Otto
2013-03-14 23:01:23 -07:00
parent 4c0719ea5f
commit ecfdecea00
3 changed files with 78 additions and 22 deletions
+21 -6
View File
@@ -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