Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix button position on docs #3266

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Common/MarketingNav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ const MarketingNav = () => {
</div>

{/* right side items: search and hamburger on mobile */}
<div className="flex gap-4 items-center">
<div className="flex gap-1 md:gap-4 items-center">
<Search />
<button
className="md:hidden flex flex-col gap-[6px] border-none bg-transparent px-[4px] h-8 w-8 p-0 justify-center"
Expand Down
4 changes: 1 addition & 3 deletions src/components/DocsHome/AskAIWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ export function AskAIWidget() {
<button
className={`relative ask-ai-widget-trigger button-white button-fancy-ai border-none transition-all
bg-[radial-gradient(67.52%_167.71%_at_50.38%_-41.67%,#EA2B7B_0%,#3B00B9_100%)]
hover:text-white/80 stat-fade-in button-small md:button-small font-bold ${
isDocsPage ? "mr-0" : "mr-9"
} md:mr-0 w-10 md:w-12 h-8 md:h-10`}
hover:text-white/80 stat-fade-in button-small md:button-small font-bold mr-0 w-10 md:w-12 h-8 md:h-10`}
style={{
display: "flex",
alignItems: "center",
Expand Down
16 changes: 14 additions & 2 deletions src/css/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,25 @@
@media (max-width: 996px) {
.navbar__inner .navbar__items:first-child .navbar__toggle {
order: 2;
margin-right: 2.25rem;
margin-left: 5rem;
}

.navbar__inner .navbar__items:first-child .navbar__brand {
flex: 1;
order: 1;
}

.navbar__items--right {
margin-right: 2.5rem;
}

.navbar__toggle {
position: absolute;
right: 20px;
}

.navbar__items--right {
gap: 0.5rem;
}
}

/* full width sidebar */
Expand Down
3 changes: 2 additions & 1 deletion src/theme/SearchBar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ const Search = () => {
font-circular md:text-infinite md:docs:text-black
flex gap-2 items-center
md:order-last
docs:order-last
outline-offset-2
absolute right-[64px] md:static
md:static
text-black
dark-hero:text-white dark-hero:border-white/50

Expand Down
Loading