Path: blob/main/py-polars/docs/source/_static/css/custom.css
6939 views
/* To have blue background of width of the block (instead of width of content) */1dl.class>dt:first-of-type {2display: block !important;3}45/* Display long method names over multiple lines in navbar. */6.bd-toc-item {7overflow-wrap: break-word;8}910/* Dark & light theme tweaks */11html[data-theme="light"] {12--pst-color-on-background: #ecf4ff;13--pst-gradient-sidebar-left: #ffffff;14--pst-gradient-sidebar-right: #fbfbfb;15--pst-color-border: #cccccc;16}1718html[data-theme="dark"] {19--pst-color-on-background: #333333;20--pst-gradient-sidebar-left: #121212;21--pst-gradient-sidebar-right: #181818;22--pst-color-sidebar-nav: #181818;23--pst-color-border: #444444;24}2526/* add subtle gradients to sidebar and card elements */27div.bd-sidebar-primary {28background-image: linear-gradient(90deg, var(--pst-gradient-sidebar-left) 0%, var(--pst-gradient-sidebar-right) 100%);29}3031div.sd-card {32background-image: linear-gradient(0deg, var(--pst-gradient-sidebar-left) 0%, var(--pst-gradient-sidebar-right) 100%);33}3435/* match docs footer colour to the header */36footer.bd-footer {37background-color: var(--pst-color-on-background);38}3940/*41we're not currently doing anything meaningful with the42right toc, so hide until there's something to put there43*/44div.bd-sidebar-secondary {45display: none;46}4748label.sidebar-toggle.secondary-toggle {49display: none !important;50}5152/* fix visited link colour */53a:visited {54color: var(--pst-color-link);55}5657/* fix ugly navbar scrollbar display */58.sidebar-primary-items__end {59margin: 0 !important;60}6162/* give code examples the same faint drop-shadow as admonitions */63pre {64box-shadow: 0 .2rem .5rem var(--pst-color-shadow), 0 0 .0625rem var(--pst-color-shadow) !important;65}666768