Merge pull request #22 from hankchizljaw/feature/img-alt-detection
Feature/img alt detection
This commit is contained in:
commit
039ef70be8
4 changed files with 12 additions and 2 deletions
5
dist/reset.css
vendored
5
dist/reset.css
vendored
|
@ -65,6 +65,11 @@ select {
|
||||||
font: inherit;
|
font: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Blur images when they have no alt attribute */
|
||||||
|
img:not([alt]) {
|
||||||
|
filter: blur(10px);
|
||||||
|
}
|
||||||
|
|
||||||
/* Remove all animations and transitions for people that prefer not to see them */
|
/* Remove all animations and transitions for people that prefer not to see them */
|
||||||
@media (prefers-reduced-motion: reduce) {
|
@media (prefers-reduced-motion: reduce) {
|
||||||
* {
|
* {
|
||||||
|
|
2
dist/reset.min.css
vendored
2
dist/reset.min.css
vendored
|
@ -1 +1 @@
|
||||||
*,*::before,*::after{box-sizing:border-box}ul[class],ol[class]{padding:0}body,h1,h2,h3,h4,p,ul[class],ol[class],figure,blockquote,dl,dd{margin:0}body{min-height:100vh;scroll-behavior:smooth;text-rendering:optimizeSpeed;line-height:1.5}ul[class],ol[class]{list-style:none}a:not([class]){text-decoration-skip-ink:auto}img{max-width:100%;display:block}article>*+*{margin-top:1em}input,button,textarea,select{font:inherit}@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}
|
*,*::before,*::after{box-sizing:border-box}ul[class],ol[class]{padding:0}body,h1,h2,h3,h4,p,ul[class],ol[class],figure,blockquote,dl,dd{margin:0}body{min-height:100vh;scroll-behavior:smooth;text-rendering:optimizeSpeed;line-height:1.5}ul[class],ol[class]{list-style:none}a:not([class]){text-decoration-skip-ink:auto}img{max-width:100%;display:block}article>*+*{margin-top:1em}input,button,textarea,select{font:inherit}img:not([alt]){filter:blur(10px)}@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"url": "git+https://github.com/hankchizljaw/modern-css-reset.git"
|
"url": "git+https://github.com/hankchizljaw/modern-css-reset.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"css reset",
|
"css reset",
|
||||||
"modern css reset"
|
"modern css reset"
|
||||||
],
|
],
|
||||||
"author": "Andy Bell <me@andy-bell.design> (https://hankchizljaw.com)",
|
"author": "Andy Bell <me@andy-bell.design> (https://hankchizljaw.com)",
|
||||||
|
|
|
@ -65,6 +65,11 @@ select {
|
||||||
font: inherit;
|
font: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Blur images when they have no alt attribute */
|
||||||
|
img:not([alt]) {
|
||||||
|
filter: blur(10px);
|
||||||
|
}
|
||||||
|
|
||||||
/* Remove all animations and transitions for people that prefer not to see them */
|
/* Remove all animations and transitions for people that prefer not to see them */
|
||||||
@media (prefers-reduced-motion: reduce) {
|
@media (prefers-reduced-motion: reduce) {
|
||||||
* {
|
* {
|
||||||
|
|
Loading…
Reference in a new issue