Skip to content

Commit eb23190

Browse files
authored
Add border radius to content images (#4916)
1 parent 6f1dae1 commit eb23190

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

website/src/css/customTheme.scss

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,18 @@ hr {
404404
font-weight: 600;
405405
}
406406

407+
img {
408+
border-radius: var(--ifm-global-radius);
409+
&.center {
410+
width: 100%;
411+
justify-content: center;
412+
}
413+
&.half-size {
414+
max-height: 50vh;
415+
object-fit: contain;
416+
}
417+
}
418+
407419
table {
408420
display: table;
409421
width: 100%;
@@ -2361,17 +2373,6 @@ figcaption > p:last-child {
23612373
padding: 0 var(--ifm-pre-padding);
23622374
}
23632375

2364-
img {
2365-
&.center {
2366-
width: 100%;
2367-
justify-content: center;
2368-
}
2369-
&.half-size {
2370-
max-height: 50vh;
2371-
object-fit: contain;
2372-
}
2373-
}
2374-
23752376
@media only screen and (max-width: 600px) {
23762377
.tweet {
23772378
display: none;

0 commit comments

Comments
 (0)