2019-05-17 11:23:36 -04:00
|
|
|
/*
|
|
|
|
* These styles are specific to the gl-toast component.
|
|
|
|
* Documentation: https://design.gitlab.com/components/toasts
|
|
|
|
* Note: Styles below are nested in order to override some of vue-toasted's default styling
|
|
|
|
*/
|
|
|
|
.toasted-container {
|
|
|
|
|
|
|
|
max-width: $toast-max-width;
|
|
|
|
|
|
|
|
@include media-breakpoint-down(xs) {
|
|
|
|
width: 100%;
|
|
|
|
padding-right: $toast-padding-right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toasted.gl-toast {
|
|
|
|
border-radius: $border-radius-default;
|
|
|
|
font-size: $gl-font-size;
|
2019-07-09 19:33:54 -04:00
|
|
|
padding: $gl-padding-8 $gl-padding $gl-padding-8 $gl-padding-24;
|
2019-05-17 11:23:36 -04:00
|
|
|
margin-top: $toast-default-margin;
|
|
|
|
line-height: $gl-line-height;
|
|
|
|
background-color: rgba($gray-900, $toast-background-opacity);
|
|
|
|
|
2019-07-09 19:33:54 -04:00
|
|
|
span {
|
|
|
|
padding-right: $gl-padding-8;
|
|
|
|
}
|
|
|
|
|
2019-05-17 11:23:36 -04:00
|
|
|
@include media-breakpoint-down(xs) {
|
2019-06-27 03:03:37 -04:00
|
|
|
.action:first-of-type {
|
2019-05-17 11:23:36 -04:00
|
|
|
// Ensures actions buttons are right aligned on mobile
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.action {
|
|
|
|
color: $blue-300;
|
2019-07-09 19:33:54 -04:00
|
|
|
margin: 0 0 0 $toast-default-margin;
|
2019-05-17 11:23:36 -04:00
|
|
|
text-transform: none;
|
|
|
|
font-size: $gl-font-size;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toast-close {
|
|
|
|
font-size: $default-icon-size;
|
|
|
|
margin-left: $toast-default-margin;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Overrides the default positioning of toasts
|
|
|
|
body .toasted-container.bottom-left {
|
|
|
|
bottom: $toast-offset;
|
|
|
|
left: $toast-offset;
|
2019-04-25 10:50:57 -04:00
|
|
|
}
|