Skip to content

Instantly share code, notes, and snippets.

@gavinballard
gavinballard / settings.html
Created July 30, 2014 12:06
Example output from grunt-shopify-theme-settings Grunt plugin.
<fieldset>
<legend>Appearance and Fonts</legend>
<h3>
Background
</h3>
<table>
<tr>
<th>
<label for="background_style">Background Style</label>
</th>
@gavinballard
gavinballard / respond.js
Last active August 29, 2015 14:04
Potential selectivizr.js + respond.js combination for Shopify.
/*! Respond.js: min/max-width media query polyfill. Remote proxy (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */
(function(win, doc, undefined) {
// Add a modified version of selectivizr.js here. Could remove the methods
// that fetch remote stylesheets (as Respond.js would be doing that for us
// via the proxy method), but expose the code that parses and applies
// patches as a public method - something like Selectivizr.parseStyleSheets().
var docElem = doc.documentElement,
proxyURL = doc.getElementById("respond-proxy").href,