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;
}
.badge {
min-width: 0 !important;
margin-left: 0.4rem !important;
}
.unvisible {
@ -499,13 +498,17 @@ textarea {
font-size: 1rem !important;
font-family: inherit;
}
.swal2-popup {
.swal2-popup, .swal2-header {
background-color: var(--subcolor) !important;
}
.swal2-title,
.swal2-content {
color: var(--text) !important;
}
h2.swal2-title {
margin: 0;
line-height: 100%;
}
#src-contents svg {
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,
type: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: lang.lang_yesno,
cancelButtonText: lang.lang_no
}).then(result => {
@ -299,8 +297,6 @@ function multiDel2(target) {
text: obj[target]['user'] + '@' + obj[target]['domain'] + lang.lang_manager_confirm,
type: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: lang.lang_yesno,
cancelButtonText: lang.lang_no
}).then(result => {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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