Skip to content

Instantly share code, notes, and snippets.

@nladart
nladart / dabblet.css
Created February 6, 2017 19:14 — forked from chriscoyier/dabblet.css
Checkbox Hack
/* Checkbox Hack */
input[type=checkbox] {
position: absolute;
top: -9999px;
left: -9999px;
}
label {
-webkit-appearance: push-button;
-moz-appearance: button;
@charset "UTF-8";
/*---------------------------------------------------------------
IE78 - Zurb Foundation 4 Grid
ˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍ
https://gist.github.com/replete/7082477
(an enhanced fork of https://gist.github.com/zurbchris/5068210 )
1) Make sure $row-width-px = your max large breakpoint row width (e.g. 960px)
@nladart
nladart / content-create.php
Last active December 25, 2015 02:29 — forked from norcross/content-create.php
http://reaktivstudios.com/case-studies/nextdraft/ Can we move the whole NextDraft publishing process into WordPress? Parsing the HTML file into WordPress-structured content As mentioned earlier, Dave’s workflow started with an HTML file with pre-defined markup. Dave wanted to keep this setup because 1.) he was comfortable with it, and 2.) it mad…
<?php
/**
* AJAX call for parsing HTML
*
*/
public function parse_html() {
// get content from textarea
$text = $_POST['content'];
//Enlarge all the bacon.
$('.bacon').height(10000).refresh();

Custom Select Menu

A custom select menu without plugins.

@nladart
nladart / gist:6603215
Created September 18, 2013 01:20 — forked from brianblakely/gist:581868
Helpful things to keep in your <head/>
<!DOCTYPE html>
<!-- Helpful things to keep in your <head/>
// Brian Blakely, 360i
// http://twitter.com/brianblakely/
-->
<head>
<!-- Disable automatic DNS prefetching.
<div class="ribbon">
<span>LaDart</span>
</div>
<!doctype html>
<html>
<head>
<!-- Encoding -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"></meta>
@nladart
nladart / webkit-pseudo-elements.md
Created May 16, 2013 19:25 — forked from leostratus/webkit-pseudo-elements.md
Web-Kit HTML5 form controls, etc. css

An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.

Everything is broken up by tag, but within each the selectors aren't particularly ordered.

I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A

A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:

-webkit-appearance:none;

@nladart
nladart / functions-snippet-1.php
Created March 21, 2013 18:10 — forked from neverything/functions-snippet-1.php
For Require + Foundation Child Theme
<?php
// Add the following line to your required_starter_themesetup in your child theme functions.php
remove_action( 'wp_enqueue_scripts', 'required_load_scripts' );