change sweetalert theme

This commit is contained in:
cutls 2021-04-15 05:02:14 +09:00
parent c35a27eda6
commit fcedefe815
9 changed files with 17 additions and 19 deletions

View File

@ -103,7 +103,6 @@ option {
cursor: pointer; cursor: pointer;
} }
.badge { .badge {
min-width: 0 !important;
margin-left: 0.4rem !important; margin-left: 0.4rem !important;
} }
.unvisible { .unvisible {
@ -499,13 +498,17 @@ textarea {
font-size: 1rem !important; font-size: 1rem !important;
font-family: inherit; font-family: inherit;
} }
.swal2-popup { .swal2-popup, .swal2-header {
background-color: var(--subcolor) !important; background-color: var(--subcolor) !important;
} }
.swal2-title, .swal2-title,
.swal2-content { .swal2-content {
color: var(--text) !important; color: var(--text) !important;
} }
h2.swal2-title {
margin: 0;
line-height: 100%;
}
#src-contents svg { #src-contents svg {
margin-right: 0.4rem; margin-right: 0.4rem;
} }

8
app/css/sweetalert2-material.min.css vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -205,8 +205,6 @@ function multiDel(target) {
text: obj[target]['user'] + '@' + obj[target]['domain'] + lang.lang_manager_confirm, text: obj[target]['user'] + '@' + obj[target]['domain'] + lang.lang_manager_confirm,
type: 'warning', type: 'warning',
showCancelButton: true, showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: lang.lang_yesno, confirmButtonText: lang.lang_yesno,
cancelButtonText: lang.lang_no cancelButtonText: lang.lang_no
}).then(result => { }).then(result => {
@ -299,8 +297,6 @@ function multiDel2(target) {
text: obj[target]['user'] + '@' + obj[target]['domain'] + lang.lang_manager_confirm, text: obj[target]['user'] + '@' + obj[target]['domain'] + lang.lang_manager_confirm,
type: 'warning', type: 'warning',
showCancelButton: true, showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: lang.lang_yesno, confirmButtonText: lang.lang_yesno,
cancelButtonText: lang.lang_no cancelButtonText: lang.lang_no
}).then(result => { }).then(result => {

View File

@ -276,8 +276,6 @@ function deleteImage(key) {
title: lang.lang_postimg_delete, title: lang.lang_postimg_delete,
type: 'warning', type: 'warning',
showCancelButton: true, showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: lang.lang_yesno, confirmButtonText: lang.lang_yesno,
cancelButtonText: lang.lang_no cancelButtonText: lang.lang_no
}).then(result => { }).then(result => {

View File

@ -55,8 +55,6 @@ function post(mode, postvis, dry) {
text: lang.lang_post_cwtxt + plus, text: lang.lang_post_cwtxt + plus,
type: 'info', type: 'info',
showCancelButton: true, showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#3085d6',
confirmButtonText: lang.lang_post_btn2, confirmButtonText: lang.lang_post_btn2,
cancelButtonText: lang.lang_post_btn3, cancelButtonText: lang.lang_post_btn3,
showCloseButton: true, showCloseButton: true,

View File

@ -259,8 +259,6 @@ function block(acct_id) {
text: '', text: '',
type: 'warning', type: 'warning',
showCancelButton: true, showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: lang.lang_yesno, confirmButtonText: lang.lang_yesno,
cancelButtonText: lang.lang_no cancelButtonText: lang.lang_no
}).then(result => { }).then(result => {
@ -312,8 +310,6 @@ function muteDo(acct_id) {
text: '', text: '',
type: 'warning', type: 'warning',
showCancelButton: true, showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: lang.lang_yesno, confirmButtonText: lang.lang_yesno,
cancelButtonText: lang.lang_no cancelButtonText: lang.lang_no
}).then(result => { }).then(result => {
@ -393,8 +389,6 @@ function redraft(id, acct_id) {
text: lang.lang_status_redraft, text: lang.lang_status_redraft,
type: 'warning', type: 'warning',
showCancelButton: true, showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: lang.lang_yesno, confirmButtonText: lang.lang_yesno,
cancelButtonText: lang.lang_no cancelButtonText: lang.lang_no
}).then(result => { }).then(result => {

View File

@ -1331,6 +1331,7 @@ function asReadEnd() {
Swal.fire({ Swal.fire({
title: lang.lang_tl_postmarkers_title, title: lang.lang_tl_postmarkers_title,
html: lang.lang_tl_postmarkers, html: lang.lang_tl_postmarkers,
showConfirmButton: false,
timer: 3000, timer: 3000,
onBeforeOpen: () => { onBeforeOpen: () => {
Swal.showLoading() Swal.showLoading()

View File

@ -166,7 +166,7 @@ function nowplaying(mode) {
} else { } else {
Swal.fire({ Swal.fire({
type: 'info', type: 'info',
title: lang.lang_spotify_acct, text: lang.lang_spotify_acct,
}) })
} }
} else if (mode == 'itunes') { } else if (mode == 'itunes') {
@ -239,7 +239,7 @@ function nowplaying(mode) {
} else { } else {
Swal.fire({ Swal.fire({
type: 'info', type: 'info',
title: lang.lang_spotify_acct, text: lang.lang_spotify_acct,
}) })
} }
} }

View File

@ -226,7 +226,7 @@ function spotifytips() {
} else { } else {
Swal.fire({ Swal.fire({
type: 'info', type: 'info',
title: lang.lang_spotify_acct text: lang.lang_spotify_acct
}) })
tips('ver') tips('ver')
return false return false