Skip to content

Instantly share code, notes, and snippets.

@Schniz
Created September 4, 2013 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Schniz/6438289 to your computer and use it in GitHub Desktop.
Save Schniz/6438289 to your computer and use it in GitHub Desktop.
A Pen by Gal Schlezinger.
<div class="banner">
<h1>Long Shadows</h1>
<h2>Sass Mixin for Long Shadows</h2>
</div>
@import "compass"
@function makelongshadow($color, $end)
$val: 0px 0px $color
@for $i from 1 through $end
$val: #{$val}, #{$i}px #{$i}px #{$color}
@return $val
@mixin longshadow($color, $end: 200)
text-shadow: makelongshadow($color, $end)
$color: #E13E06
.banner
padding: 100px
text-align: center
overflow: hidden
border-bottom: 5px solid #ccc
background-color: $color
h1, h2
line-height: 1
margin: 0
color: #fff
h1
font-size: 75px
@include longshadow(darken($color, 5%))
h2
font-size: 40px
@include longshadow(darken($color, 8%))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment