mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-12-07 20:52:30 -05:00
feat: fullscreen images slideshow (#1120)
This commit is contained in:
@@ -522,6 +522,7 @@
|
||||
display: block;
|
||||
|
||||
img {
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
@@ -530,6 +531,135 @@
|
||||
}
|
||||
}
|
||||
|
||||
.modal-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.slideshow-container {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: auto;
|
||||
max-width: 90%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.slideshow-image img {
|
||||
display: block;
|
||||
width: auto;
|
||||
height: auto;
|
||||
max-width: 100%; /* Ensure image doesn't exceed container width */
|
||||
max-height: 90vh;
|
||||
border-radius: 0;
|
||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
||||
transition: transform 60s ease-in-out, opacity 60 ease-in-out;
|
||||
}
|
||||
|
||||
.slideshow-title {
|
||||
margin-top: 10px;
|
||||
text-align: start;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: #bdb6b6;
|
||||
z-index: 1200;
|
||||
}
|
||||
|
||||
|
||||
.arrow {
|
||||
position: absolute;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
border: none;
|
||||
color: white;
|
||||
font-size: 2rem;
|
||||
background-color: rgba(0, 0, 0, 0.2);
|
||||
cursor: pointer;
|
||||
padding: 10px;
|
||||
border-radius: 50%;
|
||||
z-index: 1000;
|
||||
transition: background-color 0.2s ease, transform 0.2s ease;
|
||||
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
|
||||
.arrow:hover {
|
||||
background: rgba(92, 78, 78, 0.6);
|
||||
transform: translateY(-50%) scale(1.1);
|
||||
}
|
||||
|
||||
.arrow.left {
|
||||
left: 10px;
|
||||
}
|
||||
|
||||
.arrow.right {
|
||||
right: 10px;
|
||||
}
|
||||
|
||||
.thumbnail-navigation {
|
||||
position: fixed;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: 20px;
|
||||
gap: 10px;
|
||||
bottom: 10%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.thumbnail-container {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
overflow-x: auto;
|
||||
scroll-behavior: smooth;
|
||||
max-width: 80%;
|
||||
padding: 10px 0;
|
||||
scrollbar-width: none; /* Hide scrollbar for Firefox */
|
||||
}
|
||||
|
||||
.thumbnail-container.center-thumbnails {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
overflow: visible; /* No scrollbars for fewer thumbnails */
|
||||
}
|
||||
|
||||
.thumbnail-container::-webkit-scrollbar {
|
||||
display: none; /* Hide scrollbar for Chrome/Safari */
|
||||
}
|
||||
|
||||
.thumbnail {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
object-fit: cover;
|
||||
border: 2px solid transparent;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.thumbnail.active {
|
||||
border-color: white;
|
||||
}
|
||||
|
||||
.thumbnail:hover {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.viewer-container .player-container {
|
||||
@media screen and (min-width: 480px) {
|
||||
border-radius: 10px;
|
||||
|
||||
Reference in New Issue
Block a user