docs: preserve editorial style precedence

This commit is contained in:
2026-07-19 23:28:34 +05:30
parent d988b6be47
commit d0fa88f5fa
+99
View File
@@ -2572,3 +2572,102 @@ footer nav {
padding: 1.4rem;
}
}
/* Documentation v3 must remain last so the editorial treatment wins over
legacy portal styles above. */
body .doc-intro {
overflow: visible;
padding: 1.5rem 0 2rem;
border: 0;
border-bottom: 1px solid var(--border);
border-radius: 0;
background: transparent;
box-shadow: none;
}
body .doc-intro::after,
body .package-card::before {
display: none;
}
body .access-callout,
body .component-catalog-callout {
border: 0;
border-left: 3px solid var(--brand);
border-radius: 0;
background: transparent;
box-shadow: none;
}
body .on-this-page,
body .sidebar {
border: 0;
border-left: 1px solid var(--border);
border-radius: 0;
background: transparent;
box-shadow: none;
backdrop-filter: none;
}
body .category-filter {
border: 0;
border-bottom: 1px solid var(--border);
border-radius: 0;
background: color-mix(in srgb, var(--bg) 92%, transparent);
box-shadow: none;
}
body .component-grid,
body .package-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0;
border-top: 1px solid var(--border);
}
body .component-card,
body .package-card {
min-height: 0;
padding: 1.5rem;
border: 0;
border-bottom: 1px solid var(--border);
border-radius: 0;
background: transparent;
box-shadow: none;
}
body .component-card:nth-child(odd),
body .package-card:nth-child(odd) {
padding-left: 0;
border-right: 1px solid var(--border);
}
body .component-card:hover,
body .package-card:hover {
border-color: var(--border);
background: color-mix(in srgb, var(--brand) 4%, transparent);
box-shadow: none;
transform: none;
}
body .example-grid {
display: block;
}
body .example-card {
margin-block: 2.5rem;
border: 0;
border-radius: 0;
background: transparent;
box-shadow: none;
}
body .marketing-main > section:not(.marketing-hero) {
margin-block: 0;
border: 0;
border-bottom: 1px solid var(--border);
border-radius: 0;
background: transparent;
box-shadow: none;
}
@media (max-width: 720px) {
body .component-grid,
body .package-grid {
grid-template-columns: minmax(0, 1fr);
}
body .component-card,
body .package-card,
body .component-card:nth-child(odd),
body .package-card:nth-child(odd) {
padding-inline: 0;
border-right: 0;
}
}