#kapa-widget-container { z-index: 10000 !important; position: absolute !important; } .mantine-Modal-root { z-index: 10000; position: absolute; } #kapa-widget-container figure { padding: 0 !important; } .mantine-Modal-root figure { padding: 0 !important; } /* RTD Flyout */ .rst-versions { z-index: 10001 !important; /* Set to 10001 to avoid overlap with kapa */ } /* Override the default PyData sphinx theme announcement styling */ .bd-header-announcement { background-color: var(--pst-color-surface) !important; border: none !important; padding: 4px !important; min-height: 0 !important; height: auto !important; } .bd-header-announcement__content { background-color: var(--pst-color-surface) !important; color: var(--pst-color-text-base) !important; padding: 0 !important; } .bd-header-announcement__content > div { padding: 4px 8px !important; line-height: 1 !important; } .bd-header-announcement a { color: var(--pst-color-link) !important; } html[data-theme="light"] { --pst-color-link: #176de8; --pst-color-primary: #176de8; --pst-color-secondary: var(--pst-color-primary); --pst-color-text-base: #4c4c4d; --logo-text-color: #0E2E65; } html[data-theme="dark"] { --pst-color-link: #176de8; --pst-color-primary: #176de8; --pst-color-secondary: var(--pst-color-primary); --pst-color-text-base: #d8d8d8; --logo-text-color: #D8D8D8; .bd-sidebar::-webkit-scrollbar { width: 6px; background-color: #2e2e2e; } .bd-sidebar::-webkit-scrollbar-thumb { background-color: #565656; border-radius: 6px; } .bd-sidebar::-webkit-scrollbar-thumb:hover { background-color: #6f6f6f; } /* Common hidden scrollbar when not hovered */ .bd-sidebar:not(:hover) { -ms-overflow-style: none; } .bd-sidebar:not(:hover)::-webkit-scrollbar { background: var(--pst-color-background); } .bd-sidebar:not(:hover)::-webkit-scrollbar-thumb { background: var(--pst-color-background); } } /* Light mode scrollbar styles */ .bd-sidebar::-webkit-scrollbar { width: 6px; background-color: #f0f0f0; } .bd-sidebar::-webkit-scrollbar-thumb { background-color: #c1c1c1; /* rounded corners */ border-radius: 6px; } .bd-sidebar::-webkit-scrollbar-thumb:hover { background-color: #a8a8a8; } /* Common hidden scrollbar when not hovered */ .bd-sidebar:not(:hover) { -ms-overflow-style: none; } .bd-sidebar:not(:hover)::-webkit-scrollbar { background: var(--pst-color-background); } .bd-sidebar:not(:hover)::-webkit-scrollbar-thumb { background: var(--pst-color-background); } /* Avoid the border of the search box when click on it */ .form-control:focus,:focus-visible { border: none; box-shadow: none; outline: none; background-color: var(--pst-color-background); color: var(--pst-color-text-muted); } /* Display a "New" icon for new items (custom.js) */ .new-item::after { content: "New"; display: inline-block; color: white; /* Keeps the text color white for contrast */ font-size: 12px; /* Adjusted for a smaller font size */ background-color: #0d6efd; /* Bootstrap's 'primary' blue color for Bootstrap 5 */ border-radius: 2px; margin: 0px 0px 0px 4px; padding: 2px 5px; /* Reduced padding for a more compact label */ margin-left: 6px; /* Space between the text and the label */ vertical-align: text-bottom; line-height: 1; /* Adjust line height to ensure vertical alignment */ } /* External sidebar links flagged as new: the theme renders its external-link icon via the same ::after pseudo-element (nav.bd-links li>a.reference.external:after, which out-specifies .new-item::after), so re-assert the badge at higher specificity to replace the icon. */ nav.bd-links li > a.reference.external.new-item::after { content: "New"; font: 12px/1 var(--pst-font-family-base); margin-left: 6px; } .navbar { --bs-navbar-nav-link-padding-x: 1rem; } .navbar-brand.logo>svg { width: 120px; } .navbar-brand.logo>svg .cls-6 { fill: var(--pst-color-text-base); } /********************************************* * Footer - content * *********************************************/ .footer { font-size: var(--sbt-font-size-small-1); &.bd-footer-content { display: flex; flex-wrap: wrap; padding: 15px; border-top: 1px solid #ccc; font-size: 85%; .bd-footer-content__inner { padding-left: 0px; p { margin-bottom: 0px; } } } } .bd-header .navbar-nav li a.nav-link:hover { text-decoration: none; } /* Add transparent underline for the other tabs that are not active to avoid active tab to be moved up. */ .nav-link { border-bottom: none; } .bd-header .navbar-nav>.current>.nav-link { border-bottom: none; } /* Avoid layout shifts in the right-hand navbar block during the first ~150ms of page load. Four post-paint events would otherwise reflow the search button + icons + kbd shortcut and visibly jiggle Slack/Twitter/GitHub: (a) The pydata theme's inline
script sets html[data-mode] to "" when localStorage has no "mode" entry. The theme CSS only shows a theme-switch icon when data-mode equals light/dark/auto, so the button collapses to ~2px until the theme JS resets data-mode to "auto" post-DCL — at which point the auto icon snaps in and pushes the icon links right by ~32px. (b) On Mac, the same theme JS swaps the search-button modifier kbd from "Ctrl" to "⌘", which is ~22px narrower and shrinks the search button. (c) FontAwesome's all.min.js replaces placeholders with inline