Skip to content

Instantly share code, notes, and snippets.

Avatar

Geoffrey Crofte geoffreycrofte

View GitHub Profile
View IE CSS Hacks: IE6, 7, 8, 9, 10, 11, Edge.md

IE CSS Hacks: IE6, 7, 8, 9, 10, 11, and even Edge

I always struggle with hacks for Edge and IE. See also for other tips: http://browserhacks.com/

IE6 Only

_selector {...}
View material-icons-list-json.json
{
"categories": [{
"name": "action",
"key": "action",
"icons": [{
"id": "ic_3d_rotation",
"name": "3d rotation",
"group_id": "action",
"keywords": ["action, 3d, rotation"],
"ligature": "3d_rotation",
View improved-sr-only.markdown

Improved .sr-only

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

A Pen by ffoodd on CodePen.

License.

@jmau111
jmau111 / checking-php-wp.php
Last active Aug 29, 2015
Check if current WP installation runs on server with minimum PHP 5.4
View checking-php-wp.php
<?php
add_action('admin_notices', '_check_php_version_notif', 0);
/**
* Check if current PHP version is newer than 5.4
* @link https://gist.github.com/TweetPressFr/0cb0ef6330f054f55839
* @author Julien Maury
*/
function _check_php_version_notif(){
global $pagenow;