Skip to content

Commit e8d6d37

Browse files
heiskrgracepark
andauthored
Use rem for image sizing (#23008)
Co-authored-by: Grace Park <[email protected]>
1 parent 13147ad commit e8d6d37

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

stylesheets/images.scss

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
.markdown-body .procedural-image-wrapper {
22
display: block;
3-
padding: 10px 0;
4-
margin: 20px auto 0 auto;
3+
padding: 1rem 0;
4+
margin: 1rem auto 0 auto;
55
border: none;
6-
max-width: calc(100% - 32px);
7-
}
6+
max-width: calc(100% - 2rem);
87

9-
.markdown-body .procedural-image-wrapper img {
10-
width: auto;
11-
height: auto;
12-
max-height: 500px;
13-
padding: 0;
14-
box-shadow: var(--color-shadow-medium);
15-
}
8+
img {
9+
width: auto;
10+
height: auto;
11+
max-height: 32rem;
12+
padding: 0;
13+
box-shadow: var(--color-shadow-medium);
14+
}
1615

17-
// make sure images that contain emoji render at the expected size
18-
.markdown-body img[src*="https://github.githubassets.com/images/icons/emoji"]
19-
{
20-
height: 20px;
21-
width: 20px;
16+
// make sure images that contain emoji render at the expected size
17+
img[src*="https://github.githubassets.com/images/icons/emoji"]
18+
{
19+
height: 20px;
20+
width: 20px;
21+
box-shadow: none;
22+
}
2223
}
2324

2425
.markdown-body img {
25-
max-height: 500px;
26+
max-height: 32rem;
2627
padding: 0;
2728
}

0 commit comments

Comments
 (0)