mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 16:53:34 +02:00
related to #1507 dark mode pluigin alerts
This commit is contained in:
@@ -87,7 +87,7 @@ function activatePlugin(id) {
|
||||
if (data.stat == 'ok') {
|
||||
let pluginName = id;
|
||||
$("#" + id + " .pluginNotif").stop(false, true);
|
||||
$("#" + id + " .AddPluginSuccess label span:first").html(plugin_added_str.replace("%s", pluginName));
|
||||
$("#" + id + " .AddPluginSuccess label span:first").html(plugin_added_str);
|
||||
$("#" + id + " .AddPluginSuccess").css("display", "flex");
|
||||
|
||||
nb_plugin.active += 1;
|
||||
@@ -128,7 +128,7 @@ function disactivatePlugin(id) {
|
||||
if (data.stat == 'ok') {
|
||||
let pluginName = id;
|
||||
$("#" + id + " .pluginNotif").stop(false, true);
|
||||
$("#" + id + " .DeactivatePluginSuccess label span:first").html(plugin_deactivated_str.replace("%s", pluginName));
|
||||
$("#" + id + " .DeactivatePluginSuccess label span:first").html(plugin_deactivated_str);
|
||||
$("#" + id + " .DeactivatePluginSuccess").css("display", "flex");
|
||||
|
||||
nb_plugin.inactive += 1;
|
||||
@@ -209,7 +209,7 @@ function restorePlugin(id) {
|
||||
if (data.stat == 'ok') {
|
||||
let pluginName = id;
|
||||
$("#" + id + " .pluginNotif").stop(false, true);
|
||||
$("#" + id + " .RestorePluginSuccess label span:first").html(plugin_restored_str.replace("%s", pluginName));
|
||||
$("#" + id + " .RestorePluginSuccess label span:first").html(plugin_restored_str);
|
||||
$("#" + id + " .RestorePluginSuccess").css("display", "flex");
|
||||
}
|
||||
},
|
||||
|
||||
@@ -554,31 +554,17 @@ jQuery(".pluginMiniBox").each(function(index){
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.AddPluginSuccess span,
|
||||
.RestorePluginSuccess span,
|
||||
.DeactivatePluginSuccess span {
|
||||
color: #0a0;
|
||||
}
|
||||
|
||||
.AddPluginSuccess label,
|
||||
.DeactivatePluginSuccess label,
|
||||
.RestorePluginSuccess label {
|
||||
padding: 10px;
|
||||
background-color: #c2f5c2;
|
||||
cursor: default;
|
||||
color: #0a0;
|
||||
border-radius: 30px;
|
||||
}
|
||||
|
||||
.PluginActionError span {
|
||||
color: rgb(170, 0, 0);
|
||||
}
|
||||
|
||||
.PluginActionError label {
|
||||
padding: 10px;
|
||||
background-color: #f5c2c2;
|
||||
cursor: default;
|
||||
color: rgb(170, 0, 0);
|
||||
border-radius: 30px;
|
||||
}
|
||||
|
||||
|
||||
@@ -2181,6 +2181,28 @@ h2:lang(en) { text-transform:capitalize; }
|
||||
color: #111;
|
||||
}
|
||||
|
||||
.AddPluginSuccess span,
|
||||
.RestorePluginSuccess span,
|
||||
.DeactivatePluginSuccess span {
|
||||
color: #0a0;
|
||||
}
|
||||
|
||||
.AddPluginSuccess label,
|
||||
.DeactivatePluginSuccess label,
|
||||
.RestorePluginSuccess label {
|
||||
background-color: #c2f5c2;
|
||||
color: #0a0;
|
||||
}
|
||||
|
||||
.PluginActionError span {
|
||||
color: rgb(170, 0, 0);
|
||||
}
|
||||
|
||||
.PluginActionError label {
|
||||
background-color: #f5c2c2;
|
||||
color: rgb(170, 0, 0);
|
||||
}
|
||||
|
||||
.PluginOptionsBlock{
|
||||
display:none;
|
||||
position:absolute;
|
||||
|
||||
@@ -1245,6 +1245,27 @@ li.plupload_delete a:hover {background: url("images/cancelhover.svg")!important;
|
||||
color: #111;
|
||||
}
|
||||
|
||||
.AddPluginSuccess span,
|
||||
.RestorePluginSuccess span,
|
||||
.DeactivatePluginSuccess span {
|
||||
color: #c2f5c2;
|
||||
}
|
||||
|
||||
.AddPluginSuccess label,
|
||||
.DeactivatePluginSuccess label,
|
||||
.RestorePluginSuccess label {
|
||||
color: #c2f5c2;
|
||||
background-color: #0a0;
|
||||
}
|
||||
|
||||
.PluginActionError span {
|
||||
color: #ffd5dc
|
||||
}
|
||||
|
||||
.PluginActionError label {
|
||||
background-color: #f22;
|
||||
color: #ffd5dc
|
||||
}
|
||||
|
||||
.addAlbum label{
|
||||
color:#aaa;
|
||||
|
||||
Reference in New Issue
Block a user