Files
teach_sys_Demo/src/pages/ProjectLibraryPage/components/ImagePreviewModal/index.css

165 lines
3.0 KiB
CSS
Raw Normal View History

.image-preview-modal {
width: 90vw;
height: 90vh;
max-width: 1200px;
max-height: 800px;
background-color: #1a1a1a;
border-radius: 8px;
display: flex;
flex-direction: column;
position: relative;
}
.image-preview-header {
height: 60px;
padding: 0 20px;
display: flex;
align-items: center;
justify-content: space-between;
background-color: rgba(0, 0, 0, 0.8);
border-radius: 8px 8px 0 0;
}
.image-preview-title {
color: #ffffff;
font-size: 16px;
font-weight: 500;
flex: 1;
}
.image-preview-counter {
color: #ffffff;
font-size: 14px;
margin-right: 20px;
opacity: 0.8;
}
.image-preview-header .close-icon {
width: 24px;
height: 24px;
background-image: url("@/assets/images/Common/close.png");
background-size: 100% 100%;
cursor: pointer;
opacity: 0.8;
transition: opacity 0.3s;
filter: brightness(0) invert(1);
}
.image-preview-header .close-icon:hover {
opacity: 1;
}
.image-preview-container {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
.image-preview-content {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}
.image-preview-image {
max-width: 100%;
max-height: 100%;
object-fit: contain;
border-radius: 4px;
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.image-preview-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 48px;
height: 48px;
background-color: rgba(0, 0, 0, 0.7);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: #ffffff;
transition: all 0.3s;
z-index: 2;
}
.image-preview-nav:hover {
background-color: rgba(0, 0, 0, 0.9);
border-color: rgba(255, 255, 255, 0.4);
transform: translateY(-50%) scale(1.1);
}
.image-preview-nav-prev {
left: 20px;
}
.image-preview-nav-next {
right: 20px;
}
.image-preview-thumbnails {
height: 80px;
padding: 10px 20px;
background-color: rgba(0, 0, 0, 0.8);
border-radius: 0 0 8px 8px;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
overflow-x: auto;
}
.image-preview-thumbnails::-webkit-scrollbar {
height: 6px;
}
.image-preview-thumbnails::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.1);
border-radius: 3px;
}
.image-preview-thumbnails::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.3);
border-radius: 3px;
}
.image-preview-thumbnails::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.5);
}
.image-preview-thumbnail {
width: 60px;
height: 60px;
flex-shrink: 0;
border-radius: 4px;
overflow: hidden;
cursor: pointer;
border: 2px solid transparent;
transition: all 0.3s;
opacity: 0.6;
}
.image-preview-thumbnail:hover {
opacity: 0.9;
}
.image-preview-thumbnail.active {
border-color: #4080ff;
opacity: 1;
}
.image-preview-thumbnail img {
width: 100%;
height: 100%;
object-fit: cover;
}