Sha256: 6a9e922c7051cf59ee1d8557efa29c8a48936294cfdd2d0ea66604fc0f3bda8a

Contents?: true

Size: 377 Bytes

Versions: 10

Compression:

Stored size: 377 Bytes

Contents

// Add `width` and `height` properties with image size.
// For HiDPI images you can set scale `factor` and width and height
// will be divided by this factor.
//
//   .button
//     +image-size("button/nice.png")
//     background: image-path("button/nice.png")
@mixin image-size($path, $factor: 1)
  width: image-width($path) / $factor
  height: image-height($path) / $factor

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rails-sass-images-2.0.0 lib/assets/stylesheets/rails-sass-images/image-size.sass
rails-sass-images-1.0.3 lib/assets/stylesheets/rails-sass-images/image-size.sass
rails-sass-images-1.0.2 lib/assets/stylesheets/rails-sass-images/image-size.sass
rails-sass-images-1.0.1 lib/assets/stylesheets/rails-sass-images/image-size.sass
rails-sass-images-1.0.0 lib/assets/stylesheets/rails-sass-images/image-size.sass
rails-sass-images-0.6 lib/assets/stylesheets/rails-sass-images/image-size.sass
rails-sass-images-0.5 lib/assets/stylesheets/rails-sass-images/image-size.sass
rails-sass-images-0.4 lib/assets/stylesheets/rails-sass-images/image-size.sass
rails-sass-images-0.3 lib/assets/stylesheets/rails-sass-images/image-size.sass
rails-sass-images-0.2 lib/assets/stylesheets/rails-sass-images/image-size.sass