Custom CSS not working in bokeh-1.1.0dev6
See original GitHub issueI’ve created a custom CSS for modifying styles of dropdown buttons. I’m using bokeh-1.1.0dev6 version and in the output, I can see that the CSS styles are not reflecting. This was working fine till version 1.0.4. Is this something related to the recent update in layouts?
The CSS code is below:
.bk-root {
font-family: georgia;
font-size: 10pt;
position: relative;
width: auto;
height: auto;
}
.bk-root .bk-widget-box {
overflow: visible;
padding: 10.1px 15px;
}
.bk-root .bk-widget label {
margin-bottom: 2px;
}
.bk-root .bk-widget select {
min-width: 50%;
}
.bk-root .bk-widget-form-input {
-moz-appearance: none;
font-family: georgia;
font-size: 9pt;
display: block;
padding: 0;
height: 30px;
color: whitesmoke;
background-color: #05b7ff;
border: 1px solid #ccc;
border-radius: 40px;
border-color: whitesmoke;
}
.bk-root .bk-bs-btn-default.bk-bs-active{
color: whitesmoke;
background-color: #05b7ff;
border-color: whitesmoke;
-webkit-appearance: none;
}
.bk-root .bk-bs-btn-default {
color: #333;
background-color: whitesmoke;
border-color: #ccc;
margin-top: 17px;
}
Screenshots:
Expected output:
Current output:
Thanks.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
bokeh widget: custom css - python - Stack Overflow
I'm not sure how to describe the 'myclass' rules using bokeh yet. ... can set the number of visible items with MultiSelect.size instead...
Read more >Extending Bokeh — Bokeh 1.0.0 documentation
Custom extensions can be made and used with standard releases, and do not require setting up a development environment or building anything from...
Read more >Python and Bokeh — Part III (Tutorial) - Medium
Bokeh applications are not just Python scripts, they may contain templates, CSS files, custom themes and more. Templates and custom themes ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@samirak93 I seem to have got it, maybe a little differently than you did. I’m not sure of the pros/cons. My file structure is buttonBokeh/templates
Here is my buttonBokeh/main.py code:
And here is buttonBokeh/templates/index.html
And here is the buttonBokeh/templates/styles.css
I run it with:
bokeh serve --allow-websocket-origin=ip_address:xxxx buttonBokeh --port xxxx
I’m not sure there is any action to take here, CSS targets are stabilizing over time but still subject to development.