Skip to content

Commit

Permalink
fix(toast): account for .btn-close presence
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmatthew committed Jun 4, 2021
1 parent 681fb79 commit 3ee88b2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/assets/css/talis.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/css/talis.css.map

Large diffs are not rendered by default.

16 changes: 15 additions & 1 deletion scss/_toasts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,23 @@
background: transparent;
opacity: 1;
text-underline-offset: 1px;

&:hover,
&:focus {
text-decoration: none;
}
}
}

.toast-body {
padding: $toast-padding-y math.div($toast-padding-x, 2) $toast-padding-y $toast-padding-x;
padding: $toast-padding-y $toast-padding-x;
padding-right: math.div($toast-padding-x, 2);

&:only-child {
padding-right: $toast-padding-x;
}
}

.toast-body + .btn-close {
margin-right: $toast-padding-x;
}

0 comments on commit 3ee88b2

Please sign in to comment.