One more question asking for Bryan.
I also need to chang the fone size of Tabs’s title. However, the css_classes settings seems not effective for Tabs!
My folder structure is as same as the above. The changed files are as follows.
main.py
from bokeh.io import curdoc
from bokeh.models import Div, Paragraph, Select, Button, RadioButtonGroup, Column
from bokeh.models import Panel, Tabs
from bokeh.plotting import figure
select_data = Select(title = 'Select Data', value = 'example_1', options = ['example_1', 'example_2'])
btng_norm = RadioButtonGroup(labels=['center', 'scale'], css_classes=['btn_style'], active=1)
tab = []
for shiftId in range(3):
shiftName = "Monday"
if shiftId == 1:
shiftName = "Sunday"
elif shiftId == 2:
shiftName = "Saturday "
emptyFig = figure()
panel = Panel(child=emptyFig, title=shiftName)
tab.append(panel)
tabs = Tabs(tabs=tab, css_classes=['btn_style'])
tabs.active = 1
menu_dataset = Column(select_data, Div(text="""Preprocess Data""", css_classes=['missing_labels']), btng_norm, Div(text="""Analyse Data""", css_classes=['missing_labels']), tabs, name='menu_dataset', width=250)
curdoc().add_root(menu_dataset)
styles.css
.missing_labels {
color: #83329F !important;
font-weight: bold !important;
font-size: 30px !important;
display: inline-block !important;
}
.pad {
padding-bottom: 80px !important;
font-size: 30px !important;
}
.bk-root .btn_style .bk-btn-default {
border-color: #adadad !important;
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
font-size: 20px !important;
}
.bk-root .btn_style .bk-btn-default:hover {
border-color: #adadad !important;
font-size: 30px !important;
}
.bk-root .btn_style .bk-btn:active {
background-color: #2F329F !important;
font-size: 30px !important;
/*background-color: #f5f5f5 !important;*/
/*box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);*/
}