From c08e06d04cd82acffbb023a431f6b44d0757b3d9 Mon Sep 17 00:00:00 2001 From: Mohammed Al-yaseen Date: Fri, 10 Oct 2025 23:26:58 +0300 Subject: [PATCH] cart: enhance cart items styles --- src/index.css | 2 ++ src/pages/cart/cart.module.css | 21 ++++---------- .../cart/components/CartDesktopLayout.tsx | 29 ++++++++++++------- 3 files changed, 25 insertions(+), 27 deletions(-) diff --git a/src/index.css b/src/index.css index 6a9a82d..d09967a 100644 --- a/src/index.css +++ b/src/index.css @@ -7,6 +7,7 @@ :root { --background: #f7f7f7; --foreground: #181818; + --border: #0505050f; --secondary-background: #ffffff; --secondary-foreground: #0a0a0a; --primary-dark: #0a0a0a; @@ -41,6 +42,7 @@ --foreground: #f7f7f7; --secondary-background: #0a0a0a; --secondary-foreground: #ffffff; + --border: #363636; } html, diff --git a/src/pages/cart/cart.module.css b/src/pages/cart/cart.module.css index 2ea8da4..61c41d7 100644 --- a/src/pages/cart/cart.module.css +++ b/src/pages/cart/cart.module.css @@ -19,8 +19,6 @@ justify-content: space-between; } - - .cartContent { width: 100%; } @@ -96,9 +94,7 @@ } .desktopSectionHeader { - margin-bottom: 32px; - padding-bottom: 16px; - border-bottom: 1px solid rgba(0, 0, 0, 0.06); + border-bottom: 1px solid var(--border); } .desktopEmptyCart { @@ -130,7 +126,7 @@ } .desktopCartItem { - border: 1px solid rgba(0, 0, 0, 0.08); + border:none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; } @@ -343,7 +339,7 @@ box-shadow: 0 0 0 0 !important; } -[data-theme="dark"] .menuItemImage{ +[data-theme="dark"] .menuItemImage { border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); } @@ -352,8 +348,6 @@ color: rgba(255, 255, 255, 0.75) !important; } - - /* Keyframe animations */ @keyframes fadeInUp { from { @@ -507,16 +501,11 @@ /* Large screens (min-width: 768px) */ @media (min-width: 768px) { .cartContainer:focus, - .menuItemImage:focus{ + .menuItemImage:focus { outline-offset: 4px; } - } - - - - /* Extra large desktop screens (min-width: 1440px) */ @media (min-width: 1440px) { .desktopCartContainer { @@ -627,4 +616,4 @@ .desktopCheckoutButton:focus { outline: 2px solid #ffffff; outline-offset: 2px; -} \ No newline at end of file +} diff --git a/src/pages/cart/components/CartDesktopLayout.tsx b/src/pages/cart/components/CartDesktopLayout.tsx index a1f9806..1bb3352 100644 --- a/src/pages/cart/components/CartDesktopLayout.tsx +++ b/src/pages/cart/components/CartDesktopLayout.tsx @@ -1,4 +1,4 @@ -import { Button, Card, Col, Row } from "antd"; +import { Button, Card, Col, Divider, Row } from "antd"; import ArabicPrice from "components/ArabicPrice"; import CartActionsButtons from "components/CartActionsButtons/CartActionsButtons.tsx"; import EmptyOrdersIcon from "components/Icons/EmptyOrdersIcon.tsx"; @@ -88,21 +88,19 @@ export default function CartDesktopLayout() { {items.map((item, index) => ( - +
@@ -158,6 +162,9 @@ export default function CartDesktopLayout() {
+ {index !== items.length - 1 && ( + + )}
))}