Sha256: e365d88c63fb3d4eebf85545f194102ff7f5111bbc194992c1696c8f7da473bd

Contents?: true

Size: 1.62 KB

Versions: 2

Compression:

Stored size: 1.62 KB

Contents

@mixin font-size($size: 1.4, $important: false) {
  @if $important == true {
    font-size: ($size * 10) + px !important;
    font-size: $size + rem !important;
  } @else {
    font-size: ($size * 10) + px;
    font-size: $size + rem;
  }
}

@mixin line-height($size: 1.6, $force-height: false) {
  @if $force-height == true {
    height: ($size * 10) + px;
  }
  line-height: ($size * 10) + px;
  line-height: $size + rem;
}

@mixin text-underline-hover {
  text-decoration: none;
  &:hover {
    text-decoration: underline;
  }
}

@mixin text-underline-stroke($stroke-color, $stroke-width) {
  @include text-shadow(
    0 $stroke-width 0 $stroke-color,
    $stroke-width 0 0 $stroke-color,
    0 -1 * $stroke-width 0 $stroke-color,
    -1 * $stroke-width 0 0 $stroke-color
  );
} // @text-underline-stroke()

@mixin text-no-underline-hover {
  &:hover { text-decoration: none; }
}

@mixin text-overflow-ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@mixin font-family(
  $fontname,
  $filename,
  $weight: normal,
  $style: normal,
  $stretch: normal,
  $range: false
) {
  @font-face {
    font-family: $fontname;
    src: font-url($filename + '.eot');
    src: local($fontname), // disable this to test without the font installed locally
      font-url($filename + '.eot?#iefix') format('embedded-opentype'),
      font-url($filename + '.woff') format('woff'),
      font-url($filename + '.ttf') format('truetype'),
      font-url($filename + '.svg#' + $filename) format('svg');
    font-weight: $weight;
    font-style: $style;
    font-stretch: $stretch;

    @if $range {
      unicode-range: $range;
    }
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
compass-excess-0.4.0 stylesheets/_typography.scss
compass-excess-0.3.1 stylesheets/_typography.scss