Skip to content

feat(theme): modernize DeepModeling banner styling#78

Merged
njzjz merged 6 commits into
deepmodeling:masterfrom
njzjz-bot:modernize-sphinx-book-theme
May 30, 2026
Merged

feat(theme): modernize DeepModeling banner styling#78
njzjz merged 6 commits into
deepmodeling:masterfrom
njzjz-bot:modernize-sphinx-book-theme

Conversation

@njzjz-bot
Copy link
Copy Markdown
Contributor

Problem

  • The injected DeepModeling banner still used older fixed-header layout patterns, wide nav spacing, square dropdowns, and relatively flat light/dark styling.
  • DeepModeling projects already using sphinx-book-theme can look more modern without switching themes or changing downstream configuration.

Change

  • Refresh the banner CSS with shared design tokens, a translucent sticky header, softer borders/shadows, compact navigation pills, and a rounded dropdown menu.
  • Improve mobile navigation spacing and hierarchy with a full-screen dark overlay.
  • Add sphinx-book-theme-friendly polish for common article/sidebar/card surfaces and simplify dark-mode colors through variables.

Notes

  • This keeps the existing sphinx-book-theme setup and only changes the injected CSS.
  • Validation: uvx --from cssutils python parsed deepmodeling_sphinx/banner.css; uvx ruff check .; git diff --check.
  • A full docs build was attempted, but dependency wheel downloads from PyPI repeatedly failed in this environment with transient TLS/download errors before completion.

Authored by OpenClaw (model: custom-chat-jinzhezeng-group/gpt-5.5)

njzjz-bot and others added 6 commits May 30, 2026 14:00
Refresh the injected DeepModeling CSS while staying on sphinx-book-theme. The update adds design tokens, a translucent sticky header, compact navigation pills, a rounded dropdown, improved mobile menu spacing, and dark-mode variables.

Authored by OpenClaw (model: custom-chat-jinzhezeng-group/gpt-5.5)
Center the Docs dropdown chevron, align dropdown items vertically, and avoid an extra scrollbar in the primary sidebar after the banner refresh.

Authored by OpenClaw (model: custom-chat-jinzhezeng-group/gpt-5.5)
Restore the banner's non-sticky behavior so it scrolls away like the previous layout while keeping the refreshed visual styling.

Authored by OpenClaw (model: custom-chat-jinzhezeng-group/gpt-5.5)
Render the Docs chevron as a flex pseudo-element instead of a background image so it has real spacing from the label and cannot overlap the text.

Authored by OpenClaw (model: custom-chat-jinzhezeng-group/gpt-5.5)
Center dropdown item labels horizontally so the menu matches the centered top navigation style.

Authored by OpenClaw (model: custom-chat-jinzhezeng-group/gpt-5.5)
@njzjz njzjz merged commit 31e60fe into deepmodeling:master May 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants