$body_color: darken(#fff, 3); $body_p_font: normal 100% / 1.5 Georgia, Cambria, "Times New Roman", Times, serif; $body_font_color: #222; $link_color: #b53a04; $secondary-link-color: #838383; $narrow-beta-width: 680px; $narrow-max-width: 720px; $max_width: 1140px; $link_hover_color: #b53a04; $home-palette-primary: #14cfe7; @function calc-rem($size) { $remsize: $size/16; @return #{$remsize}rem; } @mixin fontsize($size) { font-size: $size + px; font-size: calc-rem($size); } @mixin generic-sans { font-family: sans-serif; } @mixin generic-serif { font-family: Georgia, 'Times New Roman', serif; } @mixin fancy-sans { font-family: mffnweb, Helvetica, sans-serif; } @mixin fancy-serif { font-family: mffweb, 'PT Serif', Georgia, 'Times New Roman', serif; } %clearfix { *zoom: 1; &:before { content: " "; display: table; } &:after { content: " "; display: table; clear: both; } } @mixin faded_line_after { display: block; content: ""; margin-top: 3em; height: 1px; width: 100%; background: -webkit-linear-gradient(left, rgba(0,0,0,0),rgba(0,0,0,0.1),rgba(0,0,0,0)); background: -moz-linear-gradient(left, rgba(0,0,0,0),rgba(0,0,0,0.1),rgba(0,0,0,0)); background: -o-linear-gradient(left, rgba(0,0,0,0),rgba(0,0,0,0.1),rgba(0,0,0,0)); background: linear-gradient(left, rgba(0,0,0,0),rgba(0,0,0,0.1),rgba(0,0,0,0)); } //generic constrain function @mixin constrain($size) { max-width: $size; margin-left: auto; margin-right: auto; } //set an element to centered, narrowish column width //used mostly on columns of text @mixin constrain_narrow() { max-width: 94%; margin-left: auto; margin-right: auto; @include breakpoint(beta) { max-width: $narrow-beta-width; } @include breakpoint(gamma) { max-width: $narrow-max-width; } } //set an element to centered, wideish column width @mixin constrain_wide() { max-width: 94%; margin-left: auto; margin-right: auto; @include breakpoint(gamma) { max-width: $breakpoint-gamma; } @include breakpoint(delta) { max-width: $breakpoint-delta; } @include breakpoint(epsilon) { max-width: $max_width; } }