Skip to content

Instantly share code, notes, and snippets.

@nimbupani
nimbupani / generategrid.scss
Created January 3, 2011 03:34
Generate a grid with CSS gradients
@import "compass";
@mixin generategrid(
$vertical: 18px,
$verticalcolor: rgb(0, 0, 0),
$horizontal: 30px,
$horizontalmargin: 10px,
$horizontalcolor: rgb(0, 43, 255)) {
@include linear-gradient(color-stops($verticalcolor 5%, rgba(0, 0, 0, 0) 5%, rgba(0, 0, 0, 0) 100%));
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Detect Credit Card Type</title>
</head>
<body>
// CSS declared in for HTML5 elements http://www.whatwg.org/specs/web-apps/current-work/#bindings
button,
input,
meter, progress,
select,
textarea,
keygen,
{ display: inline-block; }
// Image Replacement Mixin
// Uses Compass's image_url(), image_width() & image_height() function
=image-replacement(!imageurl)
background-image = image_url(!imageurl)
width = image_width(!imageurl)
height = image_height(!imageurl)
display: block
overflow: hidden
text-indent: -1000px
//** Vertical Rhythm **//
// By Chris Eppstein, with adjustments by Eric Meyer
// The IE font ratio is a fact of life. Deal with it.
!ie_font_ratio = 16px / 100%
// The base line height is the basic unit of line hightness.
!base_line_height ||= 18px
!h2_font_size = 24px
!base_rhythm_unit = 18px
@if (!h2_font_size > !base_rhythm_unit)
line-height = ceil(!h2_font_size/!base_rhythm_unit)*!base_rhythm_unit
@else
line-height = !base_rhythm_unit
@import compass/reset.sass
*:focus
outline: #ccc dotted medium
!base_font_size = 12px
!base_rhythm_unit= 1.5
!h2_font_size = 14px

Reading List

Culled from NPR/Guardian/Goodreads

  • Freedom's daughters : the unsung heroines of the civil rights movement from 1830 to 1970 / by Lynne O
  • Hands on the freedom plow : personal accounts by women in SNCC / edited by Faith S. Holsaert ... [et
  • Parting the waters : America in the King years, 1954-63 / Taylor Branch.
  • Judgment days : Lyndon Baines Johnson, Martin Luther King, Jr., and the laws that changed America / N
  • Martin & Malcolm & America : a dream or a nightmare / James H. Cone.
  • Ready for revolution : the life and struggles of Stokely Carmichael (Kwame Ture) / Stokely Carmichael
  • Toward the African revolution : political essays / Frantz Fanon ; translated from the French by Haako