Skip to content

Instantly share code, notes, and snippets.

@jdlehman
jdlehman / SassMeister-input-HTML.html
Created October 5, 2015 15:48
Generated by SassMeister.com.
<div class="OuterClass">
<div class="OuterClass-innerClass">
First
</div>
</div>
@jdlehman
jdlehman / react-router-multiple-routes.js
Last active April 10, 2017 07:26
react-router: Define multiple route definitions such that components can respond to routes independently with their own RouteHandler
var React = require('react');
var Router = require('react-router'); // 0.12.4
var {Route, DefaultRoute, RouteHandler, Link, NotFoundRoute} = Router;
/* Components */
var App = React.createClass({
render: function () {
return (
<div className="App">
@jdlehman
jdlehman / multiple-route-defs.js
Last active August 29, 2015 14:16
react-router with multiple route definitions
var React = require('react');
var Router = require('react-router'); // 0.12.4
var { Route, DefaultRoute, RouteHandler, Link, NotFoundRoute } = Router;
var App = React.createClass({
render: function () {
return (
<div className="App">
<div id="header">
<Header/>
@jdlehman
jdlehman / SassMeister-input-HTML.html
Created January 30, 2015 02:58
Generated by SassMeister.com.
<h2>Large Text</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut sollicitudin pulvinar est, vel consequat mauris blandit sed. Duis sed nisl eu dolor laoreet luctus. Ut id vulputate mauris. Sed ac lacus orci. Sed quis metus nisi. Mauris interdum tincidunt tellus, eu cursus sem consequat eu. Vivamus dapibus purus ac purus dictum, ut hendrerit massa varius. In hac habitasse platea dictumst. Suspendisse convallis neque nec felis adipiscing, a volutpat leo laoreet. Pellentesque massa velit, tincidunt nec dolor vel, tincidunt lacinia tellus. Morbi vitae tellus bibendum, commodo tortor a, venenatis turpis. Curabitur vestibulum ut massa sit amet tempus. Fusce nisl mauris, tincidunt quis pulvinar sit amet, consectetur id ante. Maecenas non dapibus leo. Suspendisse interdum tortor eu hendrerit sagittis. Ut eleifend ac neque non convallis.</p>
<ul>
<li>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</li>
<li>Curabitur eget est at massa mattis aliquet.</li>
<li>Sed feugiat lacus non purus
@jdlehman
jdlehman / SassMeister-input-HTML.html
Created January 13, 2015 18:36
Generated by SassMeister.com.
<div class="Container">
<div class="Container-left">
left
</div>
<div class="Container-right">
right
</div>
</div>
@jdlehman
jdlehman / SassMeister-input-HTML.html
Created October 15, 2014 01:04
Generated by SassMeister.com.
<div class="container">
<input type="checkbox" id="left" class="toggle-input show-left" />
<input type="checkbox" id="right" class="toggle-input show-right" />
<header>
<label for="left" class="toggle">show-left</label>
<label for="right" class="toggle">show-right</label>
<h1>header</h1>
</header>
<div class="left" id="left">left</div>
<div class="main">main</div>
@jdlehman
jdlehman / SassMeister-input-HTML.html
Last active January 15, 2017 16:00
Generated by SassMeister.com.
<div class="Table">
<div class="Table-row Table-header">
<div class="Table-row-item">Header1</div>
<div class="Table-row-item">Header2</div>
<div class="Table-row-item">Header3</div>
<div class="Table-row-item">Header4</div>
</div>
<div class="Table-row">
<div class="Table-row-item" data-header="Header1">row1 col1</div>
<div class="Table-row-item" data-header="Header2">row1 col2</div>
@jdlehman
jdlehman / SassMeister-input-HTML.html
Last active February 28, 2017 20:42
Generated by SassMeister.com.
<div class="Table">
<div class="Table-row Table-header">
<div class="Table-row-item u-Flex-grow2">Long Header1</div>
<div class="Table-row-item">Header2</div>
<div class="Table-row-item">Header3</div>
<div class="Table-row-item">Header4</div>
<div class="Table-row-item u-Flex-grow3">Longer Header5</div>
<div class="Table-row-item">Header6</div>
<div class="Table-row-item">Header7</div>
</div>
@jdlehman
jdlehman / SassMeister-input.scss
Last active August 29, 2015 14:07
Generated by SassMeister.com.
// ----
// Sass (v3.4.6)
// Compass (v1.0.1)
// ----
@mixin desc($names...) {
@each $name in $names {
@at-root &-#{$name} { @content; }
}
}
@jdlehman
jdlehman / SassMeister-input-HTML.html
Created September 29, 2014 01:29
Generated by SassMeister.com.
<div class="my-AwesomeBox my-AwesomeBox--small">
<h1 class="my-AwesomeBox-title">Small Box</h1>
</div>
<div class="my-AwesomeBox">
<h1 class="my-AwesomeBox-title">Normal Title</h1>
</div>
<div class="my-AwesomeBox">
<h1 class="my-AwesomeBox-title my-AwesomeBox-title--large">Large Title</h1>