update tabcontrol style

This commit is contained in:
2020-08-10 11:45:43 +08:00
parent e40f3d0511
commit d1fbb8ffb7
7 changed files with 165 additions and 56 deletions

View File

View File

@ -0,0 +1,14 @@
/*side panel style*/
div.tabitem-activated {
background: #0000ff;
}
div.tabitem-activated b {
color: white;
}
div.tabitem-deactivated {
background: #ffffff00;
}
div.tabitem-deactivated b {
color: black;
}

View File

@ -0,0 +1,13 @@
function tabControlSwitcher(tabcontrolIndex, neededIndex) {
//disable all
$(".tabnavigation_" + tabcontrolIndex).each(function () {
$(this).removeClass("tabitem-activated").addClass("tabitem-deactivated");
});
$(".tabpanel_" + tabcontrolIndex).each(function () {
$(this).hide();
});
// set current
$("#tabnavigation_" + tabcontrolIndex + "_" + neededIndex).removeClass("tabitem-deactivated").addClass("tabitem-activated");
$("#tabpanel_" + tabcontrolIndex + "_" + neededIndex).show();
}

View File

@ -85,21 +85,6 @@ text.link-delay {
color: black;
}
/*side panel style*/
div.tabitem-activated {
background: #0000ff;
}
b.tabitem-activated {
color: white;
}
div.tabitem-deactivated {
background: #ffffff00;
}
b.tabitem-deactivated {
color: black;
}
pre {
border: 1px solid black;
border-radius: 2px;