SlideShare una empresa de Scribd logo
1 de 18
Agenda



  1. What?      4. Tools

  2. Why?       5. Real example

  3. Features   6. Browser Tab Reloader.
                   • Live.js
 What is less ?



    Dynamic stylesheet language (Pre-procesor of css).

    Same syntax as css.

    Alexis Sellier.

    Ruby ( *js - nodejs – php - .net ).
 Why less ?

    LESS extends CSS with dynamic behavior such as
     variables, mixins, operations and functions and more.
    Reduce development and maintanance time.
    Amplified results.
    More intuitive css.
    You can generate one stylesheet file.
    Use javascritp with less.
    Better organization.
 Better Organization
 Features -- Variables
Features -- Nested Rules
 Features -- Mixins
Features -- Functions & Operations
 Features -- Color Functions

lighten(@color, 10%);     // return a color which is 10% *lighter* than @color
darken(@color, 10%);     // return a color which is 10% *darker* than @color

saturate(@color, 10%);       // return a color 10% *more* saturated than @color
desaturate(@color, 10%);     // return a color 10% *less* saturated than @color

fadein(@color, 10%);     // return a color 10% *less* transparent than @color
fadeout(@color, 10%);    // return a color 10% *more* transparent than @color
fade(@color, 50%);       // return @color with 50% transparency

spin(@color, 10); // return a color with a 10 degree larger in hue than @color
spin(@color, -10); // return a color with a 10 degree smaller hue than @color

mix(@color1, @color2);         // return a mix of @color1 and @color2
 Features -- Functions


Extract information:
 hue(@color);         // returns the `hue` channel of @color
saturation(@color);          // returns the `saturation` channel of @color
lightness(@color);     // returns the 'lightness' channel of @color
alpha(@color);        // returns the 'alpha' channel of @color

Example:
@new: hsl(hue(@old), 45%, 90%);
 Features -- Namespaces and Scope
 Features -- Namespaces and Scope
 Features -- Parametric Mixins
 Features -- Guards
 Tools

  Windows :
  SimpleLess osx - linux                Text Editor:
  winless.org                           sublime text
  Eclipse plugin for less osx - linux   Eclipse WTP

                                        Textmate
  Mac:
  Less.app

                                        Adobe Air:
  Online:                               Crunch
  http://lesscss.org
  http://leafo.net/lessphp/#demo
  http://betabong.com/play/liveless/
 Real Example



  Process CM Less

  Process CM
 The End

Más contenido relacionado

La actualidad más candente

Introduce Coldfusion Server
Introduce Coldfusion ServerIntroduce Coldfusion Server
Introduce Coldfusion Server
Jungmin Kang
 
Modern frontend workflow
Modern frontend workflowModern frontend workflow
Modern frontend workflow
Revath S Kumar
 
Services Apps Iand Flex Applications
Services Apps Iand Flex ApplicationsServices Apps Iand Flex Applications
Services Apps Iand Flex Applications
Sumit Kataria
 
Drupal + selenium
Drupal + seleniumDrupal + selenium
Drupal + selenium
hernanibf
 

La actualidad más candente (20)

Introduce Coldfusion Server
Introduce Coldfusion ServerIntroduce Coldfusion Server
Introduce Coldfusion Server
 
Rack
RackRack
Rack
 
Modern frontend workflow
Modern frontend workflowModern frontend workflow
Modern frontend workflow
 
Mule esb db_1
Mule esb db_1Mule esb db_1
Mule esb db_1
 
Sling pipes
Sling pipesSling pipes
Sling pipes
 
php basics
php basicsphp basics
php basics
 
Services Apps Iand Flex Applications
Services Apps Iand Flex ApplicationsServices Apps Iand Flex Applications
Services Apps Iand Flex Applications
 
Drupal + selenium
Drupal + seleniumDrupal + selenium
Drupal + selenium
 
Upstate CSCI 450 PHP
Upstate CSCI 450 PHPUpstate CSCI 450 PHP
Upstate CSCI 450 PHP
 
Creating a multi language Wordpress blog
Creating a multi language Wordpress blogCreating a multi language Wordpress blog
Creating a multi language Wordpress blog
 
