Add custom flash library that works as expected
This commit is contained in:
parent
bab20812a0
commit
0a706d1b45
13 changed files with 233 additions and 37 deletions
|
@ -4,6 +4,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
.fade-enter-active {
|
||||
animation: fadein 500ms;
|
||||
}
|
||||
|
||||
.fade-leave-active {
|
||||
animation: fadein 500ms reverse;
|
||||
}
|
||||
|
||||
@keyframes fadein {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
|
|
46
resources/assets/styles/components/notifications.css
Normal file
46
resources/assets/styles/components/notifications.css
Normal file
|
@ -0,0 +1,46 @@
|
|||
/**
|
||||
* Styling to control alert boxes.
|
||||
*/
|
||||
.alert {
|
||||
@apply .p-2 .border .items-center .leading-normal .rounded .flex .w-full .text-sm;
|
||||
|
||||
& > .title {
|
||||
@apply .flex .rounded-full .uppercase .px-2 .py-1 .text-xs .font-bold .mr-3 .leading-none;
|
||||
}
|
||||
|
||||
& > .message {
|
||||
@apply .mr-2 .text-left .flex-auto;
|
||||
}
|
||||
|
||||
&.error {
|
||||
@apply .bg-red-dark .border-red-darker .text-red-lightest;
|
||||
|
||||
& > .title {
|
||||
@apply .bg-red;
|
||||
}
|
||||
}
|
||||
|
||||
&.info {
|
||||
@apply .bg-blue-dark .border-blue-darker .text-blue-lightest;
|
||||
|
||||
& > .title {
|
||||
@apply .bg-blue;
|
||||
}
|
||||
}
|
||||
|
||||
&.success {
|
||||
@apply .bg-green-dark .border-green-darker .text-green-lightest;
|
||||
|
||||
& > .title {
|
||||
@apply .bg-green;
|
||||
}
|
||||
}
|
||||
|
||||
&.warning {
|
||||
@apply .bg-yellow-dark .border-yellow-darker .text-yellow-lightest;
|
||||
|
||||
& > .title {
|
||||
@apply .bg-yellow;
|
||||
}
|
||||
}
|
||||
}
|
Reference in a new issue