$add_icon_24: "icons/dimensions_24/add.png";
$arrow_up_down_icon_24: "icons/dimensions_24/arrow_up_down.png";
These images live in `app/assets/images/`. How do you use
`replace-text-with-dimensions` in a DRY manner with these?
`@include replace-text-with-dimensions($add_icon_24)` won't work. I
get an error: "Unknown file type png". I was thinking of making a Sass
function that finds the asset and returns the relative path from the
Rails.root, using
`YourAppName::Application.assets.find_asset('icons/dimensions_24/add.png')`,
but I figured I'd ask here first. I have to wrap my head around how
Sass Literals work before I do that.
Ramon Tayag
It's almost complete, but the value that gets passed in already has
`url()` surrounding it. Howcome?
Ramon Tayag
I tried `replace-text-with-dimension("icons/dimensions_24/cancel.png")`,
but still got `No such file or directory -
/home/ramon/source/unstilted/images/icons/dimensions_24/cancel.png`
This is the compass I'm using: gem 'compass', :git =>
'git://github.com/chriseppstein/compass.git', :branch => 'rails31'
I've updated it in the past day.
Ramon Tayag
> --
> You received this message because you are subscribed to the Google Groups "Compass" group.
> To post to this group, send email to compas...@googlegroups.com.
> To unsubscribe from this group, send email to compass-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/compass-users?hl=en.
>
>
Ramon Tayag
Ramon Tayag
@include replace-text-with-dimensions("/icons/dimensions_48/box_upload.png");
Produces this error:
No such file or directory -
/home/ramon/source/unstilted/images/icons/dimensions_48/box_upload.png
(in /home/ramon/source/unstilted/app/assets/stylesheets/admin_site/image_and_attachment_editor.css.scss)
Just to keep things simple (not use sprites), how do I use
`replace-text-with-dimensions` with a Rails 3.1 asset?
Thanks!
Sent from my iPhone
Just had to update my Gemfile to point compass to the github repo.
I was pointing it to a rubygems version.
Thanks a bunch guys!