Skip to content

Commit 4bc9cf0

Browse files
committed
Remove ugly borders on filled elements
1 parent a69c915 commit 4bc9cf0

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Diff for: src/components/controls/Button.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import { RequiredKeys } from "@/types/utility";
77
import ArrowPathIcon from "@heroicons/react/24/solid/ArrowPathIcon";
88
import fadeAnim from "@/animations/fade";
99

10-
export const style = cva("relative flex items-center justify-center transition-colors shadow-sm px-3 py-2 gap-2 rounded-2xl border-2", {
10+
export const style = cva("relative flex items-center justify-center transition-colors shadow-sm px-3 py-2 gap-2 rounded-2xl", {
1111
variants: {
1212
color: {
13-
white: "bg-neutral-200 hover:bg-neutral-50 border-neutral-400 text-neutral-900",
14-
primary: "bg-cr-primary hover:bg-cr-primary-light border-cr-primary-light hover:border-cr-primary text-cr-primary-contrast"
13+
white: "bg-neutral-200 hover:bg-neutral-50 text-neutral-900",
14+
primary: "bg-cr-primary hover:bg-cr-primary-light bord text-cr-primary-contrast"
1515
}
1616
}
1717
});

Diff for: src/components/layout/Footer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Logo from "@/assets/images/brand/logo-200x200.webp";
55
const Footer = () => {
66
return (
77
<div className="flex items-center justify-center w-[calc(100%_+_4rem)] pt-16 mt-auto text-cr-primary-contrast">
8-
<footer className="flex flex-col w-full gap-4 p-8 border-2 border-b-0 max-w-7xl rounded-t-2xl bg-cr-primary image-dots from-cr-primary-light border-cr-primary-light">
8+
<footer className="flex flex-col w-full gap-4 p-8 max-w-7xl rounded-t-2xl bg-cr-primary image-dots from-cr-primary-light">
99
<div className="flex flex-col items-center gap-2 p-2 rounded-2xl bg-white/20 sm:flex-row backdrop-blur-[1.25px]">
1010
<div className="flex items-center gap-2">
1111
<img

Diff for: src/components/layout/Header.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const Header = () => {
2323
});
2424

2525
return (
26-
<header className="relative flex items-center w-full gap-4 p-4 transition-all border-b-2 md:px-8 md:gap-12 border-cr-primary-light/10">
26+
<header className="relative flex items-center w-full gap-4 p-4 transition-all md:px-8 md:gap-12 border-cr-primary-light/10">
2727
<Link color="primary" className="flex items-center justify-center text-2xl font-bold transition-all lg:text-4xl" href="/">
2828
<img
2929
className="object-contain transition-all text-[0px] w-10 h-10 lg:w-12 lg:h-12"

Diff for: src/components/pages/blog/ArticleBrief.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const ArticleBrief = ({ title, thumbnail, thumbnailAlt, imgLoading, readtime, te
7474
<LinkButton
7575
href={makeTagUrl(name)}
7676
color="primary"
77-
className="px-2 py-1 text-xs font-semibold border"
77+
className="px-2 py-1 text-xs font-semibold"
7878
prefetch={false}
7979
>
8080
{name}

Diff for: src/pages/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const FrontPage: Page = ({ pathname }) => {
7878
/>
7979
</div>
8080
</section>
81-
<section aria-label="introduction" className="flex flex-col gap-12 p-8 text-lg -mx-8 md:mx-0 motion-safe:transition-[margin] text-center border-2 rounded-2xl xl:flex-row text-cr-primary-contrast image-dots from-cr-primary-light border-cr-primary-light bg-cr-primary">
81+
<section aria-label="introduction" className="flex flex-col gap-12 p-8 text-lg -mx-8 md:mx-0 motion-safe:transition-[margin] text-center rounded-2xl xl:flex-row text-cr-primary-contrast image-dots from-cr-primary-light bg-cr-primary">
8282
<Heading.H2 id="introduction" className="flex p-4 flex-col items-center justify-center w-full rounded-2xl text-cr-primary-contrast bg-white/20 backdrop-blur-[1.25px] xl:p-0 xl:w-1/2">
8383
<span className="text-2xl">
8484
Introducing...

0 commit comments

Comments
 (0)