Skip to content

Commit

Permalink
fixes #20485: use rem units in alert dismiss
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Sep 5, 2016
1 parent 5b1270d commit 92f97b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions scss/_alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
// Expand the right padding and account for the close button's positioning.

.alert-dismissible {
padding-right: ($alert-padding + 20px);
padding-right: ($alert-padding * 2);

// Adjust close link position
.close {
position: relative;
top: -2px;
right: -21px;
top: -.125rem;
right: -$alert-padding;
color: inherit;
}
}
Expand Down
2 changes: 1 addition & 1 deletion scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ $modal-sm: 300px !default;
//
// Define alert colors, border radius, and padding.

$alert-padding: 15px !default;
$alert-padding: 1rem !default;
$alert-border-radius: $border-radius !default;
$alert-link-font-weight: bold !default;
$alert-border-width: $border-width !default;
Expand Down

0 comments on commit 92f97b0

Please sign in to comment.