-
-
Notifications
You must be signed in to change notification settings - Fork 2
fix(docs): remove double borders and fix column alignment on landing page tables #369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -913,7 +913,7 @@ starlight-tabs [role="tabpanel"] { | |
| Code Blocks | ||
| ========================================================================== */ | ||
|
|
||
| pre:not(.pm-pre) { | ||
| pre:not(.pm-pre):not(.table-box) { | ||
| background: rgba(20, 20, 25, 0.9) !important; | ||
| border: 1px solid rgba(255, 255, 255, 0.08) !important; | ||
| border-radius: 12px !important; | ||
|
|
@@ -929,6 +929,32 @@ pre.pm-pre, | |
| padding: 0 !important; | ||
| } | ||
|
|
||
| /* ASCII art tables inside terminals - no chrome, consistent monospace */ | ||
| pre.table-box { | ||
| background: transparent !important; | ||
| border: none !important; | ||
| border-radius: 0 !important; | ||
| margin: 0 !important; | ||
| padding: 0 !important; | ||
| } | ||
|
|
||
| pre.table-box, | ||
| pre.table-box * { | ||
| font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace !important; | ||
| font-size: inherit !important; | ||
| font-weight: 400 !important; | ||
| font-style: normal !important; | ||
| font-variant: normal !important; | ||
| font-variant-ligatures: none !important; | ||
| font-feature-settings: normal !important; | ||
| font-stretch: normal !important; | ||
| letter-spacing: 0 !important; | ||
| word-spacing: 0 !important; | ||
| text-decoration: none !important; | ||
| text-transform: none !important; | ||
| -webkit-text-size-adjust: none !important; | ||
| } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wildcard !important overrides alias-hl bold and underline stylingMedium Severity The Additional Locations (1) |
||
|
|
||
| code { | ||
| font-family: var(--sl-font-mono); | ||
| font-size: 0.9em; | ||
|
|
@@ -1089,7 +1115,7 @@ code { | |
| } | ||
|
|
||
| /* Standalone pre */ | ||
| .sl-markdown-content pre:not(.expressive-code pre):not(.pm-pre) { | ||
| .sl-markdown-content pre:not(.expressive-code pre):not(.pm-pre):not(.table-box) { | ||
| background: #0a0a0f !important; | ||
| border: 1px solid rgba(255, 255, 255, 0.1) !important; | ||
| border-radius: 12px !important; | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wildcard !important overrides intentional table font-size 0.7rem
Medium Severity
The
pre.table-boxandpre.table-box *rules setfont-size: inherit !important, overriding the intentionalfont-size: 0.7remdefined for.table-boxand.header-textin bothTerminal.astroandFeatureTerminal.astro. The table text will inherit the parent's larger font-size (e.g., 0.8rem from.terminal-body), making the ASCII art tables bigger than designed, which could itself break the column alignment this PR aims to fix.