Files
bootstrap/less/alerts.less
Arnold Daniels 9a1dd55617 Added .page-alert
Know those nice little alerts after you save your profile? With `.page-alert` the alert will be shown on top op your page.
2012-02-13 11:37:09 +01:00

92 lines
1.6 KiB
Plaintext

// ALERT STYLES
// ------------
// Base alert styles
.alert {
padding: 8px 35px 8px 14px;
margin-bottom: @baseLineHeight;
text-shadow: 0 1px 0 rgba(255,255,255,.5);
background-color: @warningBackground;
border: 1px solid @warningBorder;
.border-radius(4px);
}
.alert,
.alert-heading {
color: @warningText;
}
// Adjust close link position
.alert .close {
position: relative;
top: -2px;
right: -21px;
line-height: 18px;
}
// Alternate styles
// ----------------
.alert-success {
background-color: @successBackground;
border-color: @successBorder;
}
.alert-success,
.alert-success .alert-heading {
color: @successText;
}
.alert-danger,
.alert-error {
background-color: @errorBackground;
border-color: @errorBorder;
}
.alert-danger,
.alert-error,
.alert-danger .alert-heading,
.alert-error .alert-heading {
color: @errorText;
}
.alert-info {
background-color: @infoBackground;
border-color: @infoBorder;
}
.alert-info,
.alert-info .alert-heading {
color: @infoText;
}
// Block alerts
// ------------------------
.alert-block {
padding-top: 14px;
padding-bottom: 14px;
}
.alert-block > p,
.alert-block > ul {
margin-bottom: 0;
}
.alert-block p + p {
margin-top: 5px;
}
// Page alert
// ------------------------
.page-alert {
position: absolute;
width: 0;
top: 0;
left: 50%;
z-index: 1020;
.alert {
width: 550px;
margin-left: -300px; // incl half of 49px horizontal padding
border-top-width: 0;
.border-radius(0 0 4px 4px);
}
}
.navbar-fixed-top + .page-alert {
top: 40px;
}
body > .page-alert {
position: fixed;
}