compass-sass

Compass font-face outputs wrong path to font file

℡╲_俬逩灬. 提交于 2019-12-13 11:50:18
问题 @font-face { font-family: "HelveticaNeueLTStd-Lt"; src: url('/css/fonts/HelveticaNeueLTStd-Lt.otf') format('opentype'); } That is the output of my compass code: @include font-face('HelveticaNeueLTStd-Lt', font-files('HelveticaNeueLTStd-Lt.otf')); I can't seem to get the output url to be either just 'Helvetica......otf' or just 'fonts/Helvetica......otf'. My directory assets are as followed: http_path = "/" css_dir = "css" sass_dir = "sass" images_dir = "img" javascripts_dir = "js" fonts_dir =

Iterate over theme-variable files in SCSS

╄→尐↘猪︶ㄣ 提交于 2019-12-13 06:37:38
问题 I want to create different css-themes for a WordPress theme by using theme setup files. The setup (simplified) would be as following: /themes/_theme1.scss /themes/_theme2.scss /components/_file1.scss /components/_file2.scss /theme.scss The idea is to enable easy theming by adding a class to the body of the document like .theme-theme1 or .theme-theme2 . In the files _theme#.scss I want to define variables like text colour, font sizes and so on. In _file#.scss the actual styles are defined. My

Compass: Failed to run compass on 'C:/wamp/www/[…]/public/config.rb'

情到浓时终转凉″ 提交于 2019-12-13 06:27:25
问题 I got this error since few hours and i can not fix it... Could you help me please?? here an exhaustive img of my parameters 回答1: You are using sass.bat in both Compass settings and file watcher. But it should be compass ( C:\Ruby193\bin\compass.bat , for example), not sass. Did you install Compass? 来源: https://stackoverflow.com/questions/37150872/compass-failed-to-run-compass-on-c-wamp-www-public-config-rb

Rails 3.0 - Turn Compass/SASS off in Production - Stylesheets 404

六月ゝ 毕业季﹏ 提交于 2019-12-13 04:13:20
问题 I am running on Compass on Rails 3.0 on Heroku and its pretty much working fine, but I occasionally have an issue where (some?) stylesheets aren't compiled as fast as the rest of the page so they aren't served (the .css links cause 404's and the page is then displayed unstyled). Do you guys know of a way to make Compass compile all stylesheets on server start up (in prod) and then not touch them again? That way it'll basically precompile all the necessary stylesheets and there won't be an

conflicting sass / compass versions

旧城冷巷雨未停 提交于 2019-12-13 03:43:54
问题 I've inherited a project and am having problems setting up the sass/compass workflow. Google search didn't yield any useful info on this. I've got the following: $ cat /etc/*-release DISTRIB_ID=LinuxMint DISTRIB_RELEASE=15 DISTRIB_CODENAME=olivia DISTRIB_DESCRIPTION="Linux Mint 15 Olivia" NAME="Ubuntu" VERSION="13.04, Raring Ringtail" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 13.04" VERSION_ID="13.04" $ ruby --version ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] $ gem list ***

Why is Compass is giving me an import error when trying to import partials

时间秒杀一切 提交于 2019-12-12 14:17:14
问题 My compass project directory structure looks like this s3z@s3z:~/Desktop/compass_project$ tree . ├── basic.html ├── config.rb ├── css │ ├── ie.css │ ├── print.css │ └── screen.css ├── index.html ├── partials │ └── _normalize.scss └── sass ├── ie.scss ├── print.scss └── screen.scss My screen.scss file looks like this @import "compass"; @import "partials/normalize"; When I add @import "partials/normalize"; and save it, Compass spits the following error back at me >>> Compass is watching for

Can't install compass via rvm

孤街醉人 提交于 2019-12-12 10:36:44
问题 I was a happy and worries-free user of compass in Ubuntu 11.10. I upgraded to 12.04 and got this problem: Compass (ruby) encoding error I somehow managed to solve it installing ruby via rvm on one of my computers but now I get a different error in my other computer (which had the same initial problem). I install ruby and compass and use the global gemset as default: gem list *** LOCAL GEMS *** bundler (1.1.3) chunky_png (1.2.5) compass (0.12.1) fssm (0.2.9) rake (0.9.2.2) rubygems-bundler (1

Yeoman CSS image paths

吃可爱长大的小学妹 提交于 2019-12-12 08:56:39
问题 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

zurb foundation - many duplicate css entries

家住魔仙堡 提交于 2019-12-12 08:49:23
问题 I've been using zurb foundation for quite a while now. I'm using a bower + compass setup as described here http://foundation.zurb.com/docs/sass.html Today while working I noticed that a page was taking a while to load and while attempting to trouble shoot an issue I noticed that there are a many duplicate directives in the generated css file. I'm sure this is probably me doing something wrong, but I don't know where to start looking and I don't even know what information to provide that might

How can I auto compile my HAML files into HTML files in a tiny project that doesn't run on RoR?

邮差的信 提交于 2019-12-12 08:24:52
问题 I have only today started playing with compass and haml . While I am quite familiar with the way sass works and I get the idea of what compass is for sass and how to use it, I've hit a little bit of a road block when it comes to using haml efficiently. Of course I am hoping that someone here already knows the answer to my problem and can give me a little jump start into haml . Here is what I'd like to accomplish: Auto compile my HAML files when I save them. The project however is just a tiny