Skip to content

Restore the Apple-style header and fix CSS minification - #19

Merged
Kimeiga merged 12 commits into
masterfrom
fix/apple-navbar-and-minifier
Oct 1, 2026
Merged

Kimeiga merged 12 commits into
masterfrom
fix/apple-navbar-and-minifier

Conversation

@Kimeiga

@Kimeiga Kimeiga commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Fixes

  • restore the intended fixed, edge-to-edge black translucent navbar
  • restore the Apple-style backdrop blur instead of the rounded sticky card introduced in Polish Bahunya around a touch-first native-app visual system #18
  • offset document content correctly beneath the fixed header without any Bahunya-specific class or ID
  • keep mobile top-level navigation on one horizontally scrollable row and suppress large nested dropdown trees on phones

Build correctness

  • fix the zero-dependency minifier so it removes a trailing declaration semicolon without deleting consecutive closing braces
  • add a regression test for nested at-rule braces
  • regenerate dist/bahunya.css and dist/bahunya.min.css with the corrected minifier
  • verify both generated files have balanced braces

Content styling from the supplied ChatGPT references

  • keep the responsive heading scale from Polish Bahunya around a touch-first native-app visual system #18
  • flatten ordinary article content instead of rendering every article as a card
  • render blockquotes as indented text with a quiet vertical rule
  • tune nested list spacing
  • render tables as flat content separated by hairlines instead of a rounded card
  • retain card-like surfaces only where the element behaves like a control/container (pre, fieldset, details, dialog)

This repairs the regression visible on the live site, where malformed minified media blocks caused much of the stylesheet (including the navbar rules) to be ignored.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-01T20:09:58.370836Z c102010 PR opened
🔒 Security Review ✅ Completed 2026-10-01T20:07:51.471372Z c102010 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Kimeiga
Kimeiga merged commit 4912483 into master Oct 1, 2026
2 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c102010955

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/parts/_navbar.css
Comment on lines +145 to +147
body > nav:first-of-type > ul,
body > header:first-child > nav > ul {
overflow-x: auto;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Make direct-link navbars scroll on mobile

At widths up to 40rem, horizontal scrolling is enabled only when the navigation contains a top-level ul. The documented nav > a form is also forced onto one non-wrapping row, and each anchor has flex: 0 0 auto, so a navigation with enough direct links extends beyond the fixed viewport with no scroll container; because the navbar remains fixed while the document pans, the off-screen links cannot be reached. Apply the mobile overflow behavior to the navigation container or otherwise cover the direct-anchor form as well.

Useful? React with 👍 / 👎.

Comment thread src/parts/_navbar.css
Comment on lines +1 to +3
body:has(> nav:first-of-type),
body:has(> header:first-child > nav) {
padding-top: calc(3.25rem + var(--space-6));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reset the fixed-header offset when printing

For any page with a recognized navbar, this new body:has(...) rule has greater specificity than the later @media print { body { padding: 0; } } declaration. The print stylesheet hides the navbar, but it cannot clear this padding-top, so every printed page starts with an unnecessary calc(3.25rem + var(--space-6)) blank offset. Add a print override with sufficient specificity or structure the offset so the existing print reset can win.

Useful? React with 👍 / 👎.

Comment thread src/parts/_misc.css
Comment on lines +74 to +77
tbody tr:nth-child(even),
tbody tr:nth-child(even) button,
tbody tr:nth-child(even) button:hover {
background-color: var(--surface-hover);
background: transparent;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve button styling in even table rows

When a table body contains buttons, these selectors make buttons in every even row transparent and keep them transparent on hover. Their specificity exceeds the later general button and button:hover rules, so odd-row buttons retain the normal raised surface and hover fill while even-row buttons do not. Removing zebra-striping should reset the row background only, without overriding descendant button states.

Useful? React with 👍 / 👎.

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.

1 participant