Sha256: 114993282db1b7c9ef23c836c52c9ecc3294d06a6281fae836c064122fff3538

Contents?: true

Size: 1.25 KB

Versions: 28

Compression:

Stored size: 1.25 KB

Contents

@mixin font-size($sizeValue: 1.6) {
  font-size: ($sizeValue * 10) + px;
  font-size: $sizeValue + rem;
}

@mixin font-face($font-family, $file-path, $weight: normal, $style: normal, $asset-pipeline: false ) {
  @font-face {
    font-family: $font-family;
    font-weight: $weight;
    font-style: $style;

    src: url(font-path('#{$spina-assets-path}/#{$file-path}.eot'));
    src: url(font-path('#{$spina-assets-path}/#{$file-path}.eot?#iefix'))          format('embedded-opentype'),
         url(font-path('#{$spina-assets-path}/#{$file-path}.woff'))                format('woff'),
         url(font-path('#{$spina-assets-path}/#{$file-path}.ttf'))                 format('truetype'),
         url(font-path('#{$spina-assets-path}/#{$file-path}.svg##{$font-family}')) format('svg');
  }
}

@mixin retina-image($filename, $background-size, $extension: png, $retina-filename: null, $retina-suffix: "@2x", $asset-pipeline: false) {
  background-image: image-url("#{$filename}.#{$extension}");

  @include hidpi {
    @if $retina-filename {
      background-image: asset-url("#{$retina-filename}.#{$extension}", image);
    }
    @else {
      background-image: asset-url("#{$filename}#{$retina-suffix}.#{$extension}", image);
    }

    background-size: $background-size;

  }
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
spina-0.10.0 app/assets/stylesheets/spina/_mixins.scss
spina-0.9.0 app/assets/stylesheets/spina/_mixins.scss
spina-0.8.3 app/assets/stylesheets/spina/_mixins.scss
spina-0.8.2 app/assets/stylesheets/spina/_mixins.scss
spina-0.8.1 app/assets/stylesheets/spina/_mixins.scss
spina-0.8.0 app/assets/stylesheets/spina/_mixins.scss
spina-0.7.3 app/assets/stylesheets/spina/_mixins.scss
spina-0.7.2 app/assets/stylesheets/spina/_mixins.scss
spina-0.7.0 app/assets/stylesheets/spina/_mixins.scss
spina-0.6.29 app/assets/stylesheets/spina/_mixins.css.scss
spina-0.6.28 app/assets/stylesheets/spina/_mixins.css.scss
spina-0.6.27 app/assets/stylesheets/spina/_mixins.css.scss
spina-0.6.26 app/assets/stylesheets/spina/_mixins.css.scss
spina-0.6.25 app/assets/stylesheets/spina/_mixins.css.scss
spina-0.6.24 app/assets/stylesheets/spina/_mixins.css.scss
spina-0.6.23 app/assets/stylesheets/spina/_mixins.css.scss
spina-0.6.22 app/assets/stylesheets/spina/_mixins.css.scss
spina-0.6.21 app/assets/stylesheets/spina/_mixins.css.scss
spina-0.6.20 app/assets/stylesheets/spina/_mixins.css.scss
spina-0.6.19 app/assets/stylesheets/spina/_mixins.css.scss