Marcelo Camargo - Let's dive into Babel: how everything works
Marcelo Camargo - Let's dive into Babel: how everything worksMarcelo Camargo - Let's dive into Babel: how everything works
Marcelo Camargo - Let's dive into Babel: how everything works
 
Groovy example in mule
Groovy example in muleGroovy example in mule
Groovy example in mule
 
Simple groovy example in mule
Simple groovy example in muleSimple groovy example in mule
Simple groovy example in mule
 
JRuby on Rails, Flying Saucer
JRuby on Rails, Flying SaucerJRuby on Rails, Flying Saucer
JRuby on Rails, Flying Saucer
 
Multi tenant/lang application with Ruby on Rails
Multi tenant/lang application with Ruby on RailsMulti tenant/lang application with Ruby on Rails
Multi tenant/lang application with Ruby on Rails
 
Hogarama Demo on Openshift I
Hogarama Demo on Openshift IHogarama Demo on Openshift I
Hogarama Demo on Openshift I
 
Groovy in Mule
Groovy in MuleGroovy in Mule
Groovy in Mule
 
CoffeeScript Design Patterns
CoffeeScript Design PatternsCoffeeScript Design Patterns
CoffeeScript Design Patterns
 
WP-CLI Workshop at WordPress Meetup Cluj-Napoca
WP-CLI Workshop at WordPress Meetup Cluj-NapocaWP-CLI Workshop at WordPress Meetup Cluj-Napoca
WP-CLI Workshop at WordPress Meetup Cluj-Napoca
 
Input and output flow using http and java component
Input and output flow using http and java componentInput and output flow using http and java component
Input and output flow using http and java component
 

Destacado (7)

Critical mass: the creativity Challange
Critical mass: the creativity ChallangeCritical mass: the creativity Challange
Critical mass: the creativity Challange
 
THREE MAIN PILLARS OF SOARES DA COSTA’S STRATEGY
THREE MAIN PILLARS OF SOARES DA COSTA’S STRATEGY THREE MAIN PILLARS OF SOARES DA COSTA’S STRATEGY
THREE MAIN PILLARS OF SOARES DA COSTA’S STRATEGY
 
Five Globally Successful Businesses
Five Globally Successful BusinessesFive Globally Successful Businesses
Five Globally Successful Businesses
 
The Latest Color Trends In Digital Design
The Latest Color Trends In Digital DesignThe Latest Color Trends In Digital Design
The Latest Color Trends In Digital Design
 
#STORYTOOLKIT: Hollywood's Storytelling Tips & Tricks Revealed
#STORYTOOLKIT: Hollywood's Storytelling Tips & Tricks Revealed #STORYTOOLKIT: Hollywood's Storytelling Tips & Tricks Revealed
#STORYTOOLKIT: Hollywood's Storytelling Tips & Tricks Revealed
 
Cultural Impact on Digital Design
Cultural Impact on Digital DesignCultural Impact on Digital Design
Cultural Impact on Digital Design
 
CES Tech 2014: Opportunities & Challenges
CES Tech 2014: Opportunities & Challenges CES Tech 2014: Opportunities & Challenges
CES Tech 2014: Opportunities & Challenges
 

Similar a Less

A tour on ruby and friends
A tour on ruby and friendsA tour on ruby and friends
A tour on ruby and friends
旻琦 潘
 

Similar a Less (20)

Wider than rails
Wider than railsWider than rails
Wider than rails
 
Write LESS. DO more.
Write LESS. DO more.Write LESS. DO more.
Write LESS. DO more.
 
Do more with {less}
Do more with {less}Do more with {less}
Do more with {less}
 
Ruby on Rails
Ruby on RailsRuby on Rails
Ruby on Rails
 
Ruby on Rails
Ruby on RailsRuby on Rails
Ruby on Rails
 
Composer is the new Drush - Drupal Developer Training (internal)
Composer is the new Drush - Drupal Developer Training (internal)Composer is the new Drush - Drupal Developer Training (internal)
Composer is the new Drush - Drupal Developer Training (internal)
 
Phoenix for Rails Devs
Phoenix for Rails DevsPhoenix for Rails Devs
Phoenix for Rails Devs
 
