compass-sass

Static assets not refreshing with symfony2 clear cache command

假如想象 提交于 2019-12-04 17:03:42
问题 I'm using Assetic with the compass filter to pass and compile .scss files. This part of the setup seems to work fine. However, my understanding was that in the app_dev environment, Symfony 2 would recompile all assets (including css) for each page load and not use the caching system that it employs for prod environment. This seems not to be happening. When I make a change to a .scss file it will only take effect if I use: app/console cache:clear I thought the whole point of the dev

How do I add foundation with grunt to a ember.js app kit project

南楼画角 提交于 2019-12-04 15:11:17
I'm trying to setup my first Ember.js app with Ember AppKit , grunt, and compass. The appkit ships with support of compass out of the box via grunt-contrib-compass but I can't figure out for the life of me how to install Zurb-Foundation, or at least not "properly." As far as I can tell, grunt-contrib-compass doesn't provide a wrapper around compass's install method. I could duplicate the compass.js task settings for a compass config file but it seems like there should be a way to do this without duplicating the data. Alternatively, I guess I could just copy everything over manually but that

The Sass ampersand and attribute selectors

三世轮回 提交于 2019-12-04 14:23:38
I want to create a sass file that the selectors will be attribute selectors. When I work with class selectors, in most of the cases I will do .parent { &-child { } } which gives me the following css: .parent-child {} . I want to achieve the same thing with attribute selectors: [data-parent] { &-child { } } which I want to become: [data-parent-child] {} someone knows how to achieve this? thanks. You can use this mixin as a workaround to get the desired result. @mixin child-attribute($child) { $string: inspect(&); $original: str-slice($string, 3, -4); @at-root #{ selector-replace(&, &, "[#{

Compile SASS with Compass in Ant build.xml

假如想象 提交于 2019-12-04 14:13:42
Does anyone know how to use JRuby and Compass modules to compile SASS (*.scss) files within build.xml? I'm able to use the Sass::Exec module within sass standalone installation to compile from *.scss to *.css in the following manner: <!-- Compile SCSS files copied to target folder --> <property name="stylesheetFolder" location="myproject/stylesheet"/> <property name="inputFiles" value="${stylesheetFolder}/[^_]*.scss" /> <echo message="Compiling SCSS files from ${stylesheetFolder}..." /> <script language="ruby" classpath="${env.EP_LIB}/jruby/complete/${jruby-complete.build.jar}"> <![CDATA[

Yeoman CSS image paths

我只是一个虾纸丫 提交于 2019-12-04 13:44:43
When I build my Yeoman project (nothing special, I'm only using jQuery and Modernizr), the images used with CSS aren't shown. My CSS-code .contact { background:url(../icon-contact.png) no-repeat top center; } Output after building the app (no difference) .contact {background:url(../icon-contact.png) no-repeat top center;} This doesn't work because the filename of icon-contact.png has changed to f91724e0.icon-contact.png . How can I make sure that the image-paths are updated in the minified CSS-file? Edit: I've added my solution as an answer Update (24 Feb. 2014) You can fix this by adding <%=

Best way to auto compile compass-style SASS via maven

纵然是瞬间 提交于 2019-12-04 11:18:34
问题 referring to SASS implementation for Java? : What is the best way to auto-compile compass-style.org stylesheets in maven goal compile respectively package? I would not like to ship too many self-compiled libraries nor do I want to dynamically ship compiled files via filters like https://code.google.com/p/sass-java ( https://github.com/darrinholst/sass-java ) Any alternatives than hooking up shellscripts / ant scripts which requires installed ruby and compass on the client? What is the

Compass and SASS: Nothing to compile error

纵饮孤独 提交于 2019-12-04 10:48:24
I'm getting so tired of this problem right now. I've been put off so many times trying to get this going. I feel this is my last attempt in solving what is wrong. Here goes: I install compass sudo gem update --system sudo gem install compass I create my test project (named test) compass create test That generates this directory test/ directory test/sass/ directory test/stylesheets/ create test/config.rb create test/sass/screen.scss create test/sass/print.scss create test/sass/ie.scss I try to compile the project compass compile [path/to/test] All I get is this error message: "Nothing to

Grunt task output then calling grunt-notify

浪子不回头ぞ 提交于 2019-12-04 09:44:19
问题 Grunt notify: https://github.com/dylang/grunt-notify is great. However, it seems a bit limited. As far as I can tell all my messages need to be pre-generated. So the first question is how can I generate notifications? Next, It seems that grunt notify triggers based on error or success of some task. I guess based on std in/out/err? The problem where this breaks down is if some task doesn't use these. grunt compass doesn't use stderr if there are compile errors. So how can I run grunt notify

How to use Foundation 5 with Compass+SASS?

落花浮王杯 提交于 2019-12-04 09:25:34
问题 The problem Foundation 5 was released last week, that's great, but the new version requires to use bower for using F5 with SASS and the official documentation seems to be a bit incomplete and immature. I'm trying to create a project using the steps proposed by the docs: [sudo] npm install -g bower and then gem install foundation No problems here. The problem is when creating a Compass project: foundation new MY_PROJECT cd MY_PROJECT compass compile After Compass compilation, I get the

Access the parent selector from within a SASS mixin

陌路散爱 提交于 2019-12-04 08:44:50
I have set up a mixin for a button using display:inline-block. I am trying to get to the parent of whatever class that will eventually end up using the mixim, so I can add the font-size: 0px line there to make sure that I don't need to make adjustments to my HTML to avoid unwanted space between each button. Here's an example... I want the. parent class to receive the font-size: 0px line. @mixin button() { display:inline-block; font-size: 1em; //other stuff to make a pretty button && { font-size: 0px; } } .parent{ .child { @include button(); } } No, this is not possible. You could do something