mwouts / itables

Pandas DataFrames as Interactive DataTables
https://mwouts.github.io/itables/
MIT License
710 stars 53 forks source link

Modernize paging buttons style #256

Closed planetoryd closed 2 months ago

planetoryd commented 2 months ago
from IPython import display
from itables import init_notebook_mode, show, options

init_notebook_mode(all_interactive=True)

css = """
div.dt-container .dt-paging .dt-paging-button:hover {
    background: grey
}
div.dt-container .dt-paging .dt-paging-button.current {
    background: none
}
"""
display.display(display.HTML(f"<style>{css}</style>" ""))

The linear gradient was killing me

image

mwouts commented 2 months ago

Thanks @planetoryd for sharing! If you don't mind I will continue to take the default CSS from datatables.net, but it's great to know how to change it.