1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-18 10:51:21 +02:00

feat(admin-plugin): use swal2 instead of swal #211

This commit is contained in:
Awilum
2020-02-02 16:15:49 +03:00
parent 7e3a06109d
commit d43a653dd4
3 changed files with 34 additions and 35 deletions

View File

@@ -15,7 +15,7 @@
@import 'modules/presley';
@import 'modules/tabs';
@import 'modules/select2';
@import 'modules/swal';
@import 'modules/swal2';
/* Components */
@import 'components/tables';

View File

@@ -1,34 +0,0 @@
/* purgecss start ignore */
.swal-overlay
{
background-color: rgba(0, 0, 0, .75);
}
.swal-modal
{
@apply border-none rounded-none;
}
.swal-button
{
@apply px-4 py-2 border-1 border-solid border-dark text-white inline-block w-auto bg-dark rounded-none;
}
.swal-button:focus
{
@apply shadow-none;
}
.swal-button--cancel
{
@apply bg-white text-black border-dark;
}
.swal-button:not([disabled]):hover,
.swal-button--cancel:not([disabled]):hover
{
@apply border-black bg-black text-white;
}
/* purgecss end ignore */

View File

@@ -0,0 +1,33 @@
/* purgecss start ignore */
.swal2-container
{
background-color: rgba(0, 0, 0, .75);
}
.swal2-popup
{
@apply border-none rounded-none;
}
.swal2-styled.swal2-confirm
{
@apply px-4 py-2 border border-solid border-dark text-white inline-block w-auto bg-dark rounded-none;
}
.swal2-styled.swal2-confirm:focus
{
@apply shadow-none;
}
.swal2-styled.swal2-cancel
{
@apply px-4 py-2 border border-solid inline-block w-auto bg-white text-black border-dark rounded-none;
}
.swal2-actions:not(.swal2-loading) .swal2-styled:hover
{
@apply border-black bg-black text-white;
}
/* purgecss end ignore */