From ec8805662194ab5a5bee9f2e96467071af77eddf Mon Sep 17 00:00:00 2001 From: Lauren Hirata Singh Date: Tue, 14 Oct 2025 11:06:07 -0400 Subject: [PATCH] fix site style based on feedback --- src/docs.json | 2 +- src/style.css | 29 +++++++---------------------- 2 files changed, 8 insertions(+), 23 deletions(-) diff --git a/src/docs.json b/src/docs.json index 9cd36e1b2..8ca366c5f 100644 --- a/src/docs.json +++ b/src/docs.json @@ -6,7 +6,7 @@ "colors": { "primary": "#2F6868", "light": "#84C4C0", - "dark": "#84C4C0" + "dark": "#2F6868" }, "logo": { "light": "/images/brand/langchain-docs-teal.svg", diff --git a/src/style.css b/src/style.css index e7b8544f6..e6d4b9f22 100644 --- a/src/style.css +++ b/src/style.css @@ -63,15 +63,13 @@ button.version-picker-button span { margin-right: 0 !important; /* Remove any extra margin */ } -/* Force the dropdown arrow to always show */ -button.version-picker-button svg { - display: block !important; /* Force display */ - visibility: visible !important; /* Force visibility */ - opacity: 1 !important; /* Make sure it's opaque */ - flex-shrink: 0 !important; /* Don't shrink */ - width: 12px !important; /* Set fixed width */ - height: 12px !important; /* Set fixed height */ - margin-left: 0 !important; /* Remove any extra margin */ + +/* Hide arrow in buttons with bg-primary-dark */ +button:has(.bg-primary-dark) svg path[d="M0 0L3 3L0 6"], +.group:has(.bg-primary-dark) svg path[d="M0 0L3 3L0 6"], +button:has(.bg-primary-dark) svg, +.group:has(.bg-primary-dark) svg { + display: none !important; } #banner { @@ -79,19 +77,6 @@ button.version-picker-button svg { color: var(--brand-600) !important; /* Use the dark green brand color */ } -#banner * { - color: var( - --brand-600 - ) !important; /* Force all banner text to use brand color */ -} - -#banner a { - text-decoration: underline !important; - color: var( - --brand-600 - ) !important; /* Ensure links also use the brand color */ -} - /* Ensure callout links and lists match callout text formatting */ .callout a, [class*="callout"] a {