@Agawish creating a stunning ui with oracle adf faces, using sass
@Agawish   creating a stunning ui with oracle adf faces, using sass@Agawish   creating a stunning ui with oracle adf faces, using sass
@Agawish creating a stunning ui with oracle adf faces, using sass
 
CSS Less framework overview, Pros and Cons
CSS Less framework overview, Pros and ConsCSS Less framework overview, Pros and Cons
CSS Less framework overview, Pros and Cons
 
Rails web api 开发
Rails web api 开发Rails web api 开发
Rails web api 开发
 
Ruby On Rails Introduction
Ruby On Rails IntroductionRuby On Rails Introduction
Ruby On Rails Introduction
 
A tour on ruby and friends
A tour on ruby and friendsA tour on ruby and friends
A tour on ruby and friends
 
Doing More With Less
Doing More With LessDoing More With Less
Doing More With Less
 
Loops and Unicorns - The Future of the Puppet Language - PuppetConf 2013
Loops and Unicorns - The Future of the Puppet Language - PuppetConf 2013Loops and Unicorns - The Future of the Puppet Language - PuppetConf 2013
Loops and Unicorns - The Future of the Puppet Language - PuppetConf 2013
 
REST Development made Easy with ColdFusion Aether
REST Development made Easy with ColdFusion AetherREST Development made Easy with ColdFusion Aether
REST Development made Easy with ColdFusion Aether
 
Migration from Rails2 to Rails3
Migration from Rails2 to Rails3Migration from Rails2 to Rails3
Migration from Rails2 to Rails3
 
NYPHP March 2009 Presentation
NYPHP March 2009 PresentationNYPHP March 2009 Presentation
NYPHP March 2009 Presentation
 
Ruby/Rails
Ruby/RailsRuby/Rails
Ruby/Rails
 
Ruby on Rails
Ruby on RailsRuby on Rails
Ruby on Rails
 
Building web framework with Rack
Building web framework with RackBuilding web framework with Rack
Building web framework with Rack
 

Último

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 

Less

  • 1.
  • 2. Agenda 1. What? 4. Tools 2. Why? 5. Real example 3. Features 6. Browser Tab Reloader. • Live.js
  • 3.  What is less ?  Dynamic stylesheet language (Pre-procesor of css).  Same syntax as css.  Alexis Sellier.  Ruby ( *js - nodejs – php - .net ).
  • 4.  Why less ?  LESS extends CSS with dynamic behavior such as variables, mixins, operations and functions and more.  Reduce development and maintanance time.  Amplified results.  More intuitive css.  You can generate one stylesheet file.  Use javascritp with less.  Better organization.
  • 6.  Features -- Variables
  • 9. Features -- Functions & Operations
  • 10.  Features -- Color Functions lighten(@color, 10%); // return a color which is 10% *lighter* than @color darken(@color, 10%); // return a color which is 10% *darker* than @color saturate(@color, 10%); // return a color 10% *more* saturated than @color desaturate(@color, 10%); // return a color 10% *less* saturated than @color fadein(@color, 10%); // return a color 10% *less* transparent than @color fadeout(@color, 10%); // return a color 10% *more* transparent than @color fade(@color, 50%); // return @color with 50% transparency spin(@color, 10); // return a color with a 10 degree larger in hue than @color spin(@color, -10); // return a color with a 10 degree smaller hue than @color mix(@color1, @color2); // return a mix of @color1 and @color2
  • 11.  Features -- Functions Extract information: hue(@color); // returns the `hue` channel of @color saturation(@color); // returns the `saturation` channel of @color lightness(@color); // returns the 'lightness' channel of @color alpha(@color); // returns the 'alpha' channel of @color Example: @new: hsl(hue(@old), 45%, 90%);
  • 12.  Features -- Namespaces and Scope
  • 13.  Features -- Namespaces and Scope
  • 14.  Features -- Parametric Mixins
  • 15.  Features -- Guards
  • 16.  Tools Windows : SimpleLess osx - linux Text Editor: winless.org sublime text Eclipse plugin for less osx - linux Eclipse WTP Textmate Mac: Less.app Adobe Air: Online: Crunch http://lesscss.org http://leafo.net/lessphp/#demo http://betabong.com/play/liveless/
  • 17.  Real Example Process CM Less Process CM