Sha256: 617fe1edc85fffbb7ec416b7df10775f20b8f5dc0a9f1933c9da1722fbab6cd0

Contents?: true

Size: 1.62 KB

Versions: 16

Compression:

Stored size: 1.62 KB

Contents

// TYPOGRAPHIC TOOLS
=type($size, $line-height)
  font-size: $size
  line-height: $line-height

=solid($lineheight)
  font-size: $lineheight
  line-height: 1em

=caps($letterspace: 0.1em)
  text-transform: uppercase
  letter-spacing: $letterspace

=letterpress($color)
  text-shadow: 0 -1px 0 darken($color, 15%), 0 1px 0 lighten($color, 15%)


// CENTER AND FILL BACKGROUND
=background-fill
  background-repeat: no-repeat
  background-position: center center fixed
  +prefix(background-size, cover)


// @FONT-FACE (FONTSPRING SYNTAX)
=font($name, $url, $weight: normal, $style: normal)
  @font-face
    font-family: '$name'
    font-weight: $weight
    font-style: $style
    src: url('#{$url}.eot?') format('eot'), url('#{$url}.woff') format('woff'), url('#{$url}.ttf')  format('truetype')


// CLEARFIX
=clearfix
  &:before, &:after
    content: "\0020"
    display: block
    height: 0
    overflow: hidden  
  &:after
    content: "\0020"
    display: block
    height: 0
    overflow: hidden  
    clear: both  
  &
    zoom: 1  

// REMOVE GRID
=remove
  min-width: 99999px
  width: 99999px


// SOME BASIC SPRITE STYLING
=sprite($width, $height, $offset-x, $offset-y, $url: $sprite-file)
  display: block
  overflow: hidden
  text-indent: -999px
  background-image: url('../img/sprites.png')
  background-position: ($offset-x * -1) ($offset-y * -1)
  background-repeat: no-repeat
  width: $width
  height: $height


// DEBUG TOOLS
=r
  background: #ff9999 !important
=g
  background: #99ff99 !important
=b
  background: #9999ff !important
=c
  background: #99ffff !important
=m
  background: #ff99ff !important
=y
  background: #ffff99 !important

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
seasons-0.9.3.beta16 stylesheets/seasons/tools/_basic-functions.sass
seasons-0.9.3.beta15 stylesheets/seasons/tools/_basic-functions.sass
seasons-0.9.3.beta14 stylesheets/seasons/tools/_basic-functions.sass
seasons-0.9.3.beta13 stylesheets/seasons/tools/_basic-functions.sass
seasons-0.9.3.beta12 stylesheets/seasons/tools/_basic-functions.sass
seasons-0.9.3.beta11 stylesheets/seasons/tools/_basic-functions.sass
seasons-0.9.3.beta10 stylesheets/seasons/tools/_basic-functions.sass
seasons-0.9.3.beta9 stylesheets/seasons/tools/_basic-functions.sass
seasons-0.9.3.beta8 stylesheets/seasons/tools/_basic-functions.sass
seasons-0.9.3.beta7 stylesheets/seasons/tools/_basic-functions.sass
seasons-0.9.3.beta6 stylesheets/seasons/tools/_basic-functions.sass
seasons-0.9.3.beta5 stylesheets/seasons/tools/_basic-functions.sass
seasons-0.9.3.beta4 stylesheets/seasons/tools/_basic-functions.sass
seasons-0.9.3.beta3 stylesheets/seasons/tools/_basic-functions.sass
seasons-0.9.3.beta2 stylesheets/seasons/tools/_basic-functions.sass
seasons-0.9.3.beta1 stylesheets/seasons/tools/_basic-functions.sass