Skip to content

Commit 21b2d49

Browse files
committed
Tweak shadows for images and videos
1 parent 089468d commit 21b2d49

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/css/custom.css

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -308,22 +308,24 @@ footer {
308308
transform: scale(0.8);
309309
}
310310

311-
article img {
312-
max-width: 100%;
311+
article img,
312+
article video {
313313
vertical-align: top;
314314
margin: var(--ifm-leading) 0;
315315
border-radius: var(--ifm-pre-border-radius);
316-
box-shadow: var(--ifm-global-shadow-lw);
316+
box-shadow:
317+
0 0 0 1px rgba(0, 0, 0, 0.05),
318+
var(--ifm-global-shadow-lw);
319+
}
320+
321+
article img {
322+
max-width: 100%;
317323
}
318324

319325
article video {
320326
width: 300px;
321327
height: auto;
322328
max-width: 100%;
323-
vertical-align: top;
324-
margin: var(--ifm-leading) 0;
325-
border-radius: var(--ifm-pre-border-radius);
326-
box-shadow: var(--ifm-global-shadow-lw);
327329
}
328330

329331
article video[data-landscape] {

0 commit comments

Comments
 (0)