Skip to content

Commit 3424bd9

Browse files
author
abrulic
committed
UI fixes
1 parent 3f6fc5d commit 3424bd9

File tree

9 files changed

+13
-16
lines changed

9 files changed

+13
-16
lines changed

docs/app/components/backdrop.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { cn } from "~/utils/css"
33
export const Backdrop = ({ onClose }: { onClose: () => void }) => (
44
// biome-ignore lint/a11y/useKeyWithClickEvents: We don't need keyboard events for backdrop
55
<div
6-
className={cn("fixed inset-0 bg-[var(--color-modal-backdrop)] backdrop-blur-sm transition-opacity duration-200")}
6+
className={cn("fixed inset-0 bg-[var(--color-modal-backdrop)] backdrop-blur-sm transition-opacity duration-200 z-50")}
77
onClick={(e) => {
88
if (e.target === e.currentTarget) {
99
onClose()

docs/app/components/icon-link.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const IconLink = ({ name, className, ...props }: IconLinkProps) => {
2222
href={href}
2323
{...props}
2424
>
25-
<Icon name={name} className="size-4 transition-all duration-300 xl:size-5" />
25+
<Icon name={name} className="size-4 transition-transform duration-300 xl:size-5" />
2626
</a>
2727
)
2828
}

docs/app/components/modal.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ export const Modal = ({
6565
if (!isOpen) return null
6666

6767
return (
68+
<>
69+
<Backdrop onClose={onClose} />
6870
<div className="fixed inset-0 z-50 overflow-y-auto overscroll-contain">
69-
<Backdrop onClose={onClose} />
7071
<div className="flex min-h-full items-start justify-center p-4 pt-16 sm:pt-24">
7172
<div
7273
ref={modalRef}
@@ -83,5 +84,6 @@ export const Modal = ({
8384
</div>
8485
</div>
8586
</div>
87+
</>
8688
)
8789
}

docs/app/components/page-mdx-article.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { MDXWrapper } from "./mdx-wrapper"
44

55
export default function PageMdxArticle({ page }: { page: Page }) {
66
return (
7-
<article className="prose prose-invert w-full min-w-0 max-w-4xl flex-grow px-3 py-3 prose-headings:text-[var(--color-text-active)] prose-p:text-[var(--color-text-active)] text-sm leading-6 sm:text-base md:px-6 md:py-4 md:text-lg xl:leading-8">
7+
<article className="prose prose-invert w-full min-w-0 max-w-4xl flex-grow px-3 py-3 prose-headings:text-[var(--color-text-active)] prose-p:text-[var(--color-text-active)] text-sm leading-7 md:leading-8 sm:text-base md:px-6 md:py-4 md:text-lg xl:leading-9">
88
<header className=" border-[var(--color-border)] border-b">
99
<Title className="mt-0 font-bold text-[var(--color-text-heading)]" as="h1">
1010
{page.title}

docs/app/tailwind.css

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
--animate-scroll: scroll var(--animation-duration, 40s) var(--animation-direction, forwards) linear infinite;
1515
--animate-spotlight: spotlight 2s ease .75s 1 forwards;
1616
--animate-meteor-effect: meteor 5s linear infinite;
17-
18-
/* Keyframes */
19-
--keyframes-scroll: 0% { transform: translate(0); } 100% { transform: translate(calc(-50% - 0.5rem)); };
20-
--keyframes-meteor: 0% { transform: rotate(215deg) translateX(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: rotate(215deg) translateX(-1900px); opacity: 0; };
21-
--keyframes-spotlight: 0% { opacity: 0; transform: translate(-72%, -62%) scale(0.5); } 100% { opacity: 1; transform: translate(-50%,-40%) scale(1); };
2217
}
2318

2419
@keyframes scroll {
@@ -74,7 +69,7 @@
7469
--color-code-keyword: #0369a1;
7570
--color-code-string: #04825b;
7671
--color-code-number: #c84b0a;
77-
--color-code-comment: #64748b;
72+
--color-code-comment: #7f90a7;
7873
--color-code-operator: #be185d;
7974
--color-code-punctuation: #64748b;
8075
--color-code-function: #7c3aed;
@@ -83,7 +78,7 @@
8378
--color-diff-added-border: rgba(34, 197, 94, 0.3);
8479
--color-diff-removed-bg: rgba(239, 68, 68, 0.1);
8580
--color-diff-removed-border: rgba(239, 68, 68, 0.3);
86-
--color-diff-indicator: #64748b;
81+
--color-diff-indicator: #08162b;
8782

8883
--color-info-bg: #eff6ff;
8984
--color-info-border: #bfdbfe;

docs/app/ui/alert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const Alert = ({ children, title, variant, className = "" }: AlertProps)
5656
<div className={cn("my-6 flex flex-col gap-2 rounded-xl border p-4 md:p-6", styles.container, className)}>
5757
<div className="inline-flex items-center gap-2">
5858
<div className={cn("inline-flex", styles.icon)}>{getIcon()}</div>
59-
<p className={cn("mt-0 mb-0 font-semibold text-sm md:text-base", styles.title)}>{title || defaultTitle}</p>
59+
<p className={cn("mt-0 mb-0 font-semibold text-sm leading-6 sm:text-base md:text-lg", styles.title)}>{title || defaultTitle}</p>
6060
</div>
6161

6262
<div

docs/app/ui/icon-button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ export const IconButton = ({ name, className, ...props }: IconButtonProps) => {
1313
<button
1414
type="button"
1515
className={cn(
16-
"group relative inline-flex cursor-pointer items-center justify-center rounded-full text-[var(--color-text-active)] transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-border)] focus-visible:ring-offset-2",
16+
"group inline-flex cursor-pointer items-center justify-center rounded-full text-[var(--color-text-active)] transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-border)] focus-visible:ring-offset-2",
1717
className
1818
)}
1919
{...props}
2020
>
21-
<Icon name={name} className={cn("size-4 transition-all duration-300 xl:size-5", className)} />
21+
<Icon name={name} className={cn("size-4 transition-transform duration-300 xl:size-5", className)} />
2222
</button>
2323
)
2424
}

docs/app/ui/inline-code.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const InlineCode = (props: ComponentPropsWithoutRef<"code">) => {
1414
return (
1515
<code
1616
{...props}
17-
className="rounded bg-[var(--color-code-inline-bg)] py-1 px-2 mx-1 text-[var(--color-code-inline-text)] text-xs sm:text-sm md:text-base "
17+
className="rounded bg-[var(--color-code-inline-bg)] py-1 px-2 mx-0.5 text-[var(--color-code-inline-text)] text-xs sm:text-sm md:text-base "
1818
/>
1919
)
2020
}

docs/content/03-configuration/01-client.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ By default the breakpoints are set to tailwind breakpoints but you can change th
143143
144144
Eg:
145145
```ts
146-
breakpoints: [{name: "lg", min: 0, max: 768}, {name: "xl", min: 768, max: 1024}, {name: "2xl", min: 1024, max: Infinity}],
146+
breakpoints: [{name: "lg", min: 0, max: 768}, {name: "xl", min: 768, max: 1024}, {name: "2xl", min: 1024, max: Infinity}],
147147
```
148148
149149
## Show breakpoint indicator

0 commit comments

Comments
 (0)