Skip to content

Commit 00afaf7

Browse files
committed
caption conflict
1 parent 7b1bf50 commit 00afaf7

File tree

2 files changed

+23
-7
lines changed

2 files changed

+23
-7
lines changed

assets/css/style.css

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ canvas.chart{width:100%; height:340px; display:block;}
591591
display: block;
592592
}
593593

594-
.carousel-card .caption {
594+
/* .carousel-card .caption {
595595
margin-top: 15px;
596596
font-size: 18px;
597597
font-weight: bold;
@@ -603,6 +603,19 @@ canvas.chart{width:100%; height:340px; display:block;}
603603
604604
.carousel-card.is-active .caption {
605605
opacity: 1;
606+
} */
607+
608+
.carousel-caption {
609+
margin-top: 15px;
610+
font-size: 18px;
611+
font-weight: bold;
612+
color: #333;
613+
text-align: center;
614+
opacity: 0;
615+
transition: opacity 0.3s;
616+
}
617+
.carousel-card.is-active .carousel-caption {
618+
opacity: 1;
606619
}
607620

608621
.nav-btn {
@@ -935,7 +948,7 @@ h1, h2, h3, p, li, .caption, .small {
935948
object-fit: cover;
936949
display: block;
937950
}
938-
951+
/*
939952
.caption {
940953
margin-top: 12px;
941954
font-size: 16px;
@@ -944,8 +957,8 @@ h1, h2, h3, p, li, .caption, .small {
944957
text-align: center;
945958
opacity: 0;
946959
transition: opacity 0.3s;
947-
}
948-
.carousel-card.is-active .caption { opacity: 1; }
960+
} */
961+
/* .carousel-card.is-active .caption { opacity: 1; } */
949962

950963
/* --- 按钮样式 (核弹级层级) --- */
951964
.nav-btn {
@@ -994,3 +1007,6 @@ h1, h2, h3, p, li, .caption, .small {
9941007
box-shadow: 0 4px 15px rgba(0,0,0,0.4);
9951008
}
9961009
}
1010+
1011+
1012+
main .caption { opacity: 1 !important; }

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,21 +165,21 @@ <h3>Continuous Success achieved by RISE</h3>
165165
<div class="video-wrapper">
166166
<video style="pointer-events: none;" src="https://assets.kinetixai.cn/rise3/backpack_continuous_21_RISE_compressed.mp4" autoplay muted loop playsinline preload="metadata"></video>
167167
</div>
168-
<div class="caption">Backpack Packing</div>
168+
<div class="carousel-caption">Backpack Packing</div>
169169
</article>
170170

171171
<article class="carousel-card">
172172
<div class="video-wrapper">
173173
<video style="pointer-events: none;" src="https://assets.kinetixai.cn/rise3/conveyor_continuous_11_RISE_compressed.mp4" autoplay muted loop playsinline preload="metadata"></video>
174174
</div>
175-
<div class="caption">Dynamic Brick Sorting</div>
175+
<div class="carousel-caption">Dynamic Brick Sorting</div>
176176
</article>
177177

178178
<article class="carousel-card">
179179
<div class="video-wrapper">
180180
<video style="pointer-events: none;" src="https://assets.kinetixai.cn/rise3/box_continuous_10_RISE_compressed.mp4" autoplay muted loop playsinline preload="metadata"></video>
181181
</div>
182-
<div class="caption">Box Closing</div>
182+
<div class="carousel-caption">Box Closing</div>
183183
</article>
184184
</div>
185185
</div>

0 commit comments

Comments
 (0)