SlideShare uma empresa 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

Mais conteúdo relacionado

Mais procurados

Introduce Coldfusion Server
Introduce Coldfusion ServerIntroduce Coldfusion Server
Introduce Coldfusion ServerJungmin Kang
 
Modern frontend workflow
Modern frontend workflowModern frontend workflow
Modern frontend workflowRevath S Kumar
 
Services Apps Iand Flex Applications
Services Apps Iand Flex ApplicationsServices Apps Iand Flex Applications
Services Apps Iand Flex ApplicationsSumit Kataria
 
Drupal + selenium
Drupal + seleniumDrupal + selenium
Drupal + seleniumhernanibf
 
Upstate CSCI 450 PHP
Upstate CSCI 450 PHPUpstate CSCI 450 PHP
Upstate CSCI 450 PHPDanWooster1
 
Creating a multi language Wordpress blog
Creating a multi language Wordpress blogCreating a multi language Wordpress blog
Creating a multi language Wordpress blogSayed Ahmed
 
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 worksReact Conf Brasil
 
Groovy example in mule
Groovy example in muleGroovy example in mule
Groovy example in muleMohammed246
 
JRuby on Rails, Flying Saucer
JRuby on Rails, Flying SaucerJRuby on Rails, Flying Saucer
JRuby on Rails, Flying Sauceralexandermalfait
 
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 RailsSimon Courtois
 
Hogarama Demo on Openshift I
Hogarama Demo on Openshift IHogarama Demo on Openshift I
Hogarama Demo on Openshift IAleksandar Lazic
 
CoffeeScript Design Patterns
CoffeeScript Design PatternsCoffeeScript Design Patterns
CoffeeScript Design PatternsTrevorBurnham
 
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-Napoca4nd4p0p
 
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 componentSon Nguyen
 

Mais procurados (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
 

Destaque

Critical mass: the creativity Challange
Critical mass: the creativity ChallangeCritical mass: the creativity Challange
Critical mass: the creativity ChallangeAsish Pratik Biswal
 
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 Cláudio Carneiro
 
Five Globally Successful Businesses
Five Globally Successful BusinessesFive Globally Successful Businesses
Five Globally Successful Businesseskimjashaw
 
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 DesignUberflip
 
#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 Critical Mass
 
Cultural Impact on Digital Design
Cultural Impact on Digital DesignCultural Impact on Digital Design
Cultural Impact on Digital DesignCritical Mass
 
CES Tech 2014: Opportunities & Challenges
CES Tech 2014: Opportunities & Challenges CES Tech 2014: Opportunities & Challenges
CES Tech 2014: Opportunities & Challenges Critical Mass
 

Destaque (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
 

Semelhante a Optimize CSS with LESS Variables, Mixins and Functions

Write LESS. DO more.
Write LESS. DO more.Write LESS. DO more.
Write LESS. DO more.Eugene Nor
 
Ruby on Rails
Ruby on RailsRuby on Rails
Ruby on RailsDelphiCon
 
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)Exove
 
Phoenix for Rails Devs
Phoenix for Rails DevsPhoenix for Rails Devs
Phoenix for Rails DevsDiacode
 
@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 sassAmr Gawish
 
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 ConsSanjoy Kr. Paul
 
Rails web api 开发
Rails web api 开发Rails web api 开发
Rails web api 开发shaokun
 
Ruby On Rails Introduction
Ruby On Rails IntroductionRuby On Rails Introduction
Ruby On Rails IntroductionThomas Fuchs
 
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 LessDavid Engel
 
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 2013Puppet
 
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 AetherPavan Kumar
 
Migration from Rails2 to Rails3
Migration from Rails2 to Rails3Migration from Rails2 to Rails3
Migration from Rails2 to Rails3Umair Amjad
 
NYPHP March 2009 Presentation
NYPHP March 2009 PresentationNYPHP March 2009 Presentation
NYPHP March 2009 Presentationbrian_dailey
 
Ruby/Rails
Ruby/RailsRuby/Rails
Ruby/Railsrstankov
 
Building web framework with Rack
Building web framework with RackBuilding web framework with Rack
Building web framework with Racksickill
 

Semelhante a Optimize CSS with LESS Variables, Mixins and Functions (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

(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 

Último (20)

(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 

Optimize CSS with LESS Variables, Mixins and Functions

  • 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