diff --git a/.gitignore b/.gitignore index a2e1c5d..5cb947c 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ dist cypress/videos cypress/fixtures cypress/screenshots +*.tgz diff --git a/README.md b/README.md index 736802b..e10ccc1 100644 --- a/README.md +++ b/README.md @@ -84,8 +84,11 @@ In the below CDN links: - Replace `:version` with a version [listed here](https://www.npmjs.com/package/checka11y-css?activeTab=versions) (latest version is always recommended). If you always want to get the latest stylesheet, remove `@:version` completely (Not recommended). - Replace `:stylesheet` with one of the listed stylesheets below: - `checka11y.css` (errors & warnings, recommended) + - `checka11y.min.css` (minified errors & warnings, recommended) - `checka11y-errors.css` (errors **only**) + - `checka11y-errors.min.css` (minified errors **only**) - `checka11y-warnings.css` (errors **only**) + - `checka11y-warnings.min.css` (minified errors **only**) ```html @@ -123,6 +126,8 @@ In the below imports, replace `:file` with one of the options below: - `checka11y.css` (.css file) - `src/errors/checka11y-errors` (errors **only**) - `src/warnings/checka11y-warnings` (warnings **only**) + +Use as a Sass module (recommended): ```scss /* Webpack */ @use '~checka11y-css/:file' as *; @@ -131,6 +136,15 @@ In the below imports, replace `:file` with one of the options below: @use 'path/to/node_modules/checka11y-css/:file' as *; ``` +Import generally (not recommended, read why): +```scss +/* Webpack */ +@import '~checka11y-css/:file'; + +/* Non-webpack */ +@import 'path/to/node_modules/checka11y-css/:file'; +``` + ### Using Angular? 👉 [Go to ngx-checka11y](https://github.com/AlaaEl-DinAhmed/ngx-checka11y) diff --git a/checka11y-errors.min.css b/checka11y-errors.min.css new file mode 100644 index 0000000..cd3e809 --- /dev/null +++ b/checka11y-errors.min.css @@ -0,0 +1 @@ +:root{--checka11y-text-error:#721c24;--checka11y-bg-error:#ffc6c6;--checka11y-border-error:#f00}:root{--checka11y-space:0.25rem;--checka11y-space-0:calc(var(--checka11y-space) * 0);--checka11y-space-2:calc(var(--checka11y-space) * 2);--checka11y-space-4:calc(var(--checka11y-space) * 4);--checka11y-space-6:calc(var(--checka11y-space) * 6)}button audio[controls]{border:.4rem solid;border-color:var(--checka11y-border-error);background-image:url('data:image/svg+xml;utf8,ERROR (E0000): Ensure that <audio controls> is not a child of <button>.');background-position:bottom center;background-repeat:no-repeat;min-width:550px;padding-bottom:80px}button button::after{display:block;font-size:1rem;font-family:verdana,geneva,tahoma,sans-serif;font-weight:700;font-style:initial;padding:var(--checka11y-space-4) var(--checka11y-space-6);border-radius:.75rem;letter-spacing:initial;text-decoration:none;text-transform:initial;text-shadow:none;content:"ERROR (E0000): Ensure that