Skip to content

Replace admonition left bar with logo-style corners - #248

Merged
knstvk merged 1 commit into
release_3from
feature/admonition-corners
Nov 18, 2026
Merged

knstvk merged 1 commit into
release_3from
feature/admonition-corners

Conversation

@glebfox

@glebfox glebfox commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

The 4px left bar on admonition blocks is a common default in generated pages, and it made our docs look generic. This PR removes it.

Each block keeps its tinted background and 1px border and gets two corners in the type color, top left and bottom right. As in the corners of the Jmix logo, the long arm is twice the short one. In the logo the corners turn the other way; here the long arm runs along the long side of the block, which fits a wide block better.

  • tokens.css: corner size tokens --admonition-corner-long, --admonition-corner-short and --admonition-corner-width.
  • site.css: the corners are the ::before and ::after of the block table, drawn over the border. The left padding now equals the right one.
  • tools/ui-audit.mjs: checks the corners instead of the left border.

Checks: node tools/check-css.mjs reports no problems. node tools/ui-audit.mjs passes styles, theme, focus, skip, names, search and fonts. contrast and forced fail on release_3 too: after the BPM pages were reworked, bpmn-events has no WARNING block and transactions has no admonitions. The audit pages need a separate fix.

Before:

Screenshot 2026-11-16 at 19 47 17

After:

Screenshot 2026-11-16 at 19 55 15

@glebfox
glebfox requested a review from knstvk November 16, 2026 16:14
@knstvk
knstvk merged commit da176b0 into release_3 Nov 18, 2026
1 check passed
@knstvk
knstvk deleted the feature/admonition-corners branch November 18, 2026 13:15
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