Skip to content

Commit 6775603

Browse files
docs: Final design review implementations
1 parent ff13343 commit 6775603

3 files changed

Lines changed: 27 additions & 6 deletions

File tree

src/css/custom.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,29 @@ html:has(.theme-doc-markdown) {
221221
.theme-doc-footer-edit-meta-row {
222222
@apply !hidden;
223223
}
224+
224225
.navbar {
225226
@apply !p-0;
227+
box-shadow: none !important;
228+
border-bottom: none !important;
229+
background-color: theme(colors.light-surface-1) !important;
230+
opacity: 1 !important;
231+
backdrop-filter: none !important;
232+
-webkit-backdrop-filter: none !important;
233+
}
234+
235+
.navbar .navbar__inner {
236+
background-color: theme(colors.light-surface-1) !important;
237+
box-shadow: inset 0 -1px 0 theme(colors.light-surface-3);
238+
}
239+
240+
:root[data-theme='dark'] .navbar {
241+
background-color: theme(colors.dark-surface-1) !important;
242+
}
243+
244+
:root[data-theme='dark'] .navbar .navbar__inner {
245+
background-color: theme(colors.dark-surface-1) !important;
246+
box-shadow: none !important;
226247
}
227248

228249
.navbar-sidebar {

src/theme/Navbar/Content/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ export default function NavbarContent(): ReactNode {
4949
<div
5050
className={clsx(
5151
'navbar__inner',
52-
'w-full h-nav-h flex flex-row items-center px-4 py-3 sm:px-[0.9375rem] sm:py-3',
52+
'w-full h-nav-h flex flex-row items-center px-4 py-0 sm:px-[0.9375rem] sm:py-0',
5353
)}
5454
>
5555
{/* Logo - Left aligned */}
56-
<Link className="flex min-w-0 flex-row items-center" to="/" target="_self" aria-label="Uniswap Documentation Home">
56+
<Link className="flex h-8 min-w-0 flex-row items-center" to="/" target="_self" aria-label="Uniswap Documentation Home">
5757
<MiniUnicon className="w-8 h-8 mr-3" />
5858
<p className="Navbar__logo-text body-1 text-light-accent-1 dark:text-dark-accent-1 mb-0 whitespace-nowrap max-[380px]:hidden">
5959
Uniswap Docs
@@ -71,8 +71,8 @@ export default function NavbarContent(): ReactNode {
7171
</div>
7272

7373
{/* Right side - Nav Links, Search, Theme Toggle, Feedback */}
74-
<div className="hidden min-[997px]:flex min-w-0 flex-1 justify-end items-center gap-2 md:gap-3 mr-2 md:mr-4 h-8">
75-
<nav className="flex h-8 flex-row items-center gap-3">
74+
<div className="hidden min-[997px]:flex min-w-0 flex-1 justify-end items-center gap-4 md:gap-5 mr-2 md:mr-4 h-8">
75+
<nav className="flex h-8 flex-row items-center gap-5">
7676
{navLinks.map((link) => (
7777
<Link
7878
key={link.label}
@@ -96,7 +96,7 @@ export default function NavbarContent(): ReactNode {
9696
to="/feedback"
9797
target="_self"
9898
>
99-
<span className="text-light-accent-1 dark:text-dark-accent-1">Submit Feedback</span>
99+
<span className="text-light-accent-1 dark:text-dark-accent-1">Feedback</span>
100100
</Link>
101101
</div>
102102
</div>

src/theme/Navbar/MobileSidebar/Header/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default function NavbarMobileSidebarHeader(): ReactNode {
3636
onClick={() => mobileSidebar.toggle()}
3737
className="button-label-4 inline-flex h-8 items-center px-3 rounded-small bg-light-accent-2 dark:bg-dark-accent-2 hover:bg-light-accent-2-hovered hover:dark:bg-dark-accent-2-hovered transition"
3838
>
39-
<span className="text-light-accent-1 dark:text-dark-accent-1">Submit Feedback</span>
39+
<span className="text-light-accent-1 dark:text-dark-accent-1">Feedback</span>
4040
</Link>
4141

4242
<div className="ml-auto">

0 commit comments

Comments
 (0)