Skip to content

Instantly share code, notes, and snippets.

View redclov3r's full-sized avatar

Philipp Kreutzer redclov3r

View GitHub Profile
@redclov3r
redclov3r / index.js
Created December 11, 2014 17:25
requirebin sketch
var Collection = require('ampersand-collection');
var State = require('ampersand-state');
var Model = State.extend();
var model = new Model();
var col1 = new Collection();
col1.add(model);
var col2 = new Collection();
@redclov3r
redclov3r / rwd-ie.scss
Created October 30, 2012 12:29
Responsive Sass mixin with IE support (IE < 9 == largest media)
mixin respond-to($media) {
@if $media == medium {
@media only screen and (min-width: $breakMedium) { @content; }
}
@else if $media == large {
@media only screen and (min-width: $breakLarge) { @content; }
}
body.lt-ie9 & {
@content; //serve IE < 9 with all media queries
}
@redclov3r
redclov3r / index.html
Created August 22, 2012 12:38
Form style, which makes extensive use of CSS3 features.
<h1>Fancy Form</h1>
<form>
<fieldset>
<legend> Classic Inputs</legend>
<p>First we'll start off with some classic textinput fields for single lines, passwords and multiline-text. These have been around for a long time and form a backbone for most webforms.</p>
<p>
<input type="text" id="textinput" />
<label for="textinput">Input (text)</label>
</p>
<p>
@redclov3r
redclov3r / index.html
Created August 6, 2012 15:35
A web page created at CodePen.io.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- IF PEN IS PRIVATE -->
<!-- <meta name="robots" content="noindex"> -->
<!-- END -->