From b3f2cdb56f2e4b8f731ae8d25c3d0b606efeda51 Mon Sep 17 00:00:00 2001 From: 5andu Date: Fri, 22 Dec 2023 01:38:33 +0100 Subject: [PATCH 1/2] add keyframe for Flash auto-disappearance --- config/tailwind.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/tailwind.config.js b/config/tailwind.config.js index ab2b4e68..aaf8dee8 100644 --- a/config/tailwind.config.js +++ b/config/tailwind.config.js @@ -16,7 +16,10 @@ module.exports = { // custom color palette for branding, see https://tailwindcss.com/docs/customizing-colors colors: { primary: colors.lime - } + }, + keyframes: { + flashfade: { "0%, 100%": { opacity: "0" }, "5%, 80%": { opacity: "1" } }, + }, }, }, plugins: [ From 95d5d9872c19e3e63802b61f1274e1858ec7b285 Mon Sep 17 00:00:00 2001 From: 5andu Date: Fri, 22 Dec 2023 01:39:38 +0100 Subject: [PATCH 2/2] added Flash auto-disappearance --- app/views/shared/_flash.html.erb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/views/shared/_flash.html.erb b/app/views/shared/_flash.html.erb index 4c07d359..0655a7d0 100644 --- a/app/views/shared/_flash.html.erb +++ b/app/views/shared/_flash.html.erb @@ -4,7 +4,7 @@
<% if flash[:alert].present? %> -