Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Sass and Compass

Sass and Compass
Thread Tools
Moderator
Join Date: Jun 2000
Location: inside 128, north of 90
Status: Offline
Reply With Quote
Oct 2, 2013, 03:50 PM
 
I'm trying to decipher someone else's sass files and make edits to them, then use the CSS in a new project. However, they used compass, and are importing all sorts of compass-related things, whereas the official sass instructions just call for a simple command line instruction. Command line isn't working on this file, as it can't find their compass imports, and deleting the compass import line does not help, as then certain classes become undefined.

Do I have to purchase compass? Is it worth it?

Compass.app: compile Sass/Compass easily without resorting to command line interface
Sass - Syntactically Awesome Stylesheets
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Oct 2, 2013, 04:25 PM
 
Is this a Rails project? Have you installed the compass gem? What command line command are you running, and from where?
     
Moderator
Join Date: Jun 2000
Location: inside 128, north of 90
Status: Offline
Reply With Quote
Oct 2, 2013, 04:43 PM
 
This is not Rails... I have static html pages, for now. maybe php later.

from terminal, after cd to my project folder, running the basic watch script from the sass website: sass --watch style.scss:style.css

Compass is installed via the command line: sudo gem install compass but there is also a GUI app that I don't have.

SASS was watching the correct file. First, this error:

error main.scss (Line 9: File to import not found or unreadable: compass/css3/pie.

Then I said, maybe I don't need that import, and then of course this error:

error main.scss (Line 80: Undefined mixin 'pie-element'.)

His file structure did not have a compass/css3/pie folder, which is why it can't find it of course.
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Oct 2, 2013, 04:49 PM
 
Have you installed Pie?

CSS3 Pie | Compass Documentation
     
Moderator
Join Date: Jun 2000
Location: inside 128, north of 90
Status: Offline
Reply With Quote
Oct 2, 2013, 05:09 PM
 
There was a PIE.htc file in the css folder... the install instrux ^ installed it again in the SASS folder, but did not create a compass/css3/pie folder.

The pie.scss file that it also created also called for

@import "compass/css3/pie";
@import "compass/css3";

which does not exist!
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Oct 2, 2013, 05:30 PM
 
Maybe you need to run this command if you haven't already?

compass create <myproject>

Just trying to help, I haven't used Compass myself.
     
Moderator
Join Date: Jun 2000
Location: inside 128, north of 90
Status: Offline
Reply With Quote
Oct 3, 2013, 08:24 AM
 
Thanks for the help, I'm going to track down the original developer and see what exactly he did/used.

Or, just say screw it and edit the compiled css.
     
Moderator
Join Date: Jun 2000
Location: inside 128, north of 90
Status: Offline
Reply With Quote
Oct 3, 2013, 04:29 PM
 
Ok, he and I fixed it. I needed to use a compass watch phrase, and be watching from a different directory.

Intuitive!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -4. The time now is 12:25 AM.
All contents of these forums © 1995-2015 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2015, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2