Attempting to modify the font-size of a TabPanel
title, have followed other similar topics without success. A minimal example is below.
app
-- main.py
-- templates
---- index.html
---- styles.css
main.py
from bokeh.io import curdoc
from bokeh.models import Tabs, TabPanel
from bokeh.layouts import column
doc = curdoc()
doc.add_root(Tabs(tabs=[
TabPanel(child=column(), title='tab1'),
TabPanel(child=column(), title='tab2')]))
index.html
{% extends base %}
{% block contents %}
<style>
{% include 'styles.css' %}
</style>
{{ super() }}
{% endblock %}
styles.css
.bk-tab {
background-color: red;
}
The app then appears without the red background applied to the tabs.
bokeh serve app --show
I do see the css code showing up in the page source -
...
<script type="text/javascript">
Bokeh.set_log_level("info");
</script>
</head>
<body>
<style>
.bk-tab {
background-color: red;
}
</style>
<div id="edce36a3-2f28-442e-92bd-14e41c060ee7" data-root-id="p1005" style="display: contents;"></div>
<script type="application/json" id="e7c071bf-0465-455b-81a4-ce0a501df462">
...
Any idea what can change to make this all work?
Thank you for the support!