Browse Source

adding #42

master
HerrHase 2 years ago
parent
commit
b0c645caf0
1 changed files with 23 additions and 0 deletions
  1. +23
    -0
      src/scss/components/_toast.scss

+ 23
- 0
src/scss/components/_toast.scss View File

@ -81,6 +81,7 @@
} }
} }
// adding colors
@include toast-color('danger'); @include toast-color('danger');
@include toast-color('info'); @include toast-color('info');
@include toast-color('success'); @include toast-color('success');
@ -93,5 +94,27 @@
margin: 2rem; margin: 2rem;
z-index: 30; z-index: 30;
// position modificators
&--right {
left: inherit;
right: 0;
.toast {
left: inherit;
right: calc(-100% - 2rem);
transition: right 0.1s;
&--animation {
left: inherit;
right: 0;
}
}
}
&--top {
bottom: inherit;
top: 0;
}
} }
} }

Loading…
Cancel
Save