Files
QIDIStudio/resources/web/model_new/css/gallery.css

71 lines
1.2 KiB
CSS
Raw Normal View History

2025-12-20 17:45:44 +08:00
/* 简洁图片画廊样式 */
.bs-gallery {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
gap: 16px;
}
.bs-gallery-main {
position: relative;
-webkit-box-flex: 1;
-ms-flex: 0 0 560px;
flex: 0 0 560px;
width: 560px;
border-radius: 8px;
overflow: hidden;
background: #f3f3f3;
}
.bs-gallery-image {
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
display: block;
}
.bs-gallery-counter {
position: absolute;
right: 12px;
bottom: 12px;
background: rgba(0,0,0,.45);
color: #fff;
padding: 6px 10px;
border-radius: 10px;
font-weight: 600;
font-size: 14px;
}
.bs-gallery-thumbs {
width: 180px;
overflow-y: auto;
padding-right: 4px;
}
.bs-gallery-thumb {
border-radius: 6px;
overflow: hidden;
cursor: pointer;
margin-bottom: 16px;
position: relative;
}
.bs-gallery-thumb img {
width: 100%;
height: 100px;
-o-object-fit: cover;
object-fit: cover;
display: block;
filter: grayscale(10%);
}
.bs-gallery-thumb.active {
border: 2px solid #426DC2; /* 绿色高亮 */
}
.bs-gallery-thumb:last-child { margin-bottom: 0; }