Files
grpc/doc/python/sphinx/_static/custom.css
Sreenithi Sridharan 977dd13944 [Python] Modernize and revamp Public API Docs (#41287)
Modernize docs using pydata_sphinx_theme

[Screen recording 2025-12-22 4.54.40 PM.webm](https://github.com/user-attachments/assets/58b5254f-1357-4c09-9278-fb4763b5337d)

Also visible in Dark mode. (default is auto based on system settings)
<img width="2560" height="1440" alt="Screenshot 2025-12-22 5 01 55 PM" src="https://github.com/user-attachments/assets/f11e3705-d92c-4dfc-85d9-b09ae6a83661" />

Closes #41287

PiperOrigin-RevId: 857006550
2026-01-16 00:28:13 -08:00

39 lines
763 B
CSS

html[data-theme="dark"] {
--pst-color-target: color-mix(in srgb, var(--pst-color-surface), purple 10%)
}
/* Sidebar Widths */
.bd-sidebar-primary {
width: 17%;
}
.bd-sidebar-secondary {
width: 30%;
}
@media (max-width: 960px) {
/* Ensure long function/method signatures wrap on mobile */
dt.sig {
white-space: normal !important;
overflow-wrap: break-word !important;
word-break: break-all !important;
/* Force break for very long identifiers */
}
/* Add a bit of indentation for wrapped lines to keep them readable */
dt.sig-object {
padding-left: 1em;
text-indent: -1em;
}
}
/* Mobile Sidebar Widths */
@media (max-width: 960px) {
.bd-sidebar-primary,
.bd-sidebar-secondary {
width: 75% !important;
}
}