dark theme: colorized menu icons

This commit is contained in:
User Web
2018-12-19 02:46:17 +03:00
parent 407c8dae8c
commit f442a3caf6
3 changed files with 57 additions and 5 deletions

View File

@@ -1690,7 +1690,8 @@ body.overview div.smoothie-chart-tooltip {
background-color:rgba(255,255,255,0.7);
}
#jailslist td:nth-child(1), #jailslist td:nth-child(2) {
#jailslist td:nth-child(1), #jailslist td:nth-child(2),
#bhyveslist td:nth-child(1), #bhyveslist td:nth-child(2) {
cursor:pointer;
}

View File

@@ -420,3 +420,41 @@ header .top-right {
border-bottom:1px solid rgba(255,255,255,0.2);
}
.summary_table tr td:first-child {
padding-right:10px;
}
#menu .icon-chart-bar:before {
color:rgba(255,100,100,0.7);
}
#menu .icon-server:before {
color:rgba(100,255,100,0.7);
}
#menu .icon-cubes:before {
color:rgba(100,100,255,0.7);
}
#menu .icon-th-list:before {
color:rgba(100,255,255,0.7);
}
#menu .icon-plug:before {
color:rgba(255,100,255,0.7);
}
#menu .icon-key:before {
color:rgba(255,255,100,0.7);
}
#menu .icon-inbox:before {
color:rgba(100,255,100,0.7);
}
#menu .icon-upload:before {
color:rgba(255,100,100,0.7);
}
#menu .icon-database:before {
color:rgba(100,255,100,0.7);
}
#menu .icon-edit:before {
color:rgba(255,100,255,0.7);
}
#menu .icon-list-alt:before {
color:rgba(255,255,255,0.7);
}
#menu .icon-wpforms:before {

View File

@@ -1734,7 +1734,20 @@ var clonos={
var aspl=$('div.main').hasClass('asplit');
if(!aspl) $('div.main').addClass('asplit');
// var e=$(tr).parents('div.main');if(e){$(e).toggleClass('asplit');}
this.getSummaryInfo(trid);
this.getSummaryInfo(trid,tblid);
$('.sel',tbl).removeClass('sel');
$(tr).addClass('sel');
$('tbody',tbl).animate({scrollTop: ($(tr).offset().top - $('tbody tr:first-child',tbl).offset().top)},400);
}
}
if(tblid=='bhyveslist')
{
if(td==$(tr).children()[0] || td==$(tr).children()[1])
{
var aspl=$('div.main').hasClass('asplit');
if(!aspl) $('div.main').addClass('asplit');
// var e=$(tr).parents('div.main');if(e){$(e).toggleClass('asplit');}
this.getSummaryInfo(trid,tblid);
$('.sel',tbl).removeClass('sel');
$(tr).addClass('sel');
$('tbody',tbl).animate({scrollTop: ($(tr).offset().top - $('tbody tr:first-child',tbl).offset().top)},400);
@@ -3174,10 +3187,10 @@ var clonos={
delete graphs.list[id];
},
getSummaryInfo:function(jname)
getSummaryInfo:function(jname,mode)
{
this.openedJailSummary=jname;
var posts=[{'name':'jname','value':jname}];
var posts=[{'name':'jname','value':jname},{'name':'mode','value':mode}];
this.loadData('getSummaryInfo',$.proxy(this.onGetSummaryInfo,this),posts);
},
onGetSummaryInfo:function(data)