diff options
| author | Mark Otto <[email protected]> | 2013-08-12 01:20:22 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-08-12 01:20:22 -0700 |
| commit | 6dbf588237529fc8909bf65caa103fd4fc224fbc (patch) | |
| tree | 76f7c11e880f04570483764f57f5e1c218c90415 /less/alerts.less | |
| parent | aefed0ada9791338be11dd5318b24f17f517d51a (diff) | |
| download | bootstrap-6dbf588237529fc8909bf65caa103fd4fc224fbc.tar.xz bootstrap-6dbf588237529fc8909bf65caa103fd4fc224fbc.zip | |
fixes #9310: alerts aren't dismissable by default, now requires .alert-dismissable if you need a close button
Diffstat (limited to 'less/alerts.less')
| -rw-r--r-- | less/alerts.less | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/less/alerts.less b/less/alerts.less index d40519c73..3ba463dba 100644 --- a/less/alerts.less +++ b/less/alerts.less @@ -7,7 +7,7 @@ // ------------------------- .alert { - padding: @alert-padding (@alert-padding + 20) @alert-padding @alert-padding; + padding: @alert-padding; margin-bottom: @line-height-computed; color: @alert-text; background-color: @alert-bg; @@ -30,14 +30,6 @@ color: darken(@alert-text, 10%); } - // Adjust close link position - .close { - position: relative; - top: -2px; - right: -21px; - color: inherit; - } - // Improve alignment and spacing of inner content > p, > ul { @@ -48,8 +40,25 @@ } } +// Dismissable alerts +// +// Expand the right padding and account for the close button's positioning. + +.alert-dismissable { + padding-right: (@alert-padding + 20); + + // Adjust close link position + .close { + position: relative; + top: -2px; + right: -21px; + color: inherit; + } +} + // Alternate styles -// ------------------------- +// +// Generate contextual modifier classes for colorizing the alert. .alert-success { .alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text); |
