design/public/assets/css/storeCard.css

280 lines
5.3 KiB
CSS
Raw Normal View History

2024-11-06 10:31:56 +00:00
.storeCardMain {
transition: ease 0.4s;
display: flex;
flex-direction: column;
grid-gap: 0px;
position: relative;
overflow: hidden;
border-radius: 8px;
background: white;
box-shadow: 0 0 4px 0 rgba(0,0,0,0.05);
padding: 10px;
}
.storeCardMain:hover {
box-shadow: 0 0 16px 0 rgba(0,0,0,0.2);
}
.storeCardMainInside {
width: 100%;
display: flex;
flex-direction: column;
grid-gap: 15px;
}
.storeCardMainInsideTop {
display: flex;
flex-direction: column;
position: relative;
background: rgba(0,0,0,0.1);
overflow: hidden;
padding-top: 56.25%;
border-radius: 6px;
}
.storeCardMainInsideTop:hover > .storeCardMainInsideTopProducts {
padding: 15px;
opacity: 1;
height: 100%;
}
.storeCardMainInsideBot {
display: flex;
flex-direction: row;
grid-gap: 10px;
}
.btnMain.storeCardMainInsideBotBtn {
flex-grow: 1;
padding: 8px;
}
.btnMain.storeCardMainInsideBotBtn:hover {
transform: scale(1.01);
}
.storeCardMainInsideTopPicture {
transition: ease 0.6s;
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.storeCardMainInsideTopPictureImg {
object-fit: cover;
width: 100%;
height: 100%;
z-index: 1;
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
}
.storeCardMainInsideTopIcon {
opacity: 0.25;
position: absolute;
font-size: 42px;
}
.storeCardMainInsideTopProducts {
transition: ease 0.6s;
position: absolute;
top: auto;
bottom: 0;
left: 0;
right: 0;
display: flex;
flex-direction: row;
grid-gap: 10px;
overflow-x: auto;
overflow-y: hidden;
z-index: 2;
background: rgba(0,0,0,0.5);
backdrop-filter: blur(15px);
padding: 0px;
height: 0;
border-radius: 6px;
opacity: 0;
}
.storeCardMainInsideTopProducts::-webkit-scrollbar {
height: 12px;
}
@media (max-width: 576px) {
.storeCardMainInsideTopProducts::-webkit-scrollbar {
display: none;
}
}
.storeCardMainInsideTopProducts::-webkit-scrollbar-track {
background: rgba(255,255,255,0.15);
}
.storeCardMainInsideTopProducts::-webkit-scrollbar-thumb {
background: rgba(255,255,255,0.25);
}
.storeCardMainInsideTopProductsPicture {
width: 100%;
padding-top: calc(56.25% - 30px);
min-width: calc((16 / 9) / 2 * 100%);
overflow: hidden;
position: relative;
border-radius: 4px;
box-shadow: 0 0 8px 0 rgb(0,0,0,0.1);
background: rgba(0,0,0,0.1);
border: solid 2px rgba(255,255,255,0.25);
}
.storeCardMainInsideTopProductsPicture:hover {
transform: scale(1.01);
border: solid 2px #FF9900;
}
.storeCardMainInsideTopProductsPictureImg {
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
object-fit: cover;
height: 100%;
width: 100%;
}
.storeCardMainInsideTopProductsPictureDetails {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(255,255,255,0));
justify-content: end;
color: rgba(255,255,255,0.75);
padding: 5px 10px;
}
.storeCardMainInsideTopProductsPictureDetailsTitle {
font-size: 18px;
}
.storeCardMainInsideTopProductsPictureDetailsPrice {
position: absolute;
top: 5px;
right: 5px;
font-size: 12px;
padding: 5px 10px;
background: rgba(0,0,0,0.5);
backdrop-filter: blur(10px);
border: solid 1px rgba(255,255,255,0.1);
border-radius: 5px;
line-height: 1;
}
.storeCardMain:hover > .storeCardMainInside > .storeCardMainInsideTop > .storeCardMainInsideTopPicture {
transform: scale(1.02);
}
.storeCardMainInsideMidTitle {
font-weight: 600;
font-size: 21px;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
-webkit-line-clamp: 1;
}
.storeCardMainInsideMidText {
font-size: 14px;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
-webkit-line-clamp: 3;
}
.storeCardMainInsideTopDetails {
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
padding: 10px 8px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.storeCardMainInsideTopDetailsTop {
display: flex;
flex-direction: row;
grid-gap: 10px;
justify-content: space-between;
}
.storeCardMainInsideTopDetailsBottom {
display: flex;
flex-direction: row;
grid-gap: 10px;
justify-content: start;
}
.storeCardMainInsideTopDetailsTag {
display: flex;
flex-direction: row;
grid-gap: 5px;
max-width: 145px;
border-radius: 5px;
padding: 4px 8px;
z-index: 1;
background: rgba(255,255,255,0.5);
backdrop-filter: blur(10px);
border: solid 1px rgba(255,255,255,0.2);
box-shadow: 0 0 8px 0 rgb(0,0,0,0.2);
align-items: center;
}
.storeCardMainInsideTopDetailsTag.storeCardMainInsideTopDetailsTagHidden {
opacity: 0;
display: none;
}
.storeCardMainInsideTopDetailsTagIcon {
opacity: 0.5;
max-width: 15px;
color: black;
}
.storeCardMainInsideTopDetailsTagDivider {
height: 100%;
width: 1px;
background: rgba(0,0,0,0.05);
}
.storeCardMainInsideTopDetailsTagText {
color: rgba(0,0,0,0.5);
font-size: 12px;
font-weight: 800;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
-webkit-line-clamp: 1;
}
.storeCardMain:hover > .storeCardMainInside > .storeCardMainInsideTop {
box-shadow: 0 0 6px 0 rgba(0,0,0,0.5);
}