META-INF.resources.components.gallery.gallery.scss Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.commerce.frontend.js
Show all versions of com.liferay.commerce.frontend.js
Liferay Commerce Frontend JS
The newest version!
@import '../../styles/variables';
.product-gallery {
.arrow {
background-image: linear-gradient(
to right,
rgba(0, 0, 0, 0.4),
transparent 50%
);
background-position: 99%;
background-size: 200%;
height: 100%;
position: absolute;
top: 0;
transition: all ease 100ms;
width: 20%;
&:hover {
background-position: 0%;
}
&.next {
cursor: e-resize;
right: 0;
transform: rotate(180deg);
}
&.prev {
cursor: w-resize;
left: 0;
}
}
.card {
position: relative;
}
.gallery-overlay {
background: #fff;
cursor: zoom-out;
height: 100vh;
left: 0;
position: fixed;
top: 0;
width: 100vw;
z-index: 10000;
img {
left: 50%;
max-height: 100%;
max-width: 100%;
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
}
}
.gallery-thumbnails {
display: flex;
height: 80px;
overflow-x: auto;
& > img,
& > div {
flex: 0 0 75px;
margin-right: $spacer;
}
& > img:last-child,
& > div:last-child {
margin-right: 0;
}
.product-img {
object-fit: cover;
object-position: center;
}
}
.loading-animation {
background-color: rgba(255, 255, 255, 0.75);
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
&::after {
left: 50%;
margin: -0.5em 0 0 -0.5em;
top: 50%;
}
}
.main-image {
cursor: zoom-in;
height: 500px;
position: relative;
.product-img {
object-fit: contain;
}
}
.product-img {
height: 100%;
width: 100%;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy