Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show new flash messages until discarded by user #10319

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions app/webpacker/controllers/flash_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@ document.addEventListener("turbolinks:before-cache", () =>
);

export default class extends Controller {
connect() {
setTimeout(this.fadeout.bind(this), 3000);
}

fadeout() {
this.element.classList.add("animate-hide-500");
setTimeout(this.close.bind(this), 500);
}

close() {
this.element.remove();
}
Expand Down
11 changes: 0 additions & 11 deletions app/webpacker/css/darkswarm/animations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@

// ANIMATION FUNCTIONS

@keyframes fade-out-hide {
0% {opacity: 1; visibility: visible;}
99% {opacity: 0; visibility: visible;}
100% {opacity: 0; visibility: hidden;}
}

.animate-hide-500 {
animation: fade-out-hide 0.5s;
}

//
@-webkit-keyframes slideInDown {
0% {
opacity: 0;
Expand Down