a5e / a11y.css

L’objectif de ce fichier CSS est d’alerter l’intégrateur sur les erreurs et risques potentiels dans le code - mais il peut également servir à auditer rapidement un site existant afin d’évaluer l’ampleur des dégâts.

Home Page:http://ffoodd.github.io/a11y.css/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

a11y.css

Pronounced « Alix ». Because it's fun.

GitHub version npm version Bower version devDependency Status Build Status

Introduction

This CSS file intends to warn developers about possible risks and mistakes that exist in HTML code. It can also be used to roughly evaluate a site's quality by simply including it as an external stylesheet.

When hovering marked elements, a little banner should appear on top of your browser displaying what's going on.

This file is not a replacement to a complete tool such as OpQuast Reporting. It only intends to show possible weaknesses. You should obviously do some manual check by hand to know whether the code should or should not be fixed.

Bookmarklet

You can easily use the latest version of this stylesheet by adding this bookmarklet to your bookmarks:

javascript:(function(){a11ycss=document.createElement('LINK');a11ycss.href='https://rawgit.com/ffoodd/a11y.css/master/css/a11y-en.css';a11ycss.rel='stylesheet';a11ycss.media='all';document.body.appendChild(a11ycss);})();

You can also generate your own bookmarklet (choosing language and minimum level) on the dedicated page then directly drag it to your bookmarks. Isn't it handy?

Counters

CSS counters are incremented on each error/advice/warning and results are displayed with html::after. Since it is added through CSS, it is basically fake-content which is good since it is no more than visual indication for the developper to see what's going on. It will appear on the bottom left side of your page :).

Credits and Acknowledgements

Acknowledgements

Many references helped me in the making of this stylesheet:

Although let's keep in mind the idea has nothing new (there is an article from Marco Battilana from 2006, and a proposal by Eric Meyer himself from 2007). I only tried to push things further. I suggest you read my article (in French) to learn more about the project.

Contributors

They helped a lot:

And they took time to open a few issues:

Thank you all!

This project is distributed under MIT license and CC BY 3.0 FR. Copyright (c) 2013 Gaël Poupard

About

L’objectif de ce fichier CSS est d’alerter l’intégrateur sur les erreurs et risques potentiels dans le code - mais il peut également servir à auditer rapidement un site existant afin d’évaluer l’ampleur des dégâts.

http://ffoodd.github.io/a11y.css/


Languages

Language:CSS 99.4%Language:HTML 0.4%Language:JavaScript 0.1%Language:Ruby 0.1%