Fork-Awesome/3.2.1/assets/less/bootstrap-2.3.2/alerts.less

80 lines
1.3 KiB
Plaintext
Raw Normal View History

2013-01-02 13:40:00 +08:00
//
// Alerts
// --------------------------------------------------
// Base 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;
2013-01-02 13:40:00 +08:00
.border-radius(@baseBorderRadius);
}
.alert,
2013-01-02 13:40:00 +08:00
.alert h4 {
// Specified for the h4 to prevent conflicts of changing @headingsColor
color: @warningText;
}
2013-01-02 13:40:00 +08:00
.alert h4 {
margin: 0;
}
// Adjust close link position
.alert .close {
position: relative;
top: -2px;
right: -21px;
2013-01-02 13:40:00 +08:00
line-height: @baseLineHeight;
}
2013-01-02 13:40:00 +08:00
// Alternate styles
2013-01-02 13:40:00 +08:00
// -------------------------
.alert-success {
background-color: @successBackground;
2013-01-02 13:40:00 +08:00
border-color: @successBorder;
color: @successText;
}
2013-01-02 13:40:00 +08:00
.alert-success h4 {
color: @successText;
}
.alert-danger,
.alert-error {
background-color: @errorBackground;
border-color: @errorBorder;
2013-01-02 13:40:00 +08:00
color: @errorText;
}
2013-01-02 13:40:00 +08:00
.alert-danger h4,
.alert-error h4 {
color: @errorText;
}
.alert-info {
background-color: @infoBackground;
border-color: @infoBorder;
2013-01-02 13:40:00 +08:00
color: @infoText;
}
2013-01-02 13:40:00 +08:00
.alert-info h4 {
color: @infoText;
}
// Block alerts
2013-01-02 13:40:00 +08:00
// -------------------------
.alert-block {
padding-top: 14px;
padding-bottom: 14px;
}
.alert-block > p,
.alert-block > ul {
margin-bottom: 0;
}
.alert-block p + p {
margin-top: 5px;
}