diff --git a/src/main/resources/views/platform/zhgh/spread/display/index.html b/src/main/resources/views/platform/zhgh/spread/display/index.html index c5941766..971e1295 100644 --- a/src/main/resources/views/platform/zhgh/spread/display/index.html +++ b/src/main/resources/views/platform/zhgh/spread/display/index.html @@ -11,12 +11,12 @@ layout("/layouts/platform.html"){ .spread-brand-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; color: #c0141a; font-size: 24px; border-radius: 50%; background: #fff0f0; } .spread-brand-title { font-family: "Microsoft YaHei", serif; font-size: 24px; font-weight: 700; letter-spacing: 3px; } .carousel-bg-text { position: absolute; top: 48%; left: 50%; transform: translate(-50%, -50%); color: rgba(255,255,255,.04); font-size: 170px; font-weight: 900; letter-spacing: 24px; pointer-events: none; user-select: none; } - .hero-slider { width: calc(100% - 32px); max-width: none; height: 380px; margin: 0 auto; } - .hero-slider .el-carousel, .hero-slider .el-carousel__container { height: 380px; } + .hero-slider { width: calc(100% - 32px); max-width: none; min-height: 380px; height: auto; aspect-ratio: 32 / 9; margin: 0 auto; } + .hero-slider .el-carousel, .hero-slider .el-carousel__container { height: 100%; } .hero-slider .el-carousel__arrow { width: 42px; height: 42px; color: #fff; border: 1px solid rgba(255,255,255,.25); background: rgba(44,62,80,.42); backdrop-filter: blur(4px); } - .hero-slider .el-carousel__item--card { overflow: visible; } + .hero-slider .el-carousel__item--card { overflow: visible; display: flex; align-items: center; justify-content: center; } .hero-slider .el-carousel__mask { opacity: 0; background: transparent; } - .slider-item { width: 97%; height: 95%; margin: 0 auto; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; box-sizing: border-box; cursor: pointer; border: 8px solid #fff; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.18), 0 2px 5px rgba(0,0,0,.12); } + .slider-item { width: 97%; height: auto; aspect-ratio: 16 / 9; margin: 0 auto; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; box-sizing: border-box; cursor: pointer; border: 8px solid #fff; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.18), 0 2px 5px rgba(0,0,0,.12); } .slider-item img { width: auto; height: auto; max-width: 100%; max-height: 100%; display: block; flex: 0 0 auto; object-fit: contain !important; object-position: center; background: #fff; } .slider-caption { min-height: 25%; padding: 10px 18px 9px; position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; box-sizing: border-box; color: #fff; background: linear-gradient(to bottom, rgba(82,82,82,.30) 0%, rgba(52,52,52,.52) 45%, rgba(24,24,24,.78) 100%); } .slider-caption-line { width: 100%; } @@ -80,7 +80,7 @@ layout("/layouts/platform.html"){
-