2012-01-05 19:01:42 +01:00
|
|
|
// ALERT STYLES
|
|
|
|
// ------------
|
|
|
|
|
|
|
|
// Base alert styles
|
2012-01-15 01:18:15 +01:00
|
|
|
.alert {
|
|
|
|
padding: 8px 35px 8px 14px;
|
2012-01-05 19:01:42 +01:00
|
|
|
margin-bottom: @baseLineHeight;
|
|
|
|
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
2012-01-25 01:54:35 +01:00
|
|
|
background-color: @warningBackground;
|
|
|
|
border: 1px solid @warningBorder;
|
2012-01-05 19:01:42 +01:00
|
|
|
.border-radius(4px);
|
2012-01-15 01:18:15 +01:00
|
|
|
}
|
|
|
|
.alert,
|
|
|
|
.alert-heading {
|
2012-01-25 01:54:35 +01:00
|
|
|
color: @warningText;
|
2012-01-15 01:18:15 +01:00
|
|
|
}
|
2012-01-05 19:01:42 +01:00
|
|
|
|
2012-01-15 01:18:15 +01:00
|
|
|
// Adjust close link position
|
2012-01-16 01:27:36 +01:00
|
|
|
.alert .close {
|
2012-01-15 01:18:15 +01:00
|
|
|
*margin-top: 3px; /* IE7 spacing */
|
2012-01-16 01:27:36 +01:00
|
|
|
position: relative;
|
|
|
|
right: -21px;
|
2012-01-15 01:18:15 +01:00
|
|
|
}
|
2012-01-05 19:01:42 +01:00
|
|
|
|
2012-01-15 01:18:15 +01:00
|
|
|
// Alternate styles
|
|
|
|
// ----------------
|
2012-01-05 19:01:42 +01:00
|
|
|
|
2012-01-15 20:30:24 +01:00
|
|
|
.alert-success {
|
2012-01-25 01:54:35 +01:00
|
|
|
background-color: @successBackground;
|
|
|
|
border-color: @successBorder;
|
2012-01-15 01:18:15 +01:00
|
|
|
}
|
2012-01-15 20:30:24 +01:00
|
|
|
.alert-success,
|
|
|
|
.alert-success .alert-heading {
|
2012-01-25 01:54:35 +01:00
|
|
|
color: @successText;
|
2012-01-15 01:18:15 +01:00
|
|
|
}
|
2012-01-15 20:30:24 +01:00
|
|
|
.alert-danger,
|
|
|
|
.alert-error {
|
2012-01-25 01:54:35 +01:00
|
|
|
background-color: @errorBackground;
|
|
|
|
border-color: @errorBorder;
|
2012-01-15 01:18:15 +01:00
|
|
|
}
|
2012-01-15 20:30:24 +01:00
|
|
|
.alert-danger,
|
|
|
|
.alert-error,
|
|
|
|
.alert-danger .alert-heading,
|
|
|
|
.alert-error .alert-heading {
|
2012-01-25 01:54:35 +01:00
|
|
|
color: @errorText;
|
2012-01-15 01:18:15 +01:00
|
|
|
}
|
2012-01-15 20:30:24 +01:00
|
|
|
.alert-info {
|
2012-01-25 01:54:35 +01:00
|
|
|
background-color: @infoBackground;
|
|
|
|
border-color: @infoBorder;
|
2012-01-15 01:18:15 +01:00
|
|
|
}
|
2012-01-15 20:30:24 +01:00
|
|
|
.alert-info,
|
|
|
|
.alert-info .alert-heading {
|
2012-01-25 01:54:35 +01:00
|
|
|
color: @infoText;
|
2012-01-15 01:18:15 +01:00
|
|
|
}
|
2012-01-05 19:01:42 +01:00
|
|
|
|
2012-01-15 01:18:15 +01:00
|
|
|
|
|
|
|
// Block alerts
|
|
|
|
// ------------------------
|
2012-01-15 20:30:24 +01:00
|
|
|
.alert-block {
|
2012-01-15 01:18:15 +01:00
|
|
|
padding-top: 14px;
|
|
|
|
padding-bottom: 14px;
|
|
|
|
}
|
2012-01-15 20:30:24 +01:00
|
|
|
.alert-block > p,
|
|
|
|
.alert-block > ul {
|
2012-01-15 01:18:15 +01:00
|
|
|
margin-bottom: 0;
|
2012-01-05 19:01:42 +01:00
|
|
|
}
|
2012-01-15 20:30:24 +01:00
|
|
|
.alert-block p + p {
|
2012-01-15 01:18:15 +01:00
|
|
|
margin-top: 5px;
|
2012-01-16 01:27:36 +01:00
|
|
|
}
|