PHP Classes

File: public/asset/vendor/select2/docs/themes/learn2/scss/vendor/bourbon/addons/_retina-image.scss

Recommend this page to a friend!
  Classes of fathurrahman   mnTemplate   public/asset/vendor/select2/docs/themes/learn2/scss/vendor/bourbon/addons/_retina-image.scss   Download  
File: public/asset/vendor/select2/docs/themes/learn2/scss/vendor/bourbon/addons/_retina-image.scss
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: mnTemplate
Route HTTP requests to callback functions
Author: By
Last change:
Date: 1 year ago
Size: 845 bytes
 

Contents

Class file image Download
@mixin retina-image($filename, $background-size, $extension: png, $retina-filename: null, $retina-suffix: _2x, $asset-pipeline: false) { @if $asset-pipeline { background-image: image-url("#{$filename}.#{$extension}"); } @else { background-image: url("#{$filename}.#{$extension}"); } @include hidpi { @if $asset-pipeline { @if $retina-filename { background-image: image-url("#{$retina-filename}.#{$extension}"); } @else { background-image: image-url("#{$filename}#{$retina-suffix}.#{$extension}"); } } @else { @if $retina-filename { background-image: url("#{$retina-filename}.#{$extension}"); } @else { background-image: url("#{$filename}#{$retina-suffix}.#{$extension}"); } } background-size: $background-size; } }