Skip to content

Commit 74d1c06

Browse files
unodefmichonneau
authored andcommitted
Use a pixelated rendering instead of default blur
Workaround to a CSS resize blur rendering problem affecting Google Chrome/Chromium when the resolution of the image is larger than the image view See https://stackoverflow.com/a/69156216 and carpentries-incubator/jekyll-pages-novice#274 for additional context.
1 parent 8f6a08c commit 74d1c06

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

assets/css/lesson.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,9 @@ span.fold-unfold {
321321
opacity: 0.5;
322322
}
323323

324+
img {
325+
image-rendering: pixelated;
326+
}
324327

325328
p.image-with-shadow img,
326329
img.image-with-shadow {

0 commit comments

Comments
 (0)