Skip to content

Commit bc2b533

Browse files
committed
limit size of inline images
1 parent a6a41d6 commit bc2b533

File tree

6 files changed

+33
-4
lines changed

6 files changed

+33
-4
lines changed

Assets/css/Main.css

Lines changed: 18 additions & 1 deletion
Large diffs are not rendered by default.

Assets/css/Main.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Stylesheets/Mixins/_InlineImage.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@mixin inline-image
2+
{
3+
max-width: 100%;
4+
max-height: 40rem;
5+
}

Stylesheets/_blockquote.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,8 @@ blockquote
1010
{
1111
font-style: normal;
1212
}
13+
img
14+
{
15+
@include inline-image;
16+
}
1317
}

Stylesheets/_figure.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ figure
44

55
img
66
{
7-
max-width: 100%;
8-
max-height: 40rem;
7+
@include inline-image;
98
}
109
}
1110

Stylesheets/_p.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ p
99
{
1010
@include inline-code;
1111
}
12+
img
13+
{
14+
@include inline-image;
15+
}
1216
}
1317

1418
p.note

0 commit comments

Comments
 (0)