styles enhancements

This commit is contained in:
2025-10-29 00:40:08 +03:00
parent 096f131eaf
commit dff002f84a
6 changed files with 39 additions and 32 deletions

View File

@@ -34,6 +34,11 @@
--font-weight-medium: 500; --font-weight-medium: 500;
--font-weight-bold: 700; --font-weight-bold: 700;
--font-weight-black: 900; --font-weight-black: 900;
--tw-shadow:
0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
--tw-ring-offset-shadow: 0 0 rgba(0, 0, 0, 0);
--tw-ring-shadow: 0 0 rgba(0, 0, 0, 0);
} }
/* Dark theme variables */ /* Dark theme variables */
@@ -378,3 +383,18 @@ label {
background-image: none !important; background-image: none !important;
transition: background-color 5000s ease-in-out 0s !important; transition: background-color 5000s ease-in-out 0s !important;
} }
/* Style for the select component and its dropdown */
:where(.ant-select .ant-select-selection-item) {
font-size: 12px !important;
font-weight: 700 !important;
text-align: center;
}
.menu-select-container :where(.ant-select .ant-select-arrow) {
font-weight: 600 !important;
color: black;
}
.menu-select-container :where(.ant-select-dropdown .ant-select-item) {
font-size: 12px !important;
font-weight: 600 !important;
}

View File

@@ -108,7 +108,7 @@
-ms-overflow-style: none; -ms-overflow-style: none;
position: sticky; position: sticky;
top: 0; top: 0;
background: #fff; background: var(--background);
z-index: 10; z-index: 10;
overflow: hidden; overflow: hidden;
text-align: center; text-align: center;
@@ -132,7 +132,7 @@
.categoriesContainer { .categoriesContainer {
cursor: grab; cursor: grab;
} }
.categoriesContainer:active { .categoriesContainer:active {
cursor: grabbing; cursor: grabbing;
} }
@@ -384,7 +384,9 @@
width: 100vw !important; width: 100vw !important;
z-index: 1000 !important; z-index: 1000 !important;
border-bottom: 1px solid var(--ant-color-border) !important; border-bottom: 1px solid var(--ant-color-border) !important;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important; box-shadow:
var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),
var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow) !important;
background: #fff !important; background: #fff !important;
animation: slideDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important; animation: slideDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
transform-origin: top center !important; transform-origin: top center !important;

View File

