Navigation Menu

Skip to content

Commit

Permalink
related to #1507 dark mode pluigin alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuLP committed Oct 12, 2021
1 parent 9c367c6 commit c3670b8
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 17 deletions.
6 changes: 3 additions & 3 deletions admin/themes/default/js/plugins_installated.js
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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");
}
},
Expand Down
14 changes: 0 additions & 14 deletions admin/themes/default/template/plugins_installed.tpl
Expand Up @@ -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;
}
Expand Down
22 changes: 22 additions & 0 deletions admin/themes/default/theme.css
Expand Up @@ -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;
Expand Down
21 changes: 21 additions & 0 deletions admin/themes/roma/theme.css
Expand Up @@ -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;
Expand Down

0 comments on commit c3670b8

Please sign in to comment.