mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-04-12 08:31:00 +00:00
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.
This commit is contained in:
parent
5357bad9a0
commit
23866efbb1
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue