diff options
| author | Chris Rebert <[email protected]> | 2014-12-15 17:49:35 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-12-15 17:49:35 -0800 |
| commit | d0c2a82ea863ad2b0612ebff99763e6558693553 (patch) | |
| tree | 7e9a2a11e8864be70ed5d68d3b5df326f4aff0e9 | |
| parent | 9f09a23aeace4fad38a832245b0af004f7496dfb (diff) | |
| download | bootstrap-d0c2a82ea863ad2b0612ebff99763e6558693553.tar.xz bootstrap-d0c2a82ea863ad2b0612ebff99763e6558693553.zip | |
Use .alert-heading instead of hardcoding <h4>
| -rw-r--r-- | docs/javascript/alerts.md | 2 | ||||
| -rw-r--r-- | scss/_alert.scss | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/javascript/alerts.md b/docs/javascript/alerts.md index bbe2eeab4..8d3df5d2f 100644 --- a/docs/javascript/alerts.md +++ b/docs/javascript/alerts.md @@ -22,7 +22,7 @@ When using a `.close` button, it must be the first child of the `.alert-dismissi {% example html %} <div class="alert alert-danger alert-dismissible fade in" role="alert"> <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> - <h4>Oh snap! You got an error!</h4> + <h4 class="alert-heading">Oh snap! You got an error!</h4> <p>Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.</p> <p> <button type="button" class="btn btn-danger">Take this action</button> diff --git a/scss/_alert.scss b/scss/_alert.scss index 685ca314b..f45114e85 100644 --- a/scss/_alert.scss +++ b/scss/_alert.scss @@ -13,9 +13,9 @@ @include border-radius($alert-border-radius); // Headings for larger alerts - h4 { + .alert-heading { margin-top: 0; - // Specified for the h4 to prevent conflicts of changing $headings-color + // Specified to prevent conflicts of changing $headings-color color: inherit; } // Provide class for links that match alerts |
