模板

模板:Carousel/styles.css

来自卡厄思梦境WIKI

律Rhyme留言 | 贡献2025年10月9日 (四) 11:28的版本 (创建页面,内容为“.carousel-container { border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } .carousel-slide img { width: 100%; height: 250px; object-fit: cover; } .carousel-titles-overlay { position: relative; z-index: 10; } .carousel-titles-wrapper { display: flex; align-items: center; position: relative; } .carousel-titles-container { max-width: calc(100% - 80px); } .carousel-title-item { transition: all 0.3s ease;…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
.carousel-container {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.carousel-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.carousel-titles-overlay {
    position: relative;
    z-index: 10;
}

.carousel-titles-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.carousel-titles-container {
    max-width: calc(100% - 80px);
}

.carousel-title-item {
    transition: all 0.3s ease;
    min-width: 0;
    cursor: pointer;
}

.carousel-title-item:hover .title-text {
    opacity: 1 !important;
}

.carousel-title-item.active .title-text {
    opacity: 1 !important;
    font-weight: bold;
}

.carousel-title-item.active .title-indicator {
    background: #ff6600 !important;
}

.carousel-btn {
    transition: all 0.3s;
    user-select: none;
    cursor: pointer;
    z-index: 20;
}

.carousel-btn:hover {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-btn a.image {
    display: block;
    cursor: default;
    user-select: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-titles-container {
        gap: 8px !important;
    }
    
    .carousel-title-item {
        max-width: 150px !important;
    }
    
    .title-text {
        font-size: 12px !important;
        padding: 5px 6px !important;
    }
    
    .carousel-btn {
        width: 25px !important;
        height: 25px !important;
    }
    
    .carousel-titles-wrapper {
        padding: 0 40px !important;
    }
    
    .carousel-btn.carousel-prev {
        left: 5px !important;
    }
    
    .carousel-btn.carousel-next {
        right: 5px !important;
    }
}

@media (max-width: 480px) {
    .carousel-title-item {
        max-width: 100px !important;
    }
    
    .title-text {
        font-size: 11px !important;
        padding: 4px 5px !important;
    }
    
    .carousel-btn {
        width: 20px !important;
        height: 20px !important;
    }
}