compass-sass

New Bulletproof @font-face syntax using Data URIs in Compass

冷暖自知 提交于 2019-12-04 08:35:12
问题 I am using compass' font-face mixin along with the inline-font-files and font-files in order to create something along the lines of the The New Bulletproof @Font-Face Syntax using Data URIs for woff, ttf and otf files. I use relative URLs for eot (due to lack of IE support for data URI) and for svg files, (due to the #FontName hash I guess). The eot file poses no problem since there is a parameter for that, but because font-face in Compass treats svg no different from other formats I simply

Can't use compass after installing it

泪湿孤枕 提交于 2019-12-04 07:44:00
问题 I don't seem to be able to get compass working on Vagrant using this Vagrantfile. See the rest of the bash script's used right here (removed repo) (see Vaprobash if you want to provision your Vagrant Ubuntu Box!). So I was fallowing a gruntjs course, when I had to use grunt server . The only problem is that it needs a newer ruby version (1.9+ I believe instead of the 1.8) and it needs compass. So I have solved the ruby part by installing RVM and installing the latest stable version. Compass

zurb foundation - many duplicate css entries

匆匆过客 提交于 2019-12-04 06:06:32
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 help narrow down the issue. Foundation 5.4.5 --> actually running 5.4.7 Compass 1.0.1 Any assistance

Fastest way to compile SCSS (Compass) + refresh the browser?

爷,独闯天下 提交于 2019-12-04 04:54:24
Just wondering what in your opinion is the fastest way to have your SCSS compiled and browser refreshed? I'm currently using LiveReload, but it seems to be a bit slow sometimes, it can take from 1-3sec. It doesn't seem much, but I feel like I'm losing my proper coding pace. What do you guys use? would CodeKit be faster? Or maybe Sublime LiveReload plugin (not the actual app)? Or maybe I should give up Compass and use something else? Any suggestions would be appreciated. PS. I'm on OS X I use this stack: gruntjs grunt-sass (uses libsass via node-sass instead of ruby sass) grunt-watch-contrib

RVM Sass Compass issue with localhost sites

老子叫甜甜 提交于 2019-12-04 02:55:14
I have spent over 5 hours trying to solve this and feel that since I haven't done it before I should ask some help now... I have a site I inherited with Sass/Compass put together. I have it set up on my localhost and it works fine for that site. I have a second localhost site I want to use it on. So I went to the theme folder in terminal - (/sites/all/theme/newtheme/) I tried to start watching a sass folder with compass and keep getting these errors... /Library/Ruby/Site/1.8/rubygems/dependency.rb:298:in `to_specs': Could not find 'compass' (>= 0) among 12 total gem(s) (Gem::LoadError) from

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

北战南征 提交于 2019-12-04 01:44:59
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 static site (couple of pages) to build up a template set for a later integration into the

SASS/SCSS object key value loop [duplicate]

拥有回忆 提交于 2019-12-04 01:03:54
This question already has an answer here: Associative Array SCSS/SASS 2 answers Take a look at this example: @include font-face('Entypo', font-files('entypo.woff')); .icon { display: inline; font: 400 40px/40px Entypo; } .icon-star { @extend .icon; &:after { content: "\2605"; } } .icon-lightning { @extend .icon; &:after { content: "\26A1"; } } I want to make things as DRY as possible so I want to know if the following is possible, and if so how? @include font-face('Entypo', font-files('entypo.woff')); .icon { display: inline; font: 400 40px/40px Entypo; } $icons { $star: "\2605"; $lightning: "

Multiple Background Images using Sass / Compass

白昼怎懂夜的黑 提交于 2019-12-04 00:37:59
问题 The following generates a base64 inline-image using sass/compass: background-image:inline-image("paper.jpg", 'image/jpg'); Is there a way to do multiple background images, or do I have to precompress them myself to do it? Thanks. 回答1: The inline-image function just outputs the url() string, so you can use multiple by doing this: background: inline-image("front-image.jpg", 'image/jpg') no-repeat, inline-image("back-image.jpg", 'image/jpg') repeat-x And you'll get the following css: background:

Does SASS support adding !important to all properties in a mixin?

China☆狼群 提交于 2019-12-04 00:04:28
问题 I am currently using the compass framework and all it's helpful CSS3 mixins. I would like to use the border-radius(5px) mixin and have all properties that come from it marked with !important In LESS it is possible to apply !important to all properties in a mixin by simply specifying it after call .myMixin(@x) { border-radius: @x; -moz-border-radius: @x; } .myClass { .myMixin(5px) !important; } compiles to .myClass { border-radius: 5px !important; -moz-border-radius: 5px !important; } Is this

Compass error for command 'grunt server'

空扰寡人 提交于 2019-12-03 22:53:29
问题 I'm running a project for which I installed nodeJs, ruby, yeoman, compass, etc. Now Im running my project with command >grunt server or >grunt server --force but it is giving me following error for compass. E:\CRM_workspace\CRM_from_repo\ria>grunt server --force Running "server" task >> The `server` task has been deprecated. Use `grunt serve` to start a server. Running "serve" task Running "clean:server" (clean) task Cleaning .tmp...OK Running "concurrent:server" (concurrent) task Running