replaced sweet alert inline styles with CSS classes
This commit is contained in:
@@ -406,7 +406,7 @@ function deleteContribution(contributionId) {
|
|||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: 'Beitrag löschen',
|
confirmButtonText: 'Beitrag löschen',
|
||||||
cancelButtonText: 'Abbrechen',
|
cancelButtonText: 'Abbrechen',
|
||||||
confirmButtonColor: '#c62828'
|
customClass: { confirmButton: 'swal-btn-danger' },
|
||||||
}).then(function (result) {
|
}).then(function (result) {
|
||||||
if (!result.isConfirmed) return;
|
if (!result.isConfirmed) return;
|
||||||
|
|
||||||
@@ -500,7 +500,7 @@ function deleteModComment(commentId) {
|
|||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: 'Löschen',
|
confirmButtonText: 'Löschen',
|
||||||
cancelButtonText: 'Abbrechen',
|
cancelButtonText: 'Abbrechen',
|
||||||
confirmButtonColor: '#c62828'
|
customClass: { confirmButton: 'swal-btn-danger' },
|
||||||
}).then(function (result) {
|
}).then(function (result) {
|
||||||
if (!result.isConfirmed) return;
|
if (!result.isConfirmed) return;
|
||||||
|
|
||||||
@@ -637,7 +637,7 @@ function deleteNews(newsId) {
|
|||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: 'Löschen',
|
confirmButtonText: 'Löschen',
|
||||||
cancelButtonText: 'Abbrechen',
|
cancelButtonText: 'Abbrechen',
|
||||||
confirmButtonColor: '#c62828'
|
customClass: { confirmButton: 'swal-btn-danger' },
|
||||||
}).then(function (result) {
|
}).then(function (result) {
|
||||||
if (!result.isConfirmed) return;
|
if (!result.isConfirmed) return;
|
||||||
|
|
||||||
|
|||||||
@@ -714,7 +714,7 @@ function deleteContribution(contributionId) {
|
|||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: 'Löschen',
|
confirmButtonText: 'Löschen',
|
||||||
cancelButtonText: 'Abbrechen',
|
cancelButtonText: 'Abbrechen',
|
||||||
confirmButtonColor: '#c62828'
|
customClass: { confirmButton: 'swal-btn-danger' },
|
||||||
}).then(function (result) {
|
}).then(function (result) {
|
||||||
if (!result.isConfirmed) return;
|
if (!result.isConfirmed) return;
|
||||||
|
|
||||||
|
|||||||
@@ -286,10 +286,12 @@ select.form-input { cursor: pointer; }
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* SweetAlert2 Portal Theme */
|
/* SweetAlert2 Portal Theme */
|
||||||
|
/* SweetAlert2 Portal Theme — Notifications */
|
||||||
.swal2-popup {
|
.swal2-popup {
|
||||||
font-family: var(--font-body) !important;
|
font-family: var(--font-body) !important;
|
||||||
border-radius: var(--radius-lg) !important;
|
border-radius: var(--radius-lg) !important;
|
||||||
font-size: var(--font-base) !important;
|
font-size: var(--font-base) !important;
|
||||||
|
padding: var(--space-xl) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.swal2-title {
|
.swal2-title {
|
||||||
@@ -304,31 +306,38 @@ select.form-input { cursor: pointer; }
|
|||||||
line-height: 1.6 !important;
|
line-height: 1.6 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.swal2-actions {
|
||||||
|
gap: var(--space-sm) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.swal2-confirm {
|
.swal2-confirm {
|
||||||
border-radius: var(--radius-md) !important;
|
border-radius: var(--radius-md) !important;
|
||||||
font-size: var(--font-sm) !important;
|
font-size: var(--font-sm) !important;
|
||||||
font-weight: 600 !important;
|
font-weight: 600 !important;
|
||||||
font-family: var(--font-body) !important;
|
font-family: var(--font-body) !important;
|
||||||
padding: var(--space-sm) var(--space-lg) !important;
|
padding: var(--space-sm) var(--space-lg) !important;
|
||||||
|
min-height: 40px !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
background-color: var(--color-primary) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.swal2-cancel {
|
.swal2-cancel,
|
||||||
border-radius: var(--radius-md) !important;
|
|
||||||
font-size: var(--font-sm) !important;
|
|
||||||
font-weight: 600 !important;
|
|
||||||
font-family: var(--font-body) !important;
|
|
||||||
padding: var(--space-sm) var(--space-lg) !important;
|
|
||||||
background: var(--color-bg) !important;
|
|
||||||
color: var(--color-text) !important;
|
|
||||||
border: 1px solid var(--color-border) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.swal2-deny {
|
.swal2-deny {
|
||||||
border-radius: var(--radius-md) !important;
|
border-radius: var(--radius-md) !important;
|
||||||
font-size: var(--font-sm) !important;
|
font-size: var(--font-sm) !important;
|
||||||
font-weight: 600 !important;
|
font-weight: 600 !important;
|
||||||
font-family: var(--font-body) !important;
|
font-family: var(--font-body) !important;
|
||||||
padding: var(--space-sm) var(--space-lg) !important;
|
padding: var(--space-sm) var(--space-lg) !important;
|
||||||
|
min-height: 40px !important;
|
||||||
|
background: var(--color-bg) !important;
|
||||||
|
color: var(--color-text) !important;
|
||||||
|
border: 1px solid var(--color-border) !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.swal2-cancel:hover,
|
||||||
|
.swal2-deny:hover {
|
||||||
|
background: var(--color-border) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.swal-label {
|
.swal-label {
|
||||||
@@ -365,6 +374,10 @@ select.form-input { cursor: pointer; }
|
|||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.swal-btn-danger {
|
||||||
|
background-color: var(--color-error) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* -----------------------------------------------------------------
|
/* -----------------------------------------------------------------
|
||||||
3.7 Warning Notices
|
3.7 Warning Notices
|
||||||
|
|||||||
Reference in New Issue
Block a user