update tabcontrol style
This commit is contained in:
0
SuperScriptViewer/static/converter.js
Normal file
0
SuperScriptViewer/static/converter.js
Normal file
14
SuperScriptViewer/static/tabcontrol.css
Normal file
14
SuperScriptViewer/static/tabcontrol.css
Normal 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;
|
||||
}
|
13
SuperScriptViewer/static/tabcontrol.js
Normal file
13
SuperScriptViewer/static/tabcontrol.js
Normal 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();
|
||||
}
|
@ -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;
|
||||
|
Reference in New Issue
Block a user