styles adjustments
This commit is contained in:
@@ -47,6 +47,7 @@ const ArabicPrice: React.FC<ArabicPriceProps> = ({
|
|||||||
style={{
|
style={{
|
||||||
verticalAlign: "baseline",
|
verticalAlign: "baseline",
|
||||||
lineHeight: 1,
|
lineHeight: 1,
|
||||||
|
fontSize: "14px",
|
||||||
...(decorationStyle ?? {}),
|
...(decorationStyle ?? {}),
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -55,7 +56,7 @@ const ArabicPrice: React.FC<ArabicPriceProps> = ({
|
|||||||
<span style={{ margin: "0 2px" }} />
|
<span style={{ margin: "0 2px" }} />
|
||||||
<span
|
<span
|
||||||
style={{
|
style={{
|
||||||
fontSize: "0.9em",
|
fontSize: "14px",
|
||||||
verticalAlign: "baseline",
|
verticalAlign: "baseline",
|
||||||
lineHeight: 1,
|
lineHeight: 1,
|
||||||
position: "relative",
|
position: "relative",
|
||||||
@@ -73,6 +74,7 @@ const ArabicPrice: React.FC<ArabicPriceProps> = ({
|
|||||||
verticalAlign: "baseline",
|
verticalAlign: "baseline",
|
||||||
lineHeight: 1,
|
lineHeight: 1,
|
||||||
display: "inline-block",
|
display: "inline-block",
|
||||||
|
fontSize: "14px",
|
||||||
...(decorationStyle ?? {}),
|
...(decorationStyle ?? {}),
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -81,7 +83,7 @@ const ArabicPrice: React.FC<ArabicPriceProps> = ({
|
|||||||
<span style={{ margin: "0 2px" }} />
|
<span style={{ margin: "0 2px" }} />
|
||||||
<span
|
<span
|
||||||
style={{
|
style={{
|
||||||
fontSize: "0.9em",
|
fontSize: "14px",
|
||||||
verticalAlign: "baseline",
|
verticalAlign: "baseline",
|
||||||
lineHeight: 1,
|
lineHeight: 1,
|
||||||
display: "inline-block",
|
display: "inline-block",
|
||||||
|
|||||||
@@ -209,6 +209,7 @@
|
|||||||
border-radius: 0.375rem;
|
border-radius: 0.375rem;
|
||||||
transition: transform 0.3s ease;
|
transition: transform 0.3s ease;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Responsive adjustments */
|
/* Responsive adjustments */
|
||||||
@@ -408,22 +409,6 @@
|
|||||||
animation: glowPulse 2s ease-in-out infinite;
|
animation: glowPulse 2s ease-in-out infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fade out glow effect when returning to normal */
|
|
||||||
.categoriesContainer:not(.categoriesSticky)::before {
|
|
||||||
content: "";
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
height: 2px;
|
|
||||||
background: linear-gradient(
|
|
||||||
90deg,
|
|
||||||
transparent,
|
|
||||||
rgba(24, 144, 255, 0.1),
|
|
||||||
transparent
|
|
||||||
);
|
|
||||||
animation: glowFadeOut 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes glowPulse {
|
@keyframes glowPulse {
|
||||||
0%,
|
0%,
|
||||||
@@ -552,25 +537,6 @@
|
|||||||
animation: darkCategoryUpdate 0.6s ease-in-out;
|
animation: darkCategoryUpdate 0.6s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes darkCategoryUpdate {
|
|
||||||
0% {
|
|
||||||
transform: scale(1.05);
|
|
||||||
}
|
|
||||||
50% {
|
|
||||||
transform: scale(1.1);
|
|
||||||
box-shadow: 0 8px 32px rgba(255, 198, 0, 0.4);
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
transform: scale(1.05);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Enhanced dark theme for container backgrounds */
|
|
||||||
:global(.darkApp) .container,
|
|
||||||
:global(.darkApp) .categoriesContainer {
|
|
||||||
background-color: #0a0a0a !important;
|
|
||||||
border-bottom-color: #363636 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
:global(.darkApp) .itemDescriptionIcons path {
|
:global(.darkApp) .itemDescriptionIcons path {
|
||||||
fill: #ffffff;
|
fill: #ffffff;
|
||||||
@@ -636,19 +602,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Enhanced responsive print styles */
|
|
||||||
@media print {
|
|
||||||
.menuItem,
|
|
||||||
.categoryCard {
|
|
||||||
box-shadow: none !important;
|
|
||||||
border: 1px solid #ccc !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.categoriesContainer {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Mobile-specific sticky categories */
|
/* Mobile-specific sticky categories */
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.categoriesSticky {
|
.categoriesSticky {
|
||||||
|
|||||||
@@ -38,12 +38,12 @@ export function CategoriesList({ categories }: CategoriesListProps) {
|
|||||||
if (xs) {
|
if (xs) {
|
||||||
return {
|
return {
|
||||||
width: 90,
|
width: 90,
|
||||||
height: isCategoriesSticky ? 38 : 110,
|
height: isCategoriesSticky ? 38 : 120,
|
||||||
};
|
};
|
||||||
} else if (md) {
|
} else if (md) {
|
||||||
return {
|
return {
|
||||||
width: 120,
|
width: 120,
|
||||||
height: isCategoriesSticky ? 38 : 110,
|
height: isCategoriesSticky ? 38 : 120,
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
@@ -220,20 +220,10 @@ export function CategoriesList({ categories }: CategoriesListProps) {
|
|||||||
src={category.image || default_image}
|
src={category.image || default_image}
|
||||||
fallbackSrc={default_image}
|
fallbackSrc={default_image}
|
||||||
alt={category.name}
|
alt={category.name}
|
||||||
className={`${styles.categoryMenuItemImage} ${
|
className={`${styles.categoryMenuItemImage}`}
|
||||||
xs
|
|
||||||
? styles.categoryMenuItemImageMobile
|
|
||||||
: md
|
|
||||||
? styles.categoryMenuItemImageTablet
|
|
||||||
: styles.categoryMenuItemImageDesktop
|
|
||||||
}`}
|
|
||||||
// {...getCategoryImageStyle()}
|
// {...getCategoryImageStyle()}
|
||||||
width={105}
|
width={105}
|
||||||
height={80}
|
height={80}
|
||||||
style={{
|
|
||||||
borderEndEndRadius: isCategoriesSticky ? 8 : 0,
|
|
||||||
borderEndStartRadius: isCategoriesSticky ? 8 : 0,
|
|
||||||
}}
|
|
||||||
loadingContainerStyle={{
|
loadingContainerStyle={{
|
||||||
borderEndEndRadius: isCategoriesSticky ? 8 : 0,
|
borderEndEndRadius: isCategoriesSticky ? 8 : 0,
|
||||||
borderEndStartRadius: isCategoriesSticky ? 8 : 0,
|
borderEndStartRadius: isCategoriesSticky ? 8 : 0,
|
||||||
@@ -252,16 +242,24 @@ export function CategoriesList({ categories }: CategoriesListProps) {
|
|||||||
? {
|
? {
|
||||||
// backgroundColor: "#fff6e0",
|
// backgroundColor: "#fff6e0",
|
||||||
borderBottom: isCategoriesSticky
|
borderBottom: isCategoriesSticky
|
||||||
? "solid 1px var(--primary)"
|
? activeCategory === category.id
|
||||||
|
? "solid 1px var(--primary)"
|
||||||
|
: "solid 1px var(--border)"
|
||||||
: "none",
|
: "none",
|
||||||
borderRight: isCategoriesSticky
|
borderRight: isCategoriesSticky
|
||||||
? "solid 1px var(--primary)"
|
? activeCategory === category.id
|
||||||
|
? "solid 1px var(--primary)"
|
||||||
|
: "solid 1px var(--border)"
|
||||||
: "none",
|
: "none",
|
||||||
borderLeft: isCategoriesSticky
|
borderLeft: isCategoriesSticky
|
||||||
? "solid 1px var(--primary)"
|
? activeCategory === category.id
|
||||||
|
? "solid 1px var(--primary)"
|
||||||
|
: "solid 1px var(--border)"
|
||||||
: "none",
|
: "none",
|
||||||
borderTop: isCategoriesSticky
|
borderTop: isCategoriesSticky
|
||||||
? "solid 1px var(--primary)"
|
? activeCategory === category.id
|
||||||
|
? "solid 1px var(--primary)"
|
||||||
|
: "solid 1px var(--border)"
|
||||||
: 0,
|
: 0,
|
||||||
borderStartStartRadius: isCategoriesSticky ? 888 : 0,
|
borderStartStartRadius: isCategoriesSticky ? 888 : 0,
|
||||||
borderStartEndRadius: isCategoriesSticky ? 888 : 0,
|
borderStartEndRadius: isCategoriesSticky ? 888 : 0,
|
||||||
@@ -273,6 +271,7 @@ export function CategoriesList({ categories }: CategoriesListProps) {
|
|||||||
width: 104,
|
width: 104,
|
||||||
height: 30,
|
height: 30,
|
||||||
marginBottom: 1,
|
marginBottom: 1,
|
||||||
|
border: "none"
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ProText
|
<ProText
|
||||||
@@ -308,6 +307,7 @@ export function CategoriesList({ categories }: CategoriesListProps) {
|
|||||||
? `2px solid ${colors.primary}`
|
? `2px solid ${colors.primary}`
|
||||||
: "none",
|
: "none",
|
||||||
paddingBottom: activeCategory === category.id ? 8 : 0,
|
paddingBottom: activeCategory === category.id ? 8 : 0,
|
||||||
|
marginTop: isCategoriesSticky ? 0 : 4,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{isRTL
|
{isRTL
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ export default function ProductCard({ item }: Props) {
|
|||||||
justifyContent: "space-between",
|
justifyContent: "space-between",
|
||||||
padding: item.description
|
padding: item.description
|
||||||
? "16px 16px 8px 16px"
|
? "16px 16px 8px 16px"
|
||||||
: "16px 16px 24px 16px",
|
: "16px",
|
||||||
overflow: "hide",
|
overflow: "hide",
|
||||||
boxShadow: "none",
|
boxShadow: "none",
|
||||||
},
|
},
|
||||||
@@ -71,10 +71,9 @@ export default function ProductCard({ item }: Props) {
|
|||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
alignItems: "center",
|
|
||||||
justifyContent: "space-between",
|
justifyContent: "space-between",
|
||||||
height: "100%",
|
height: "100%",
|
||||||
gap: isMobile ? 10 : 16,
|
gap: isMobile ? 11 : 16,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@@ -160,6 +159,7 @@ export default function ProductCard({ item }: Props) {
|
|||||||
<ItemDescriptionIcons className={styles.itemDescriptionIcons} />
|
<ItemDescriptionIcons className={styles.itemDescriptionIcons} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style={{ position: "relative" }}>
|
<div style={{ position: "relative" }}>
|
||||||
{/* {item.isHasLoyalty && (
|
{/* {item.isHasLoyalty && (
|
||||||
<StarIcon className={styles.loyaltyButton} />
|
<StarIcon className={styles.loyaltyButton} />
|
||||||
@@ -186,8 +186,8 @@ export default function ProductCard({ item }: Props) {
|
|||||||
? styles.popularMenuItemImageTablet
|
? styles.popularMenuItemImageTablet
|
||||||
: styles.popularMenuItemImageDesktop
|
: styles.popularMenuItemImageDesktop
|
||||||
}`}
|
}`}
|
||||||
width={90}
|
width={92}
|
||||||
height={90}
|
height={92}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* <AddToCartButton /> */}
|
{/* <AddToCartButton /> */}
|
||||||
|
|||||||
Reference in New Issue
Block a user