3. Key Assumptions
Have basic understanding of CSS principles
Have basic understanding of procedural languages
Looking to speed up writing custom CSS
4. What is LESS & Sass?
Statements below were taken from Sass website “About
Page”, but holds true for for both LESS and Sass
Sass is a meta-language on top of CSS that’s used to
describe the style of a document cleanly and structurally, with
more power than flat CSS allows.
Sass both provides a simpler, more elegant syntax for CSS
and implements various features that are useful for creating
manageable stylesheets.
@http://sass-lang.com/about.html
6. What problems does LESS
& Sass solve?
Create reusable code to use on any project
Use variables and functions like PHP (Mixins + Parametric
Mixins)
Accepts math operations and computations inline
Change scope like PHP and other popular procedural
languages
Evaluate JavaScript inline
Create nested syntax and CSS declaration blocks
Source: http://drupal.org
7. You May Be Thinking
Who would create something with so much awesomeness
baked right in?
Who uses LESS and Sass?
How much of extra work is this to use with Drupal?
Is it worth my time to learn?
What is the easiest way to get started?
8. Meet The Creators
Alexis Sellier (CloudHead) Hampton Catlin Nathan Weizenbaum
LESS Creator SASS Original Creator SASS 2.0+ Creator
http://bit.ly/LJFTh6 http://www.hamptoncatlin.com https://twitter.com/nex3
9. What are key differences?
Main difference between the two is how they are
processed
LESS - Is a JavaScript library and typically processed
client-side
Sass - Typically runs on Ruby and is processed server
side.(PHPSass Script with Prepro Module allows Drupal
to process it via php without Ruby)
Source: http://drupal.org
10. What are key differences?
LESS can evaluate JavaScript inline
LESS is easier to use. SASS appears to have more
options to create complex MIXINS (functions). This is a
highly debated point. @http://wrangl.com/sass-v-less
(CAUTION: Statement above has been known to cause
comment wars.YOU HAVE BEEN WARNED.Use with
EXTREME CAUTION!)
11. Who uses LESS & Sass?
LESS Github 6,073+ Watch and 848+ Fork
@https://github.com/cloudhead/less.js
SASS Github 1,218+ Watch and 155+ Fork
@https://github.com/nex3/sass
SASS appears to have more active contributors
GitHub: 5 to 1 seem to watch and fork LESS over SASS
@http://bit.ly/Nk4xaf (LESS vs SASS Google trend since
2009)
Source: http://drupal.org
12. Who uses LESS & Sass
Drupal: 5 to 1 seem to install LESS over SASS in Drupal
Community (sample taken over 4 week period, Jun 10 -
Jul 1, from member who run the update status module)
@http://drupal.org/project/usage
SASS Built themes
(Zen, AdaptiveTheme, Basic, Boilerplate, Sasson, Aurora
)
Source: http://drupal.org
13. Drupal with LESS & Sass
LESS Module @http://drupal.org/project/less
SASS@http://drupal.org/project/sassy
+ PrePro Module @http://www.drupal.org/project/prepro
+ PHPSass@http://github.com/richthegeek/phpsass/downloads
+ Libraries API Module @http://www.drupal.org/project/libraries
24. Final Thoughts
Both LESS and Sass allow you to save time and give
you the ability to reuse code
Drupal 8 will most likely use Sass as its CSS
Processor/Meta Language
CSS has evolved and LESS and Sass are examples of
the new standards
27. Mediacurrent helps organizations architect custom websites by
leveraging our proven processes and deep expertise in Drupal.
@mediacurrentmediacurrent.com
Hinweis der Redaktion
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite
Outline:• Maintainer of Display Suite• Display Purpose • Potential Use Cases• What are display modes?• How do you create new display modes?• What are Dynamic Fields• What are Block Fields?• Display Suite Override Templates• DS Custom Layouts• Display Suite Extras Full Reset Minimal Expert• Display • Panels vs. Display Suite