Skip to content

Instantly share code, notes, and snippets.

@codingdesigner
codingdesigner / A-Pen-by-Mason-Wendell.markdown
Created February 13, 2014 07:31
A Pen by Mason Wendell.
@codingdesigner
codingdesigner / SassMeister-input-HTML.html
Created February 13, 2014 07:24
Generated by SassMeister.com.
<h1>Breakpoint</h1>
<ul>
<li>media query shortcuts</li>
<li>media query variables</li>
<li>convert px to ems</li>
<li>resolution conversion and prefixing</li>
<li>no-query fallbacks (IE8!)</li>
<li>media query context inspection (frameworks)</li>
</ul>
@codingdesigner
codingdesigner / SassMeister-input.scss
Created November 23, 2013 17:43
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
@import "breakpoint";
/* SURPRISE! This is broken in Breakpoint 2.0.7 */
@include breakpoint(max-width 350px, 500px 600px) {
left: -0.75em;
@codingdesigner
codingdesigner / SassMeister-input-HTML.html
Created November 1, 2013 21:53
Generated by SassMeister.com.
<div class="foo">
<h2>Hello World</h2>
</div>
@codingdesigner
codingdesigner / SassMeister-input-HTML.html
Created October 31, 2013 04:16
Generated by SassMeister.com.
<article class="module">
<h1>Welcome</h1>
<p>This is a simple example using a combination of both REM and EM to help dictate margin, padding, etc in EM values, based on a font-size set in REM for the parent containers.</p>
<p>Use Rems when a font size change is needed on an element, but then use EMs for padding, margins and any children elements.</p>
<p>Just set the font size in Rems, and then for any other measurements use EMs by doing (desired px value/element font-size in pixels + em).</p>
</article>
<article class="module">
<h1>Example</h1>
<p>I'm sure that it would be possible to use Sass in a better (and cooler) way to start controlling the sizing even moreso and really harness Sass's power. I'll be looking into it, as I play further with this technique.</p>
@codingdesigner
codingdesigner / SassMeister-input.scss
Created August 1, 2013 14:34
Generated by SassMeister.com, the Sass playground.
// ---
// Sass (v3.2.9)
// ---
%h1 {
font-size: 2rem;
line-height: 1.75;
}
%h2 {
@codingdesigner
codingdesigner / SassMeister-input.scss
Created August 1, 2013 14:32
Generated by SassMeister.com, the Sass playground.
// ---
// Sass (v3.2.9)
// ---
h1 {
font-size: 2rem;
line-height: 1.75;
}
h2 {
@codingdesigner
codingdesigner / SassMeister-input.scss
Created August 1, 2013 14:31
Generated by SassMeister.com, the Sass playground.
// ---
// Sass (v3.2.9)
// ---
h1 {
font-size: 2rem;
line-height: 1.75;
}
h2 {
@codingdesigner
codingdesigner / SassMeister-input.scss
Created August 1, 2013 14:28
Generated by SassMeister.com, the Sass playground.
// ---
// Sass (v3.2.9)
// ---
@mixin button-base {
border-radius: 0.2em;
border: {
width: 1px;
style: solid;
@codingdesigner
codingdesigner / SassMeister-input.scss
Created August 1, 2013 14:23
Generated by SassMeister.com, the Sass playground.
// ---
// Sass (v3.2.9)
// ---
@mixin button-base {
border-radius: 0.2em;
border: {
width: 1px;
style: solid;