Skip to content

Commit cf4488c

Browse files
bug: fix the style of graph security figure
1 parent 272071e commit cf4488c

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

css/style.css

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -275,16 +275,17 @@ img, video {
275275

276276
/* Security graph: static SVG + Lottie animation on hover */
277277
.security-graph-wrap {
278-
position: relative; width: auto; height: 5rem; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center;
278+
position: relative; height: 5rem; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center;
279+
min-width: 7rem;
280+
}
281+
.security-static-figure {
282+
height: 5rem; width: auto; display: block; transition: opacity 0.3s ease; pointer-events: none;
279283
}
280-
.security-static-figure,
281284
.security-lottie-container {
282-
position: absolute; top: 0; left: 50%; transform: translateX(-50%);
283-
width: auto; height: 100%; max-width: 100%; object-fit: contain;
284-
transition: opacity 0.3s ease; pointer-events: none;
285+
position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
286+
width: 7rem; height: 5rem; opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
285287
}
286288
.security-static-figure { opacity: 1; }
287-
.security-lottie-container { opacity: 0; width: 7rem; height: 5rem; }
288289
#securityFeatureBox.playing .security-static-figure { opacity: 0; }
289290
#securityFeatureBox.playing .security-lottie-container { opacity: 1; }
290291
.feature-title { font-size: 1.5rem; font-weight: 600; color: #111827; margin-bottom: 0.75rem; }

0 commit comments

Comments
 (0)