Skip to content

Instantly share code, notes, and snippets.

View shaunbent's full-sized avatar

Shaun Bent shaunbent

View GitHub Profile
@shaunbent
shaunbent / SassMeister-input.scss
Created November 15, 2013 17:41 — forked from kaelig/SassMeister-input.scss
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
// Transform a value into rem
// Assuming baseline is set to 10px on :root/html
@function rem($value, $baseline: 10px) {
@if type-of($value) == list {
$result: ();
$(function(){
$('.site-header') .css({'height': (($(window).height() - 20 ))+'px'});
$(window).resize(function(){
$('.site-header') .css({'height': (( $(window).height() - 20 ))+'px'});
});
});