1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 00:29:52 +02:00

fixes #9310: alerts aren't dismissable by default, now requires .alert-dismissable if you need a close button

This commit is contained in:
Mark Otto
2013-08-12 01:20:22 -07:00
parent aefed0ada9
commit 6dbf588237
5 changed files with 56 additions and 35 deletions

View File

@@ -4117,7 +4117,7 @@ button.close {
}
.alert {
padding: 15px 35px 15px 15px;
padding: 15px;
margin-bottom: 20px;
color: #c09853;
background-color: #fcf8e3;
@@ -4139,13 +4139,6 @@ button.close {
color: #a47e3c;
}
.alert .close {
position: relative;
top: -2px;
right: -21px;
color: inherit;
}
.alert > p,
.alert > ul {
margin-bottom: 0;
@@ -4155,6 +4148,17 @@ button.close {
margin-top: 5px;
}
.alert-dismissable {
padding-right: 35px;
}
.alert-dismissable .close {
position: relative;
top: -2px;
right: -21px;
color: inherit;
}
.alert-success {
color: #468847;
background-color: #dff0d8;