Skip to content

Instantly share code, notes, and snippets.

View ffoodd's full-sized avatar
🎯
Focusing

Gaël Poupard ffoodd

🎯
Focusing
View GitHub Profile
@ffoodd
ffoodd / dabblet.css
Created February 14, 2018 10:19
Untitled
@keyframes test { from { background: white } to { background: black }}
html { background: black; animation: 2s test;}
html:hover { animation: 2s test reverse;}
@ffoodd
ffoodd / dabblet.css
Last active January 29, 2018 14:36
Marie Comet test
/**
* Marie Comet test
*/
main {
margin: 0 auto;
max-width: 64rem;
}
div {
@ffoodd
ffoodd / dabblet.css
Last active January 19, 2018 16:09
.sr-only reduced test case
/**
* .sr-only reduced test case
*/
.sr-only {
left: -100vw;
position: absolute;
}
.sr-only-focusable:focus {
@ffoodd
ffoodd / dabblet.css
Last active December 15, 2017 14:28
CSS selecotrs tester
/**
* CSS selecotrs tester
*/
button:not(:-moz-any([type], [form], [formaction], [formtarget])),
:not(:-moz-any(img, object, embed, svg, canvas)):-moz-any([width], [height]) {
outline: 4px solid red;
outline-offset: -4px;
}
@ffoodd
ffoodd / mu-fSelect.js
Created December 4, 2017 13:27
FacetWP accessibility improvements
(function($) {
$.fn.fSelect = function(options) {
if ('string' === typeof options) {
var settings = options;
}
else {
var settings = $.extend({
placeholder: 'Select some options',
@ffoodd
ffoodd / functions.php
Created December 19, 2016 15:17 — forked from 7studio/functions.php
WP + TinyMCE + Color Picker Plugin + Text Color Plugin = ❤️
<?php
if ( ! function_exists( 'thistle_remove_tiny_mce_colorpicker' ) ) {
/**
* Pulls out the colorpicker plugin from TinyMCE.
* Without this plugin the end user cannot select a custom color.
*
* @link https://www.tinymce.com/docs/plugins/colorpicker/
*
* @param array $plugins An array of default TinyMCE plugins.
@ffoodd
ffoodd / dabblet.css
Created November 3, 2016 13:17
transform space
/**
* transform space
*/
span {
display: inline-block;
transform: scale(0);
}
@ffoodd
ffoodd / index.html
Last active January 20, 2017 10:22
Soulignement factice
<a class="underline" href="http://www.ffoodd.fr">C&#700;est psychologique</a>
@ffoodd
ffoodd / improved-sr-only.markdown
Last active June 22, 2026 09:30
Improved .sr-only

Improved .visually-hidden

Theorically bulletproof CSS class for visually hide anything and keep it accessible to ATs.

A Pen by ffoodd on CodePen.

License.

@ffoodd
ffoodd / dabblet.css
Created September 27, 2016 11:38
Les chevaliers de la table ronde
/* Les chevaliers de la table ronde */