Skip to content

Commit f69426f

Browse files
committed
UI improvements
1 parent c432401 commit f69426f

File tree

5 files changed

+16
-7
lines changed

5 files changed

+16
-7
lines changed

src/components/Hero.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ export function Hero() {
2222
<div className="relative">
2323
<h1
2424
className={clsx(
25-
'inline bg-gradient-to-l from-[#FF5543] to-[#A112FF] bg-clip-text font-display text-4xl tracking-tight text-black dark:text-transparent sm:text-5xl'
25+
'inline dark:text-white bg-clip-text font-display text-4xl tracking-tight text-black dark:text-transparent sm:text-5xl'
2626
)}
2727
>
2828
Documentation
2929
</h1>
3030

3131
<p
3232
className={clsx(
33-
'mt-3 text-xl tracking-tight text-slate-700 dark:text-dark-text-primary sm:text-2xl'
33+
'mt-3 text-xl tracking-tight text-slate-700 dark:text-[#A9A9A9] sm:text-2xl'
3434
)}
3535
>
3636
Sourcegraph allows developers to rapidly search, write, and understand code by bringing insights from their entire codebase right into the editor.

src/components/ThemeSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function ThemeSelector(
7575
active && !selected,
7676
'text-slate-700 dark:text-dark-text-secondary':
7777
!active && !selected,
78-
'bg-light-bg-2/80 dark:bg-dark-bg-3': active
78+
'bg-vermilion-08 text-vermilion-11': active
7979
},
8080
'hover:bg-vermilion-08 hover:text-vermilion-11'
8181
)

src/components/VersionSelector.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default function VersionSelector() {
3939
<div>
4040
<Menu.Button
4141
className="inline-flex w-full items-center justify-center gap-x-1.5
42-
rounded-md px-2 py-2 text-xs font-medium text-slate-500 shadow-sm ring-1 ring-inset ring-light-border-2 hover:bg-slate-100 dark:bg-dark-bg-2 dark:text-dark-text-secondary dark:ring-inset dark:ring-dark-border"
42+
rounded-md px-2 py-2 text-xs font-medium text-slate-500 shadow-sm ring-1 ring-inset ring-light-border-2 hover:bg-vermilion-08 hover:text-vermilion-11 dark:bg-dark-bg-2 dark:text-dark-text-secondary dark:ring-inset dark:ring-dark-border"
4343
>
4444
{selectedVersion.name}
4545
<ChevronDownIcon
@@ -71,8 +71,9 @@ export default function VersionSelector() {
7171
setSelectedVersion(version)
7272
}
7373
className={clsx(
74+
'hover:bg-vermilion-08 hover:text-vermilion-11',
7475
active &&
75-
'bg-light-bg-2 text-slate-900 dark:bg-dark-bg-3 dark:text-white',
76+
'bg-vermilion-08 text-vermilion-11',
7677
count === 0 && 'rounded-t-md',
7778
'flex w-full items-center justify-between px-3 py-2'
7879
)}
@@ -94,7 +95,7 @@ export default function VersionSelector() {
9495
href="/legacy"
9596
className={clsx(
9697
active &&
97-
'bg-light-bg-2 text-slate-900 dark:bg-dark-bg-3 dark:text-white',
98+
'bg-vermilion-08 text-vermilion-11',
9899
'flex items-center justify-between rounded-b-md px-3 py-2'
99100
)}
100101
>

src/components/mdx/CustomLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const CustomLink: React.FC<CustomLinkProps> = ({
7575

7676
// Internal links handled by Next.js Link component
7777
return (
78-
<Link href={cleanedHref} {...rest}>
78+
<Link href={cleanedHref} {...rest} className='no-underline hover-underline'>
7979
{children}
8080
{/* Ensuring <a> is used inside <Link> for custom attributes like 'className' */}
8181
</Link>

src/styles/tailwind.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,14 @@
405405
z-index: 0;
406406
}
407407

408+
.no-underline {
409+
text-decoration: none !important;
410+
}
411+
412+
.hover-underline:hover {
413+
text-decoration: underline !important;
414+
}
415+
408416
.sg-hero-bg-gradient {
409417
background: radial-gradient(
410418
116.94% 133.26% at 52.08% 100%,

0 commit comments

Comments
 (0)