This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h3 class="subhead-major subhead"> | |
<h4 class="subhead-minor subhead"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h3 class="subhead"> | |
<h4 class="minor-subhead"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.subhead { | |
padding: 20px 0 10px 0; | |
font-family: Georgia, serif; | |
font-style: italic; | |
} | |
.subhead-major { | |
letter-spacing: 1px; | |
text-transform: uppercase; | |
color: #00f; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.subhead { | |
padding: 20px 0 10px 0; | |
font-family: Georgia, serif; | |
font-style: italic; | |
letter-spacing: 1px; | |
text-transform: uppercase; | |
color: #00f; | |
} | |
.minor-subhead { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
$("#email-signup-label").lettering(); | |
var is_search_empty = $(".email-signup input").attr("value"); | |
if (!is_search_empty == "") { | |
$("#email-signup-label").css({opacity:0}); | |
} | |
$("#email-signup-label").click(function() { | |
$(".email-signup input").focus(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { font-size: 16px; } | |
h1 { font-size: 68px; } | |
h2 { font-size: 26px; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Sass::Script::Functions | |
def exp(value, power) | |
Sass::Script::Number.new(value.value**power.value) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { @include font-size(1) } | |
h1 { @include font-size(4) } | |
h2 { @include font-size(2) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sass --watch FILENAME.scss:FILENAME.css -r sass_extensions.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$font-size-base: 16px; | |
$font-size-minor: 10px; | |
@mixin font-size($scale: 1) { | |
font-size: round( | |
($font-size-base * ((exp(1.618, $scale) - exp(-0.618, $scale)) / 2.236)) + | |
($font-size-minor * ((exp(1.618, ($scale - 1)) - exp(-0.618, ($scale - 1))) / 2.236)) | |
); | |
} |