@@ -251,9 +251,9 @@ export function CategoriesList({ categories }: CategoriesListProps) {
...(xs || md ...(xs || md
? { ? {
// backgroundColor: "#fff6e0", // backgroundColor: "#fff6e0",
borderBottom: "solid 1px var(--primary)", borderBottom: isCategoriesSticky ? "solid 1px var(--primary)" : "none",
borderRight: "solid 1px var(--primary)", borderRight: isCategoriesSticky ? "solid 1px var(--primary)" : "none",
borderLeft: "solid 1px var(--primary)", borderLeft: isCategoriesSticky ? "solid 1px var(--primary)" : "none",
borderTop: isCategoriesSticky borderTop: isCategoriesSticky
? "solid 1px var(--primary)" ? "solid 1px var(--primary)"
: 0, : 0,

View File

@@ -112,11 +112,12 @@
.restaurantInfoSkeleton { .restaurantInfoSkeleton {
text-align: center; text-align: center;
padding: 0 16px; padding: 0 16px;
margin-top: 10px;
} }
/* Loyalty Card Skeleton */ /* Loyalty Card Skeleton */
.loyaltySkeleton { .loyaltySkeleton {
margin: 16px 0; margin-bottom: 16px;
padding: 0 16px; padding: 0 16px;
} }
@@ -278,7 +279,6 @@
margin-bottom: 10px; margin-bottom: 10px;
} }
.restaurantInfoSkeleton { .restaurantInfoSkeleton {
padding: 0 24px; padding: 0 24px;
} }
@@ -291,7 +291,6 @@
margin-bottom: 32px; margin-bottom: 32px;
} }
.skeletonContainer .ant-skeleton { .skeletonContainer .ant-skeleton {
margin-bottom: 16px; margin-bottom: 16px;
} }

View File

@@ -104,9 +104,9 @@
left: auto; left: auto;
} }
/* .headerContainer{ .headerContainer {
margin: 5px 0px;
} */ }
/* Enhanced responsive item description */ /* Enhanced responsive item description */
@@ -435,7 +435,7 @@
width: 28%; width: 28%;
height: 32px; height: 32px;
left: 36%; left: 36%;
border-radius: 40%; border-radius: 16px;
} }
.orderTypeSelect { .orderTypeSelect {
width: 95%; width: 95%;
@@ -443,21 +443,6 @@
margin-right: 5%; margin-right: 5%;
} }
/* Style for the select component and its dropdown */
:global(.ant-select .ant-select-selection-item) {
font-size: 12px !important;
font-weight: 700 !important;
text-align: center;
}
:global(.ant-select .ant-select-arrow) {
font-weight: 600 !important;
color:black;
}
:global(.ant-select-dropdown .ant-select-item) {
font-size: 12px !important;
font-weight: 600 !important;
}
.searchButtonContainer { .searchButtonContainer {
right: 20px; right: 20px;
border-radius: 50%; border-radius: 50%;

View File

@@ -1,5 +1,5 @@
import { StarFilled } from "@ant-design/icons"; import { StarFilled } from "@ant-design/icons";
import { Image, Space, Select } from "antd"; import { Image, Select, Space } from "antd";
import { FloatingButton } from "components/FloatingButton/FloatingButton"; import { FloatingButton } from "components/FloatingButton/FloatingButton";
import ImageWithFallback from "components/ImageWithFallback"; import ImageWithFallback from "components/ImageWithFallback";
import LoyaltyCard from "components/LoyaltyCard/LoyaltyCard"; import LoyaltyCard from "components/LoyaltyCard/LoyaltyCard";
@@ -8,6 +8,7 @@ import ProTitle from "components/ProTitle";
import { useScrollHandler } from "contexts/ScrollHandlerContext"; import { useScrollHandler } from "contexts/ScrollHandlerContext";
import useBreakPoint from "hooks/useBreakPoint"; import useBreakPoint from "hooks/useBreakPoint";
import { useRestaurant } from "hooks/useRestaurant"; import { useRestaurant } from "hooks/useRestaurant";
import { OrderType } from "pages/checkout/hooks/types.ts";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { useParams, useSearchParams } from "react-router-dom"; import { useParams, useSearchParams } from "react-router-dom";
import { import {
@@ -16,6 +17,7 @@ import {
} from "redux/api/others"; } from "redux/api/others";
import { useAppSelector } from "redux/hooks"; import { useAppSelector } from "redux/hooks";
import { default_image } from "utils/constants"; import { default_image } from "utils/constants";
import { enumToSelectOptions } from "utils/helpers/helperFunctions.ts";
import BackButton from "./components/BackButton"; import BackButton from "./components/BackButton";
import { CartButton } from "./components/CartButton/CartButton"; import { CartButton } from "./components/CartButton/CartButton";
import { CategoriesList } from "./components/CategoriesList/CategoriesList"; import { CategoriesList } from "./components/CategoriesList/CategoriesList";
@@ -26,11 +28,10 @@ import MenuSkeleton from "./components/MenuSkeleton/MenuSkeleton";
import ScrollEventHandler from "./components/ScrollEventHandler"; import ScrollEventHandler from "./components/ScrollEventHandler";
import SearchButton from "./components/SearchButton"; import SearchButton from "./components/SearchButton";
import styles from "./menu.module.css"; import styles from "./menu.module.css";
import { enumToSelectOptions } from "utils/helpers/helperFunctions.ts";
import { OrderType } from "pages/checkout/hooks/types.ts";
function MenuPage() { function MenuPage() {
const { id } = useParams(); const { id } = useParams();
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const [_, setSearchParams] = useSearchParams(); const [_, setSearchParams] = useSearchParams();
const { isRTL } = useAppSelector((state) => state.locale); const { isRTL } = useAppSelector((state) => state.locale);
const { orderType } = useAppSelector((state) => state.order); const { orderType } = useAppSelector((state) => state.order);
@@ -100,7 +101,7 @@ function MenuPage() {
<BackButton /> <BackButton />
</div> </div>
<div <div
className={`${styles.headerFloatingBtn} ${styles.orderTypeSelectContainer}`} className={`${styles.headerFloatingBtn} ${styles.orderTypeSelectContainer} menu-select-container`}
> >
<Select <Select
value={orderType} value={orderType}