Skip to content

Style method entries as signature cards in aliki theme#1669

Open
st0012 wants to merge 1 commit intomasterfrom
signature-card-design
Open

Style method entries as signature cards in aliki theme#1669
st0012 wants to merge 1 commit intomasterfrom
signature-card-design

Conversation

@st0012
Copy link
Copy Markdown
Member

@st0012 st0012 commented Apr 2, 2026

Summary

  • Add subtle background card with left accent border to method headers, visually separating the API signature zone from documentation prose
  • New --color-sig-bg design token (lighter than --color-code-bg) for both light and dark themes
  • Source button repositioned with absolute positioning (was float-based)
  • Method heading links no longer inherit global underline styles
  • Description body gets slight left padding to align with the accent border

CSS-only change — no template modifications.

Before / After

Before After
sig-card-before Screenshot 2026-04-02 at 15 25 10

@matzbot
Copy link
Copy Markdown
Collaborator

matzbot commented Apr 2, 2026

🚀 Preview deployment available at: https://42beeecc.rdoc-6cd.pages.dev (commit: be86678)

@st0012 st0012 marked this pull request as ready for review April 2, 2026 14:39
@st0012 st0012 force-pushed the signature-card-design branch 2 times, most recently from 7235073 to 251f5db Compare April 2, 2026 16:23
Add a subtle background card to method headers to visually
separate the API signature zone from the documentation prose.

- New `--color-sig-bg` token (lighter than `--color-code-bg`)
- `.method-header` gets background, hairline border, padding
- `.method-controls` absolutely positioned on `.method-detail`
- `.method-heading a` removes inherited underline
- `.method-description pre` uses left accent border (no outline)
- `.method-description` gets `line-height: 1.7` for readability
@st0012 st0012 force-pushed the signature-card-design branch from 251f5db to be86678 Compare April 2, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants