twenty/packages/twenty-docs/custom.css
Félix Malfait 5d438bb70c
Docs: restructure navigation, add halftone illustrations, clean up hero images (#19728)
## Summary

- **New Getting Started section** with quickstart guide and restructured
navigation
- **Halftone-style illustrations** for User Guide and Developer
introduction cards using a Canvas 2D filter script
- **Removed hero images** (`image:` frontmatter + `<Frame><img>` blocks)
from all user-guide article pages
- **Cleaned up translations** (13 languages): removed hero images and
updated introduction cards to use halftone style
- **Cleaned up twenty-ui pages**: removed outdated hero images from
component docs
- **Deleted orphaned images**: `table.png`, `kanban.png`
- **Developer page**: fixed duplicate icon, switched to 3-column layout

## Test plan

- [ ] Verify docs site builds without errors
- [ ] Check User Guide introduction page renders halftone card images in
both light and dark mode
- [ ] Check Developer introduction page renders 3-column layout with
distinct icons
- [ ] Confirm article pages no longer show hero images at the top
- [ ] Spot-check a few translated pages to ensure hero images are
removed

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 <[email protected]>
Co-authored-by: github-actions <[email protected]>
2026-04-21 09:13:55 +02:00

47 lines
1.5 KiB
CSS

/* CTA button — solid dark pill in light mode, inverted in dark mode */
#topbar-cta-button a {
background-color: #141414 !important;
color: #ffffff !important;
padding: 0.5rem 1.25rem !important;
border-radius: 8px;
font-weight: 600;
transition: opacity 0.15s ease;
}
#topbar-cta-button a:hover {
opacity: 0.85 !important;
}
:is(.dark, [data-theme="dark"]) #topbar-cta-button a {
background-color: #ffffff !important;
color: #141414 !important;
}
/* Center the tab links */
.nav-tabs {
justify-content: center;
flex: 1;
}
/*
* HACK: Hide the "Overview" sidebar group header in the Developers tab.
*
* Mintlify requires every page to be inside a named group, and the tab's
* landing page is always the first page of the first group. We want the
* Developer Overview page to be the tab landing without showing a lonely
* "Overview" group header above a single item.
*
* We use :has() to scope the rule to only the sidebar group that contains
* the developers/introduction link, so other tabs are unaffected.
*/
div:has(> .sidebar-group a[href="/developers/introduction"]),
div:has(> .sidebar-group a[href="/user-guide/introduction"]) {
display: none;
}
/* Remove the top margin on the group that follows the hidden overview group,
so it sits flush at the top of the sidebar without a gap. */
div:has(> .sidebar-group a[href="/developers/introduction"]) + div,
div:has(> .sidebar-group a[href="/user-guide/introduction"]) + div {
margin-top: 0 !important;
}