2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

restore alerts, and make them suck much less

This commit is contained in:
Mark Otto
2013-01-16 15:16:04 -08:00
parent 0b81dd217f
commit baa8c3ec9e
5 changed files with 66 additions and 21 deletions
+4 -17
View File
@@ -10,17 +10,15 @@
padding: 8px 35px 8px 14px;
margin-bottom: @line-height-base;
text-shadow: 0 1px 0 rgba(255,255,255,.5);
color: @state-warning-text;
background-color: @state-warning-background;
border: 1px solid @state-warning-border;
border-radius: @border-radius-base;
}
.alert,
.alert h4 {
margin-top: 0;
// Specified for the h4 to prevent conflicts of changing @headingsColor
color: @state-warning-text;
}
.alert h4 {
margin: 0;
color: inherit;
}
// Adjust close link position
@@ -29,9 +27,9 @@
top: -2px;
right: -21px;
line-height: @line-height-base;
color: inherit;
}
// Alternate styles
// -------------------------
@@ -40,28 +38,17 @@
border-color: @state-success-border;
color: @state-success-text;
}
.alert-success h4 {
color: @state-success-text;
}
.alert-danger,
.alert-error {
background-color: @state-error-background;
border-color: @state-error-border;
color: @state-error-text;
}
.alert-danger h4,
.alert-error h4 {
color: @state-error-text;
}
.alert-info {
background-color: @state-info-background;
border-color: @state-info-border;
color: @state-info-text;
}
.alert-info h4 {
color: @state-info-text;
}
// Block alerts
// -------------------------