diff options
author | Mark Otto <markd.otto@gmail.com> | 2016-11-28 10:59:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-28 10:59:21 +0300 |
commit | 23866efbb116804390ec8014aa5961e961c6e112 (patch) | |
tree | 6510c0ccad1abb40c5cec587ea5c6bacdc813860 /scss/_alert.scss | |
parent | 5357bad9a0eb70ebf0b3f9070e868d154b43f5a0 (diff) |
Fix #20013, nullify #21112 (#21230)
Add padding to dismiss button for alerts and use position to place it. Removes extra padding on .alert-dismissible's right side, too. We could probably further simplify these things in the future as well.
Diffstat (limited to 'scss/_alert.scss')
-rw-r--r-- | scss/_alert.scss | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scss/_alert.scss b/scss/_alert.scss index 517762eabe..d9b4e9b276 100644 --- a/scss/_alert.scss +++ b/scss/_alert.scss @@ -26,13 +26,12 @@ // Expand the right padding and account for the close button's positioning. .alert-dismissible { - padding-right: ($alert-padding-x * 2); - // Adjust close link position .close { position: relative; - top: -.125rem; + top: -$alert-padding-y; right: -$alert-padding-x; + padding: $alert-padding-y $alert-padding-x; color: inherit; } } |