From 23866efbb116804390ec8014aa5961e961c6e112 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 27 Nov 2016 23:59:21 -0800 Subject: [PATCH] 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. --- scss/_alert.scss | 5 ++--- 1 file 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; } }