Sha256: 9496fcca07ffb3db5573033a8498748536c093e97966b82f6a743c498ef949b3

Contents?: true

Size: 1.05 KB

Versions: 190

Compression:

Stored size: 1.05 KB

Contents

// Mixins
// --------------------------

@mixin icon($icon) {
  @include icon-FontAwesome();
  content: $icon;
}

@mixin icon-FontAwesome() {
  font-family: FontAwesome;
  font-weight: normal;
  font-style: normal;
  text-decoration: inherit;
  -webkit-font-smoothing: antialiased;
  *margin-right: .3em; // fixes ie7 issues
}

@mixin border-radius($radius) {
  -webkit-border-radius: $radius;
  -moz-border-radius: $radius;
  border-radius: $radius;
}

@mixin icon-stack($width: 2em, $height: 2em, $top-font-size: 1em, $base-font-size: 2em) {
  .icon-stack {
    position: relative;
    display: inline-block;
    width: $width;
    height: $height;
    line-height: $width;
    vertical-align: -35%;
    [class^="icon-"],
    [class*=" icon-"] {
      display: block;
      text-align: center;
      position: absolute;
      width: 100%;
      height: 100%;
      font-size: $top-font-size;
      line-height: inherit;
      *line-height: $height;
    }
    .icon-stack-base {
      font-size: $base-font-size;
      *line-height: #{$height / $base-font-size}em;
    }
  }
}

Version data entries

190 entries across 165 versions & 14 rubygems

Version Path
persistentgrid-0.0.1.beta.8 scss/pg/helpers/fonts/icon-fonts/fontawesome/_mixins.scss
persistentgrid-0.0.1.beta.3 scss/pg/helpers/fonts/icon-fonts/fontawesome/_mixins.scss
persistentgrid-0.0.1.beta.2 scss/pg/helpers/fonts/icon-fonts/fontawesome/_mixins.scss
persistentgrid-0.0.1.beta.1 scss/pg/helpers/fonts/icon-fonts/fontawesome/_mixins.scss
font-awesome-sass-3.2.1.4 vendor/assets/stylesheets/font-awesome/_mixins.scss
font-awesome-sass-3.2.1.3 vendor/assets/stylesheets/font-awesome/_mixins.scss
font-awesome-sass-3.2.1.2 vendor/assets/stylesheets/font-awesome/_mixins.scss
font-awesome-sass-3.2.1.1 app/assets/stylesheets/_mixins.scss
font-awesome-middleman-1.0.1 app/assets/stylesheets/_mixins.scss
font-awesome-middleman-1.0 app/assets/stylesheets/_mixins.scss