Skip to content

Instantly share code, notes, and snippets.

@ianrose
ianrose / list-extends-first.scss
Created June 4, 2013 17:38
Chris Coyer Sass Style Guide
.weather {
@extends %module;
...
}
@ianrose
ianrose / typography.scss
Created June 25, 2013 16:05
A typographic base that uses Compass's 0.13.alpha Vertical Rhythm and TeamSass's Modular Scale https://github.com/Team-Sass/modular-scale. Heavily inspired and built on Eric Meyer's example: https://gist.github.com/ericam/3601836
//Font Families
// -------------------------------------
$primary-font-regular: 'proxima_nova_rgregular', 'Helvetica Neue', Helvetica, Arial, sans-serif;
$primary-font-italic: 'proxima_novaregular_italic', 'Helvetica Neue', Helvetica, Arial, sans-serif;
$primary-font-semibold: 'proxima_nova_ltsemibold', 'Helvetica Neue', Helvetica, Arial, sans-serif;
$primary-font-semibold-italic: 'proxima_novasemibold_italic', 'Helvetica Neue', Helvetica, Arial, sans-serif;
$primary-font-bold: 'proxima_nova_rgbold', 'Helvetica Neue', Helvetica, Arial, sans-serif;
$primary-font-bold-italic: 'proxima_novabold_italic', 'Helvetica Neue', Helvetica, Arial, sans-serif;
$secondary-font: Georgia, Times, 'Times New Roman', serif;
@ianrose
ianrose / index.html
Created August 27, 2013 23:00
css-keyframe-background-images
<html>
<head>
<style>
body {
background-color: #fff;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-webkit-animation-duration: 10s;
-moz-animation-duration: 10s;
@ianrose
ianrose / SassMeister-input-HTML.html
Created October 12, 2013 20:58
Generated by SassMeister.com.
<div class="panel">
<div class="content">Panel</div>
</div>
<div class="panel">
<div class="content">Panel</div>
</div>
<div class="panel">
<div class="content">Panel</div>
</div>
<div class="panel">
@ianrose
ianrose / pr-description-template.md
Last active August 29, 2015 13:56
PR Description Template

For: #1, #2, nbcnews/nbcnews.com-redesign-backlog/issues/1

Reviewers:

  • @
  • @

Test steps:

@import "path/your-reset";
// Your settings for Typesettings :)
$font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
$font-serif: Georgia, 'Times New Roman', serif;
$font-mono: 'Lucida Console', Monaco, monospace;
$text-color: #000;
$base-vertical-unit: 6px;
$base-line-multi: 4;
$base-font-size: 16px;
// This example is using Typesettings' default settings
// [1] 3 times the baseline grid value for margin-bottom.
// The second argument is the context font-size. In this case it is 1 step down in
// the modular scale.
//
// [2] Using an optional mixin, a 2px border bottom is set with padding bottom
// set to 3 times the baseline grid with 2px subtracted. By subtracting the 2px from
// the padding bottom, vertical rhythm is maintained.
//
// [3] Using an optional mixin, the line-height is set to 3 * baseline grid. Then
.your-module {
margin-bottom: 1.59075em; /* 18px */
border-color: #000;
border-style: solid;
border-bottom-width: 2px;
padding-bottom: 1.414em; /* 16px */
font-size: 0.70721em;
line-height: 1.59075; /* 18px (Okay, not pixel perfect, 17.9999999999px) */
}
@ianrose
ianrose / A-Pen-by-Ian-Rose.markdown
Created March 8, 2014 15:31
A Pen by Ian Rose.
@ianrose
ianrose / SassMeister-input-HTML.html
Created March 31, 2014 20:21
Generated by SassMeister.com.
<h3>Current Colors</h3>
<div class="current-one">one</div>
<div class="current-two">two</div>
<div class="current-three">three</div>
<div class="current-four">four</div>
<div class=current-five>five</div>
<div class="current-six">six</div>
<div class="current-seven">seven</div>
<div class="current-eight">eight</div>
<div class="current-nine">nine</div>