cachaito
7/11/2014 - 10:39 PM

Obsługa obrazków za pomocą Compass

Obsługa obrazków za pomocą Compassa za: http://www.sitepoint.com/compass-or-bourbon-sass-frameworks/ helper image-url załatwia obsługę ścieżek z config.rb

//Compass functions accessing file system
.logo {
  $image: "path/to/my/logo.png";
  width: image-width($image);
  height: image-height($image);
  background: inline-image($image) no-repeat; //encode an image file in Base64.
  //background: image-url($image, false, false) no-repeat; parametry: only path off, cache-buster off
}