compass-sass

Yeoman error: “Errno::EACCES on line [”897“] of C: Permission denied”

孤街浪徒 提交于 2019-11-27 23:33:22
问题 I upgraded my hardware yesterday and fresh installed Win 8.1. This error is killing me since then. I already lost full day of work trying to figure out what's going on. I never encountered this on my Mac or in my old Win 7 machine. Setting up a new project with yo webapp using Bootstrap and Modernizr works great. Server would fire-up and I can see my updates livereload. But, setting up a new project with Compass and SASS included would prevent me from starting local server and throw this

How to remove the hash from Compass's generated sprite image filenames?

牧云@^-^@ 提交于 2019-11-27 19:51:33
Compass uses chunky_png to render the sprites. It adds a hash to the end of the file to force caches to download the new image sprites. Is there a way to turn this cache busting off? Unfortunately asset_cache_buster :none option does not disable adding the hash to the end of the filename. Like I wrote few time ago (in french), Compass has no way to disable the cache hash buster, but I propose a solution . In your configuration file (eg config.rb ) add the following lines: # Make a copy of sprites with a name that has no uniqueness of the hash. on_sprite_saved do |filename| if File.exists?

Sass::SyntaxError: File to import not found or unreadable: compass in production

旧城冷巷雨未停 提交于 2019-11-27 19:26:46
问题 I'm using SASS + Compass and controller specific stylesheets, so in my application.html.erb I set: <%= stylesheet_link_tag "home", params[:controller], :media => "all" %> So I have a home.css (manifest) that I put: /* *= require_self *= require homepage */ My homepage.css.scss: @import "sass/_all"; @import "bootstrap"; @import "compass"; ... It's ok in my homepage even in production, but when I try to vsit other page (like /tags) I get this error: Sass::SyntaxError: File to import not found

File to import not found or unreadable: compass

痞子三分冷 提交于 2019-11-27 18:57:11
I successfully installed Sass, but I'm having trouble importing Compass. The following is the error detail: *Syntax error: File to import not found or unreadable: compass. Load path: H:/HTML/___keoFull/sass ..... Backtrace: mainKeo.scss:2 style.scss:2 C:/Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.2.6/lib/sass/tree/import_node.rb:67:in `rescue in import' C:/Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.2.6/lib/sass/tree/import_node.rb:45:in `import' C:/Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.2.6/lib/sass/tree/import_node.rb:28:in `imported_file' C:/Ruby193/lib/ruby/gems/1.9.1/gems/sass-3.2.6/lib/sass

Using FontAwesome with Sass

*爱你&永不变心* 提交于 2019-11-27 17:37:37
I'm trying to use FontAwesome in a web Compass project. As there's no specific documentation in the FontAwesome page , and I'm not using Bootstrap, I've followed the "Not using Bootstrap?" directions but can't make it work. The output I get no specific errors, either not found or compiling errors. It's just not showing anything, no icon or text. The FontAwesome font files doesn't seem to be loading. The steps I've done Download the font-awesome directory Copy it to my projects css folder, where I have all my compiled css: project/css/font-awesome Import the font-awesome.scss file in my main

Sass and rounding down numbers. Can this be configured?

≡放荡痞女 提交于 2019-11-27 15:35:46
Is there any way for me to modify the way that Sass will handle decimal places? I saw a few people saying that Sass will dynamically do the (target/parent)*100 calculation needed for responsive layouts, and output the result at compile time. It even has a percentage function, which will essentially take the two values and do this. Alas, Sass will only ever give me 3 decimal places. My understanding up to this point has been that in some cases, this may not be a sufficient degree of accuracy for all browsers to properly display the layout without any hiccups. Can anyone help me get to the

Configure compass browser support (Compass 1.x syntax)

倾然丶 夕夏残阳落幕 提交于 2019-11-27 15:18:57
With 0.12.x version of Compass, I was defining support for oldies that way: @import "compass/support" $legacy-support-for-ie6: false; $legacy-support-for-ie7: true; $legacy-support-for-ie8: true; $legacy-support-for-mozilla: false; @if ($legacy-support-for-ie7) { // specific declaration if ie7 is supported } I'm wonder how I should define browser support following Compass 1.x system . Maybe something like that: // Add support for a specific browser $browser-minimum-versions: ( 'ie': "7", 'ie': "8" ); // Reject browsers $supported-browsers: reject(browser-versions("ie"), "6", "7", "8"); But it

How to have Assetic + sass work with Symfony2 in Windows?

夙愿已清 提交于 2019-11-27 13:57:48
问题 I'm trying to get Assetic to run within Symfony 2.0.11 in order to use sass for css files. I've been fiddling around that issue for hours, and from what I gather the current assetic version (1.0.2) is screwed up and just can't work in windows. I tried updating assetic and asseticBundle to the latest Master version from github, but those require Symfony 2.1 which brings in a lot of changes and is not backward compatible (not to mention it's not officially released either), so that's not an

Background images path in Sass and Compass

本小妞迷上赌 提交于 2019-11-27 13:15:58
问题 This is mentioned in config.rb file images_dir = "images" I use 2 folder for images in my projects inside images folder images images/background/ images/content/ If any images is inside images/background/ folder then how i should add the path for image in css background and Sass variables? $header-img: "sass.gif"; and background-image: url('sass.gif?1327592426'); And how to get rid of this auto generated ?1327592426 from each background image? 回答1: You should use the image-url URL helper. It

Using Sass compressed output while leaving theme comment header for Wordpress

亡梦爱人 提交于 2019-11-27 12:57:16
问题 How do other Wordpress theme developers incorporate Sass into their theme development while taking advantage of its compressed output style? Sass compressed removes ALL comments, so I currently have an empty style.css with my theme declaration and an @import calling the minified css from compass, but this hardly seems like the best solution. Has anybody found a way around this? What would be the best solution if not? http://codex.wordpress.org/Theme_Development#Theme_Stylesheet http://sass