|
|
|
|
|
|
|
|
|
Thread tools
Search this thread
Display Modes
|
|
08-11-2010, 01:46 AM
|
#1
|
Status: Request a custom title
Join date: Feb 2005
Location:
Expertise:
Software:
Posts: 1,159
|
Sass
|
|
08-11-2010, 04:37 PM
|
#3
|
Status: Request a custom title
Join date: Feb 2005
Location:
Expertise:
Software:
Posts: 1,159
|
You write your stylesheets in Sass and run Ruby program in the background which converts them to CSS. Various output styles are available.
|
|
08-11-2010, 06:04 PM
|
#4
|
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
Posts: 3,820
|
I've used Sass, Less and a number of other approaches to this general area (of "enhancing" our CSS authoring experience) and whilst nice, have yet to really be convinced by the whole idea. If the tools are there and you find them useful, great but I'm happy (relatively) with POCSS (Plain Old…).
santa, as .Nick mentioned, it's written in Ruby but that's no reason at all not to make use of it in your PHP development environment (unless you're embedding PHP into your CSS files).
|
|
08-11-2010, 08:57 PM
|
#5
|
Status: Senior Member
Join date: Dec 2005
Location:
Expertise:
Software:
Posts: 918
|
I actually quite like LESS css, I think its pretty neat and could save a lot of time. Also for development there is a javascript include that will convert it on the fly and cache it. Obviously you'd want to run the script to get the css on a live site.
|
|
08-11-2010, 10:15 PM
|
#6
|
Status: Request a custom title
Join date: Apr 2007
Location: UK
Expertise: Code & Programming
Software: Coda, TextMate, Sublime 2
Posts: 2,097
|
Originally Posted by Salathe
I've used Sass, Less and a number of other approaches to this general area (of "enhancing" our CSS authoring experience) and whilst nice, have yet to really be convinced by the whole idea. If the tools are there and you find them useful, great but I'm happy (relatively) with POCSS (Plain Old…).
santa, as .Nick mentioned, it's written in Ruby but that's no reason at all not to make use of it in your PHP development environment (unless you're embedding PHP into your CSS files).
|
POCSS definitely trumps for me. SASS doesn't really offer much enhancement IMO.
|
|
08-11-2010, 11:07 PM
|
#7
|
Status: Request a custom title
Join date: Feb 2005
Location:
Expertise:
Software:
Posts: 1,159
|
A few of the features I like
- The lack of curly braces makes things look cleaner, especially when nesting
- The ease of using a grid framework (eg. Blueprint) while keeping the markup clean. This is made even better by setting a variable for an elements width in columns and using it to calculate the width something else needs to fill the remaining space. I'll only need to change 3 variables when I transition from the fixed width grid that I'm using to develop and the fluid grid that I'll want in production.
- Mixins for clearfix, hiding something, etc. Compass also has some built in for CSS3 things that require browser specific settings
- Nice presentation of the different styles that apply to an element between different page ids, states, and when javascript is and isn't enabled (Drupal adds a class 'js' to <html>).
|
|
08-12-2010, 01:51 PM
|
#8
|
Status: Request a custom title
Join date: Apr 2007
Location: UK
Expertise: Code & Programming
Software: Coda, TextMate, Sublime 2
Posts: 2,097
|
I think this blog post is a great review of different methods you can use, including SASS.
I might try a few of them
|
|
08-12-2010, 01:55 PM
|
#9
|
Status: Ruby on Rails Developer
Join date: Oct 2004
Location: England, UK
Expertise: Ruby, Rails, jQuery
Software: Chocolat, Sublime Text 3
Posts: 2,343
|
I've used it before and my business partner uses that, and HAML for all our projects.
|
|
|
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|