Add custom flash library that works as expected

This commit is contained in:
Dane Everitt 2018-05-26 14:50:38 -07:00
parent bab20812a0
commit 0a706d1b45
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
13 changed files with 233 additions and 37 deletions

View file

@ -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; }

View 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;
}
}
}