From 6dbf588237529fc8909bf65caa103fd4fc224fbc Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 12 Aug 2013 01:20:22 -0700 Subject: fixes #9310: alerts aren't dismissable by default, now requires .alert-dismissable if you need a close button --- dist/css/bootstrap.css | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'dist/css/bootstrap.css') diff --git a/dist/css/bootstrap.css b/dist/css/bootstrap.css index 8cb3ff74e..128e3ac2b 100644 --- a/dist/css/bootstrap.css +++ b/dist/css/bootstrap.css @@ -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; -- cgit v1.2.3