Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Commit 039ef70

Browse files
Merge pull request #22 from hankchizljaw/feature/img-alt-detection
Feature/img alt detection
2 parents 6741b54 + f604adb commit 039ef70

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

dist/reset.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ select {
6565
font: inherit;
6666
}
6767

68+
/* Blur images when they have no alt attribute */
69+
img:not([alt]) {
70+
filter: blur(10px);
71+
}
72+
6873
/* Remove all animations and transitions for people that prefer not to see them */
6974
@media (prefers-reduced-motion: reduce) {
7075
* {

dist/reset.min.css

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"url": "git+https://github.com/hankchizljaw/modern-css-reset.git"
1212
},
1313
"keywords": [
14-
"css reset",
14+
"css reset",
1515
"modern css reset"
1616
],
1717
"author": "Andy Bell <me@andy-bell.design> (https://hankchizljaw.com)",

src/reset.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ select {
6565
font: inherit;
6666
}
6767

68+
/* Blur images when they have no alt attribute */
69+
img:not([alt]) {
70+
filter: blur(10px);
71+
}
72+
6873
/* Remove all animations and transitions for people that prefer not to see them */
6974
@media (prefers-reduced-motion: reduce) {
7075
* {

0 commit comments

Comments
 (0)