mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-07-22 04:15:24 -04:00
7b96126662
Both overview types now share one composition: a two-column hero (orientation line, primary CTA, quiet secondary links, screenshot on the Use pages) and a grid of six equal cards ending in a Get Help card with Discord, GitHub Issues, and Discussions links. Layout CSS is a shared .uo-* family in style.css; the grid self-adapts between five and six items. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
106 lines
1.9 KiB
CSS
106 lines
1.9 KiB
CSS
body {
|
|
text-autospace: normal;
|
|
}
|
|
|
|
/* Hide the top tab row on the landing page only. Mintlify updates
|
|
<html data-current-path> on client-side nav, so this stays scoped to "/". */
|
|
html[data-current-path="/"] .nav-tabs {
|
|
display: none;
|
|
}
|
|
|
|
/* Use-overview pages (frame mode): two-column hero + centered equal-card grid.
|
|
Layout only; colors come from Tailwind classes in the MDX so dark mode works. */
|
|
.uo-wrap {
|
|
max-width: 64rem;
|
|
margin: 0 auto;
|
|
padding: 2.5rem 2rem 4rem;
|
|
}
|
|
|
|
.uo-hero {
|
|
display: flex;
|
|
gap: 40px;
|
|
align-items: center;
|
|
margin: 0 0 48px;
|
|
}
|
|
|
|
.uo-hero-text {
|
|
flex: 1 1 55%;
|
|
}
|
|
|
|
.uo-hero-img {
|
|
flex: 1 1 45%;
|
|
max-width: 45%;
|
|
border-radius: 8px;
|
|
box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.25);
|
|
}
|
|
|
|
.uo-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.uo-cta {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background: #0060FF;
|
|
color: #fff !important;
|
|
padding: 8px 18px;
|
|
border-radius: 8px;
|
|
font-weight: 600;
|
|
text-decoration: none !important;
|
|
border: none !important;
|
|
}
|
|
|
|
.uo-cta:hover {
|
|
background: #0034FF;
|
|
}
|
|
|
|
/* Equal-card grid, three per row (each card spans two of six columns).
|
|
With six items it forms a clean 3x2; with five, the rule below centers
|
|
the two cards of the final row. */
|
|
.uo-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
gap: 16px;
|
|
}
|
|
|
|
.uo-grid > * {
|
|
grid-column: span 2;
|
|
margin: 0;
|
|
}
|
|
|
|
.uo-grid > :nth-child(4):nth-last-child(2) {
|
|
grid-column: 2 / span 2;
|
|
}
|
|
|
|
/* Link row inside the Get Help card (a native Card without href). */
|
|
.uo-help-links {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 4px 8px;
|
|
margin-top: 10px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.uo-hero {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.uo-hero-img {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.uo-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.uo-grid > *,
|
|
.uo-grid > :nth-child(4):nth-last-child(2) {
|
|
grid-column: auto;
|
|
}
|
|
} |