add arrows for youMayLike component

This commit is contained in:
2025-10-09 00:21:01 +03:00
parent 373a1497d4
commit ca54ce37cb
2 changed files with 331 additions and 142 deletions

View File

@@ -1,67 +1,124 @@
.youMightAlsoLikeContainer {
display: flex;
flex-direction: row;
justify-content: space-between;
overflow-y: scroll;
display: flex;
flex-direction: row;
justify-content: flex-start;
overflow-x: hidden;
padding: 0;
scroll-behavior: smooth;
}
:global(.darkApp) .youMightAlsoLikeContainer path {
fill: var(--primary);
fill: var(--primary);
}
.popularMenuItemImage {
width: 73px;
height: 73px;
object-fit: cover;
border-radius: 8px;
transition: transform 0.3s ease;
width: 73px;
height: 73px;
object-fit: cover;
border-radius: 8px;
transition: transform 0.3s ease;
}
.popularMenuItemImage:hover {
transform: scale(1.05);
transform: scale(1.05);
}
.popularMenuItemImageMobile {
width: 73px;
height: 73px;
min-height: 73px;
object-fit: cover;
width: 73px;
height: 73px;
min-height: 73px;
object-fit: cover;
}
.popularMenuItemImageTablet {
width: 90px;
height: 90px;
border-radius: 12px;
width: 90px;
height: 90px;
border-radius: 12px;
}
.popularMenuItemImageDesktop {
width: 110px;
height: 110px;
border-radius: 16px;
width: 110px;
height: 110px;
border-radius: 16px;
}
[data-theme="dark"] .popularMenuItemImage {
border-color: rgba(255, 255, 255, 0.1);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
@media (min-width: 768px) {
.popularMenuItemImage:focus {
outline-offset: 4px;
}
[data-theme="dark"] .popularMenuItemImage {
border-color: rgba(255, 255, 255, 0.1);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
@media (min-width: 768px) {
.popularMenuItemImage:focus {
outline-offset: 4px;
}
}
/* Hover effects for devices that support hover */
@media (hover: hover) {
.popularMenuItemImage:hover {
transform: scale(1.05);
}
.popularMenuItemImage:hover {
transform: scale(1.05);
}
}
/* Focus states for accessibility */
.popularMenuItemImage:focus {
outline: 2px solid var(--primary);
outline-offset: 2px;
outline: 2px solid var(--primary);
outline-offset: 2px;
}
.itemDescriptionIcons svg {
width: 18px;
height: 18px;
}
width: 18px;
height: 18px;
}
.arrowButton {
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.95);
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 50%;
width: 30px;
height: 30px;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(8px);
}
.arrowButton:hover {
background: rgba(255, 255, 255, 1);
transform: scale(1.05);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.arrowButton:active {
transform: scale(0.95);
}
.arrowButton:focus {
outline: 2px solid var(--primary);
outline-offset: 2px;
}
.arrowIcon {
width: 24px;
height: 24px;
transition: transform 0.2s ease;
}
.arrowButton:hover .arrowIcon {
transform: scale(1.1);
}
/* Dark theme styles */
[data-theme="dark"] .arrowButton {
background: rgba(30, 30, 30, 0.95);
border-color: rgba(255, 255, 255, 0.1);
color: white;
}
[data-theme="dark"] .arrowButton:hover {
background: rgba(40, 40, 40, 1);
border-color: rgba(255, 255, 255, 0.2);
}