Fix toast spacing issues

Fixed the toast spacing issues
This commit is contained in:
Jacques Erasmus 2019-07-09 23:33:54 +00:00 committed by Fatih Acet
parent ee1cffcf54
commit ac9c3add5b
3 changed files with 11 additions and 8 deletions

View File

@ -15,11 +15,15 @@
.toasted.gl-toast { .toasted.gl-toast {
border-radius: $border-radius-default; border-radius: $border-radius-default;
font-size: $gl-font-size; font-size: $gl-font-size;
padding: $gl-padding-8 $gl-padding-24; padding: $gl-padding-8 $gl-padding $gl-padding-8 $gl-padding-24;
margin-top: $toast-default-margin; margin-top: $toast-default-margin;
line-height: $gl-line-height; line-height: $gl-line-height;
background-color: rgba($gray-900, $toast-background-opacity); background-color: rgba($gray-900, $toast-background-opacity);
span {
padding-right: $gl-padding-8;
}
@include media-breakpoint-down(xs) { @include media-breakpoint-down(xs) {
.action:first-of-type { .action:first-of-type {
// Ensures actions buttons are right aligned on mobile // Ensures actions buttons are right aligned on mobile
@ -29,19 +33,14 @@
.action { .action {
color: $blue-300; color: $blue-300;
margin: 0 0 0 $toast-action-margin-left; margin: 0 0 0 $toast-default-margin;
text-transform: none; text-transform: none;
font-size: $gl-font-size; font-size: $gl-font-size;
&:first-of-type {
padding-right: 0;
}
} }
.toast-close { .toast-close {
font-size: $default-icon-size; font-size: $default-icon-size;
margin-left: $toast-default-margin; margin-left: $toast-default-margin;
padding-left: $gl-padding;
} }
} }
} }

View File

@ -507,7 +507,6 @@ $toast-height: 48px;
$toast-max-width: 586px; $toast-max-width: 586px;
$toast-padding-right: 42px; $toast-padding-right: 42px;
$toast-default-margin: 8px; $toast-default-margin: 8px;
$toast-action-margin-left: 16px;
$toast-background-opacity: 0.95; $toast-background-opacity: 0.95;
/* /*

View File

@ -0,0 +1,5 @@
---
title: Fix spacing issues for toasts
merge_request: 30345
author:
type: fixed