_mixins.scss 456 Bytes
Newer Older
1 2 3 4
@function em($pxval, $base: 16) {
  @return #{$pxval / $base}em;
}

5 6 7 8 9 10 11 12 13 14 15
// Line-height
@function lh($amount: 1) {
  @return $body-line-height * $amount;
}

@mixin hide-text(){
  text-indent: -9999px;
  overflow: hidden;
  display: block;
}

Galen Frechette committed
16 17 18
@mixin vertically-and-horizontally-centered ( $height, $width ) {
  left: 50%;
  margin-left: -$width / 2;
Galen Frechette committed
19
  //margin-top: -$height / 2;
Galen Frechette committed
20 21
  min-height: $height;
  min-width: $width;
Galen Frechette committed
22 23
  position: absolute;
  top: 150px;
Galen Frechette committed
24
}