Skip to content

Instantly share code, notes, and snippets.

.page_title {
color: #212121;
font-size: 36px;
}
.page_cta {
color: #616161;
font-size: 18px;
}
@import './typography'
.page_title {
@extend %h1;
}
.page_cta {
@extend %h3;
}
.page_special_button {
$h1-size: 36px;
$h2-size: 24px;
$h3-size: 18px;
$grey: #212121;
$lightgrey: #616161;
%h1 {
color: $grey;
font-size: $h1-size;
.page_special_button {
background-color: black;
color: white;
}
.h1,
.page_title,
.page2_title {
color: #212121;
font-size: 36px;
}
@import "./page";
@import "./font-sizes";
.page2_title {
&:extend(.page_title);
}
.log_out_cta {
&:extend(.copy);
}
.h1,
.page_title {
color: #212121;
font-size: 36px;
}
.h2 {
color: #212121;
font-size: 24px;
}
.h3,
@import "./font-sizes";
.page_title {
&:extend(.h1);
}
.page_cta {
&:extend(.h3);
}
@h1-size: 36px;
@h2-size: 24px;
@h3-size: 18px;
@grey: #212121;
@lightgrey: #616161;
.h1 {
color: @grey;
font-size: @h1-size;
}
@goldensunliu
goldensunliu / UspsCode.js
Created June 13, 2016 14:05
USPS state code to state name conversion with a simple Javascript implementation, an array and a function.
const UspsCodesToStateName = {
'AL' : 'Alabama',
'AK' : 'Alaska',
'AZ' : 'Arizona',
'AR' : 'Arkansas',
'CA' : 'California',
'CO' : 'Colorado',
'CT' : 'Connecticut',
'DE' : 'Delaware',
'DC' : 'District of Columbia',
@require 'font-size'
.page__title
font-size $font-size-base
.page__content
font-size $font-size-small