compass-sass

Can I install Compass with an old version of SASS?

那年仲夏 提交于 2019-12-10 21:10:06
问题 When installing Compass (on Linux command line), can I specify which old version of SASS will be installed with it? 回答1: You can install a specific version of SASS using the following command: gem install sass -v 3.3.4 Replace 3.3.4 with the preferred version. You can find a list with all versions of SASS at RubyGems 来源: https://stackoverflow.com/questions/22687642/can-i-install-compass-with-an-old-version-of-sass

Include a grid framework in visual studio that seems to be linux only?

强颜欢笑 提交于 2019-12-10 20:49:23
问题 I use Visual Studio 2013 with Web Essentials extension for all my Sass/Scss work. Its great. I came across a tutorial on a grid framework that I really want to use called Susy. However the tutorials I seen on it are all using it on Linux or mac and in some sort of a ruby based environment. Even on the site link, I don't see instructions on getting it to work in VS2013. I tried extension manager and nuget package manager but to no avail. My only option seems to be to download the source and

Spriting error/problems in Compass 0.12

大城市里の小女人 提交于 2019-12-10 20:24:52
问题 Something has caused a local failure. Rolling back to older versions of the codebase still return the same failure. Deleting the entire repo, re-cloning it, uninstalling compass, reinstalling, etc. still yields the same error. mycomputer:myproject(master) me$ compass watch --trace >>> Change detected at 14:13:14 to: app/app.sass remove assets/images/sprites-sf0f45583b2.png NoMethodError on line ["24"] of /Users/me/.rvm/gems/ruby-1.9.3-p194/gems/chunky_png-1.2.5/lib/chunky_png/chunk.rb:

Compass - Sprite image scaling

有些话、适合烂在心里 提交于 2019-12-10 19:46:34
问题 I'm creating a Sencha Touch web app using Compass. Had a go at inline-url but my images are huge so am looking to move them into a sprite instead (and re-use with background-size). Currently my inline-images can be scaled because they're a single file. Sprites have positions which are generated upon creation of the sprite. When you change the sprite size using background-size you need to alter the position as well. Is it possible to grab the index of the sprite? Then I can say that if I want

Compass only running in parts

我是研究僧i 提交于 2019-12-10 19:28:10
问题 As i am trying to get my version on the command line by typing: compass -version I am receving the following error: Errno::ENOENT on line ["25"] of /usr/lib/ruby/vendor_ruby/compass/version.rb: No such file or directory - /usr/lib/ruby/vendor_ruby/compass/../../VERSION.yml Run with --trace to see the full backtrace Apart from that everything is running fine. Anyone with the same problem, a workaround, a solution ? 回答1: This is a reported and confirmed bug: https://bugs.launchpad.net/ubuntu/

compass watch command is erroring out when trying to access compass-core-1.0.0.alpha.16/stylesheets/.listen_test

跟風遠走 提交于 2019-12-10 17:11:54
问题 I believe this happened after upgrading to Ruby 2.0.0 and then I resintalled my gems needed for compass watch. I also installed Ruby 1.9.1 and installed the gems for compass watch and got the same error. I tried to change the permissions on the file .listen_test, but it doesn't exist. Here's the --trace: compass watch --trace >>> Compass is watching for changes. Press Ctrl-C to Stop. error sites/all/themes/dr/compass/sass/blog-ie.sass (Line 919 of sites/all/themes/dr/compass/sass/blog.sass:

Bootstrap only for mixins/placeholders - with semantic classes

不问归期 提交于 2019-12-10 15:40:02
问题 I'm thinking about using only semantic classes in my HTML, while still using Bootstrap's classes styles inside the semantic classes. For example: mixins: .newsItem { @include span4; } or placeholders/extends: .newsItem { extend span4; } Is it possible at all? and do you see any reason why that's not recommended ? Thanks. 回答1: @include span4; and @extend .span4; won't work because: In the first one, there isn't any mixins called that way in bootstrap. In the second one, there isn't any

sass background mixins using url [duplicate]

那年仲夏 提交于 2019-12-10 13:28:51
问题 This question already has answers here : Have a variable in images path in Sass? (4 answers) Closed 4 years ago . guys i would like to create a background mixin instead writing repeated url @mixin bgimage($name){ $url:"../images/$name.png"; background: url($url);} and,it never accept the valuee to $name variable i called it by @include bgimage(name.png); and in css the output is came wrong like this background: url("../images/$name.png"); is there any way to write the url in mixin ? ot how to

Syntax error: File to import not found or unreadable: foundation/common/ratios

与世无争的帅哥 提交于 2019-12-10 12:35:55
问题 I have foundation installed and when I edit and save the app.scss file it creates a "app.css" and a "config.rb" file in the sass folder of my project. when I open that "app.css" file I get this Syntax error: File to import not found or unreadable: foundation/common/ratios. and then under that I get this: File to import not found or unreadable: foundation/common/ratios. Load paths: /Applications/MAMP/htdocs/WebApp02/sass /Library/Ruby/Gems/1.8/gems/compass-0.12.2/frameworks/blueprint

Possible to create random numbers in SASS / Compass?

左心房为你撑大大i 提交于 2019-12-09 18:38:55
问题 I'm working on a project where I utilize SASS and Compass and need to somehow come up with some random numbers in the CSS file. Specifically, I need some floating point numbers between 0 and 1. Is this possible with SASS and Compass alone? 回答1: This is very possible if you create a sass function since sass is ruby its as easy as opening the functions module and injecting your random function module Sass::Script::Functions module MyRandom def random rand(1.0) end end include MyRandom end