SlideShare una empresa de Scribd logo
1 de 17
ABOUT ME
Name: Sven Homan
Employed: Self
Title: Programmer / Developer
•

12 yrs business software development with ASP.NET, SQL Server,
Access, JQuery, HTML, Javascript

•

4 yrs mobile application development

•

SCRUM master

Hobbies: Learning new technologies.

SVEN HOMAN @COPY 2013
LESS BENEFITS
Organize css
Simplify css
>> Less css code
Easier to change css
Easier to understand styling

SVEN HOMAN @COPY 2013
EXAMPLES
EX 1: Variables, compilation, tools
EX 2: Mixins – simple, parametric
EX 3: Parametric mixins with Media Queries

SVEN HOMAN @COPY 2013
EXAMPLE 1 HTML
<html>
<body>
<p><h2>This is h2 text</h2></p>
<p><h2>This is a link</h2></p>
<form action="“ id=“submitFrm”>
Name: <input type="text" />
Password: <input type="password" />
<input type="submit" value="This is a button" />
</form>
</body>
</html>

SVEN HOMAN @COPY 2013
EX 1 CSS
/* Colors for my Website
#ff9900 - Orange - used for links and highlighted items

#cccccc - Light Gray - used for borders
#333333 - Dark Black - Used for dark backgrounds and heading text color
#454545 - Mid Black - Used for general text color
*/
body { background: #333333; color: #454545; }

a { color:#ff9900; }
h1, h2, h3, h4, h5, h6 { color: #333333; }
#submitfrm{color:#fff;background:#d24444;border:1px solid
#b02222;padding:5px 12px;}

SVEN HOMAN @COPY 2013
EX 1 LESS
/* Colors for my Website */
@color-orange: #ff9900;
@color-gray_light: #cccccc;
@color-black_dark: #333333;
@color-black_medium: #454545;
body { background: @color-gray_light; color: @color-black_medium; }
a { color: @color-orange; }

h1, h2, h3, h4, h5, h6 { color: @color-black_dark; }
@form-color: #d24444;
#submitfrm { color:#fff; background:@form-color; border:1px solid @form-color #222; padding:5px 12px;}

SVEN HOMAN @COPY 2013
EX 1: COMPILE LESS CLIENT SIDE
<!--<link href="style1.css" rel="stylesheet" type="text/css"/>
<link href="style1.less" rel="stylesheet/less" type="text/css"/>
<!--<script src="less.js" type="text/javascript"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/less.js/1.3.1/less.min.js"
type="text/javascript"></script>
Style1.less must come before less.js!

SVEN HOMAN @COPY 2013
EX 2: HTML
<div id="div1">Box number 1</div>
<div id="div2">Box number 2</div>
<div id="div3">Box number 3</div>

SVEN HOMAN @COPY 2013
EX 2: LESS SIMPLE MIXIN
@red: #610000;
@light_red: @red + #333;
@dark_red: @red - #333;
@header-font: cursive;
@header-font-color: #fff;
.base_font {
font-family: @header-font; font-size: 30px; color:@header-font-color;

}
#div1 { background-color: @dark_red; width: 300px; height:100px; .base_font; }
…….

SVEN HOMAN @COPY 2013
EX 2: LESS PARAMETRIC MIXIN
@red: #610000;
@light_red: @red + #333;
@dark_red: @red - #333;
@header-font: cursive;
@header-font-color: #fff;
.base_font (@size) {
font-family: @header-font; font-size: @size; color:@header-font-color;

}
#div1 { background-color: @dark_red; width: 300px; height:100px; .base_font (40px); }
…….

SVEN HOMAN @COPY 2013
EX 3: LESS & MEDIA QUERIES
//smartphone
@media only screen and (max-device-width: 641px) {
.C(2);
}
//tablets
@media only screen and (min-device-width: 800px) and (max-device-aspect-ratio: 1/1) {
.C(2);
}
//desktop
@media (min-device-width: 800px) and (min-device-aspect-ratio: 1/1) {
.C(1);
}

..continued

SVEN HOMAN @COPY 2013
EX 3 ..CONT
.C(@wF){
@main-width: (200px * @wF);
@main-height: (100px * @wF);
@bg-color1: #e6e8e9;
@bg-color2: #0f729b;
@font-size-base: 15px;
@font-size-title: 20px;
.base_font {
color: red; }
.title_font {
white; }

font-family: helvetica;
.base_font;

font-size: (@font-size-base * @wF);

font-size: (@font-size-title * @wF);

font-weight: normal;

font-weight: normal;

#div1 { background-color: @bg-color1; width: @main-width; height:@main-height;

color:

.title_font;}

#div2 { background-color: @bg-color2; width: @main-width; height:(@main-height) - 20px;

.base_font;}

#div3 { background-color: @bg-color2; width: @main-width; height:(@main-height) - 30px;

.base_font;}

}

SVEN HOMAN @COPY 2013
MORE FEATURES
•

Imports

•

Access to browser environment

•

Functions

•

Watch!

SVEN HOMAN @COPY 2013
SUMMARY
Think about CSS and styling like a programmer.
Less code
Better organization
Easier to change styling
Easier to understand styling

SVEN HOMAN @COPY 2013
RESOURCES
1. http://lesscss.org/
2. http://www.amazon.com/Instant-LESS-CSS-Preprocessor-How/dp/178216376X/ref=sr_1_2?ie=UTF8&qid=1383703764&sr=82&keywords=LESS

SVEN HOMAN @COPY 2013
SVEN HOMAN @COPY 2013

Más contenido relacionado

La actualidad más candente

CSS Frameworks
CSS FrameworksCSS Frameworks
CSS FrameworksMike Crabb
 
Web Design Basics for Kids: HTML & CSS
Web Design Basics for Kids: HTML & CSSWeb Design Basics for Kids: HTML & CSS
Web Design Basics for Kids: HTML & CSSAnnMarie Ppl
 
Using scss-at-noisestreet
Using scss-at-noisestreetUsing scss-at-noisestreet
Using scss-at-noisestreetWei Pin Teo
 
Railsgirls: Where did my HTML and CSS go
Railsgirls: Where did my HTML and CSS goRailsgirls: Where did my HTML and CSS go
Railsgirls: Where did my HTML and CSS goBrigitte Jellinek
 
There Are No “Buts” in Progressive Enhancement [Øredev 2015]
There Are No “Buts” in Progressive Enhancement [Øredev 2015]There Are No “Buts” in Progressive Enhancement [Øredev 2015]
There Are No “Buts” in Progressive Enhancement [Øredev 2015]Aaron Gustafson
 
HTML5+CSS3 (入門編)
HTML5+CSS3 (入門編)HTML5+CSS3 (入門編)
HTML5+CSS3 (入門編)博史 高木
 
oik-plugins: WordUp Pompey! Nov 2011
oik-plugins: WordUp Pompey! Nov 2011oik-plugins: WordUp Pompey! Nov 2011
oik-plugins: WordUp Pompey! Nov 2011Herb Miller
 
Facebook - Suggesting Fan Page
Facebook - Suggesting Fan PageFacebook - Suggesting Fan Page
Facebook - Suggesting Fan PageJason Shmeltzner
 
Promoted Links - SPEngage Phoenix 2017
Promoted Links - SPEngage Phoenix 2017Promoted Links - SPEngage Phoenix 2017
Promoted Links - SPEngage Phoenix 2017Jim Adcock
 
Styling with CSS
Styling with CSSStyling with CSS
Styling with CSSMike Crabb
 
High Performance Front-End Development
High Performance Front-End DevelopmentHigh Performance Front-End Development
High Performance Front-End Developmentdrywallbmb
 
Upstate CSCI 450 WebDev Chapter 2
Upstate CSCI 450 WebDev Chapter 2Upstate CSCI 450 WebDev Chapter 2
Upstate CSCI 450 WebDev Chapter 2DanWooster1
 
Introduction to Coding a Webpage
Introduction to Coding a WebpageIntroduction to Coding a Webpage
Introduction to Coding a WebpageKen Tabor
 
Why I love Haml
Why I love HamlWhy I love Haml
Why I love HamlFlumes
 
TRELLO: A Powerful Engine for Project Management
TRELLO: A Powerful Engine for Project ManagementTRELLO: A Powerful Engine for Project Management
TRELLO: A Powerful Engine for Project ManagementMafel Gorne
 

La actualidad más candente (20)

CSS Frameworks
CSS FrameworksCSS Frameworks
CSS Frameworks
 
Web Design Basics for Kids: HTML & CSS
Web Design Basics for Kids: HTML & CSSWeb Design Basics for Kids: HTML & CSS
Web Design Basics for Kids: HTML & CSS
 
New text document
New text documentNew text document
New text document
 
Using scss-at-noisestreet
Using scss-at-noisestreetUsing scss-at-noisestreet
Using scss-at-noisestreet
 
Railsgirls: Where did my HTML and CSS go
Railsgirls: Where did my HTML and CSS goRailsgirls: Where did my HTML and CSS go
Railsgirls: Where did my HTML and CSS go
 
Largamos o cucumber
Largamos o cucumberLargamos o cucumber
Largamos o cucumber
 
Web dev syllabus
Web dev syllabusWeb dev syllabus
Web dev syllabus
 
Rakshat bhati
Rakshat bhatiRakshat bhati
Rakshat bhati
 
There Are No “Buts” in Progressive Enhancement [Øredev 2015]
There Are No “Buts” in Progressive Enhancement [Øredev 2015]There Are No “Buts” in Progressive Enhancement [Øredev 2015]
There Are No “Buts” in Progressive Enhancement [Øredev 2015]
 
HTML5+CSS3 (入門編)
HTML5+CSS3 (入門編)HTML5+CSS3 (入門編)
HTML5+CSS3 (入門編)
 
oik-plugins: WordUp Pompey! Nov 2011
oik-plugins: WordUp Pompey! Nov 2011oik-plugins: WordUp Pompey! Nov 2011
oik-plugins: WordUp Pompey! Nov 2011
 
Facebook - Suggesting Fan Page
Facebook - Suggesting Fan PageFacebook - Suggesting Fan Page
Facebook - Suggesting Fan Page
 
Promoted Links - SPEngage Phoenix 2017
Promoted Links - SPEngage Phoenix 2017Promoted Links - SPEngage Phoenix 2017
Promoted Links - SPEngage Phoenix 2017
 
Styling with CSS
Styling with CSSStyling with CSS
Styling with CSS
 
High Performance Front-End Development
High Performance Front-End DevelopmentHigh Performance Front-End Development
High Performance Front-End Development
 
Upstate CSCI 450 WebDev Chapter 2
Upstate CSCI 450 WebDev Chapter 2Upstate CSCI 450 WebDev Chapter 2
Upstate CSCI 450 WebDev Chapter 2
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
Introduction to Coding a Webpage
Introduction to Coding a WebpageIntroduction to Coding a Webpage
Introduction to Coding a Webpage
 
Why I love Haml
Why I love HamlWhy I love Haml
Why I love Haml
 
TRELLO: A Powerful Engine for Project Management
TRELLO: A Powerful Engine for Project ManagementTRELLO: A Powerful Engine for Project Management
TRELLO: A Powerful Engine for Project Management
 

Destacado

Zillow Economic Update at NAREE
Zillow Economic Update at NAREEZillow Economic Update at NAREE
Zillow Economic Update at NAREECile Montgomery
 
TOP500 BOF introduction and awarding session
TOP500 BOF introduction and awarding sessionTOP500 BOF introduction and awarding session
TOP500 BOF introduction and awarding sessiontop500
 
A glassof milk.pps
A glassof milk.ppsA glassof milk.pps
A glassof milk.ppsvinod kumar
 
Assistive Technology Presentation
Assistive Technology PresentationAssistive Technology Presentation
Assistive Technology Presentationlisashepard
 
Curricularesprimerainf
CurricularesprimerainfCurricularesprimerainf
CurricularesprimerainfCarlos Soto
 
Functional fitness and health related promotional tools with excellent ROI
Functional fitness and health related promotional tools with excellent ROIFunctional fitness and health related promotional tools with excellent ROI
Functional fitness and health related promotional tools with excellent ROILagniappe_Promotions
 
圆锥体积
圆锥体积圆锥体积
圆锥体积658864041
 
1994 de a a j ok
1994 de a a j ok1994 de a a j ok
1994 de a a j okcepmaio
 
Eclipse 10 years Party
Eclipse 10 years PartyEclipse 10 years Party
Eclipse 10 years PartyMite Mitreski
 
Manuten preventiva corretiva
Manuten preventiva corretivaManuten preventiva corretiva
Manuten preventiva corretivaDaniel Saraiva
 
Grant Proposal Development, An Introductory Course
Grant Proposal Development, An Introductory Course Grant Proposal Development, An Introductory Course
Grant Proposal Development, An Introductory Course Sudeep Uprety
 
Coda: The sting in the tail - Meetup session 23
Coda: The sting in the tail - Meetup session 23Coda: The sting in the tail - Meetup session 23
Coda: The sting in the tail - Meetup session 23William Hall
 
1999 arq.form
1999   arq.form1999   arq.form
1999 arq.formcepmaio
 
Monkey Business — What apes and New World monkeys tell us about the origins o...
Monkey Business — What apes and New World monkeys tell us about the origins o...Monkey Business — What apes and New World monkeys tell us about the origins o...
Monkey Business — What apes and New World monkeys tell us about the origins o...William Hall
 
SEO for Beginners - Betamore 2014
SEO for Beginners - Betamore 2014SEO for Beginners - Betamore 2014
SEO for Beginners - Betamore 2014bevast
 

Destacado (20)

Zillow Economic Update at NAREE
Zillow Economic Update at NAREEZillow Economic Update at NAREE
Zillow Economic Update at NAREE
 
Podstawy ekonomii - cz. VI
Podstawy ekonomii - cz. VIPodstawy ekonomii - cz. VI
Podstawy ekonomii - cz. VI
 
TOP500 BOF introduction and awarding session
TOP500 BOF introduction and awarding sessionTOP500 BOF introduction and awarding session
TOP500 BOF introduction and awarding session
 
A glassof milk.pps
A glassof milk.ppsA glassof milk.pps
A glassof milk.pps
 
14463
1446314463
14463
 
Assistive Technology Presentation
Assistive Technology PresentationAssistive Technology Presentation
Assistive Technology Presentation
 
Curricularesprimerainf
CurricularesprimerainfCurricularesprimerainf
Curricularesprimerainf
 
Studid
StudidStudid
Studid
 
Functional fitness and health related promotional tools with excellent ROI
Functional fitness and health related promotional tools with excellent ROIFunctional fitness and health related promotional tools with excellent ROI
Functional fitness and health related promotional tools with excellent ROI
 
圆锥体积
圆锥体积圆锥体积
圆锥体积
 
1994 de a a j ok
1994 de a a j ok1994 de a a j ok
1994 de a a j ok
 
Eclipse 10 years Party
Eclipse 10 years PartyEclipse 10 years Party
Eclipse 10 years Party
 
Manuten preventiva corretiva
Manuten preventiva corretivaManuten preventiva corretiva
Manuten preventiva corretiva
 
Grant Proposal Development, An Introductory Course
Grant Proposal Development, An Introductory Course Grant Proposal Development, An Introductory Course
Grant Proposal Development, An Introductory Course
 
Goiás
GoiásGoiás
Goiás
 
Coda: The sting in the tail - Meetup session 23
Coda: The sting in the tail - Meetup session 23Coda: The sting in the tail - Meetup session 23
Coda: The sting in the tail - Meetup session 23
 
Well pumps
Well pumpsWell pumps
Well pumps
 
1999 arq.form
1999   arq.form1999   arq.form
1999 arq.form
 
Monkey Business — What apes and New World monkeys tell us about the origins o...
Monkey Business — What apes and New World monkeys tell us about the origins o...Monkey Business — What apes and New World monkeys tell us about the origins o...
Monkey Business — What apes and New World monkeys tell us about the origins o...
 
SEO for Beginners - Betamore 2014
SEO for Beginners - Betamore 2014SEO for Beginners - Betamore 2014
SEO for Beginners - Betamore 2014
 

Similar a LESS CSS Processor

Introduction to angular js july 6th 2014
Introduction to angular js   july 6th 2014Introduction to angular js   july 6th 2014
Introduction to angular js july 6th 2014Simona Clapan
 
Take Your Markup to 11
Take Your Markup to 11Take Your Markup to 11
Take Your Markup to 11Emily Lewis
 
Introduction to web components
Introduction to web componentsIntroduction to web components
Introduction to web componentsMarc Bächinger
 
Happy Browser, Happy User! - PerfMatters Conference 2019
Happy Browser, Happy User! - PerfMatters Conference 2019Happy Browser, Happy User! - PerfMatters Conference 2019
Happy Browser, Happy User! - PerfMatters Conference 2019Katie Sylor-Miller
 
Introduction to web development
Introduction to web developmentIntroduction to web development
Introduction to web developmentAlberto Apellidos
 
TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單偉格 高
 
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!Coulawrence
 
Fronteers 2012 - Lessons learned from building a SAAS app
Fronteers 2012 - Lessons learned from building a SAAS appFronteers 2012 - Lessons learned from building a SAAS app
Fronteers 2012 - Lessons learned from building a SAAS appGoodbytes
 
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012crokitta
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucksTim Wright
 
[SUTD GDSC] Intro to HTML and CSS
[SUTD GDSC] Intro to HTML and CSS[SUTD GDSC] Intro to HTML and CSS
[SUTD GDSC] Intro to HTML and CSSBeckhamWee
 
Creating HTML Pages
Creating HTML PagesCreating HTML Pages
Creating HTML PagesMike Crabb
 
TDC2017 | Florianopolis - Trilha DevOps How we figured out we had a SRE team ...
TDC2017 | Florianopolis - Trilha DevOps How we figured out we had a SRE team ...TDC2017 | Florianopolis - Trilha DevOps How we figured out we had a SRE team ...
TDC2017 | Florianopolis - Trilha DevOps How we figured out we had a SRE team ...tdc-globalcode
 
Polytechnic speaker deck oluwadamilare
Polytechnic speaker deck oluwadamilarePolytechnic speaker deck oluwadamilare
Polytechnic speaker deck oluwadamilareOluwadamilare Ibrahim
 

Similar a LESS CSS Processor (20)

Introduction to angular js july 6th 2014
Introduction to angular js   july 6th 2014Introduction to angular js   july 6th 2014
Introduction to angular js july 6th 2014
 
Take Your Markup to 11
Take Your Markup to 11Take Your Markup to 11
Take Your Markup to 11
 
Introduction to web components
Introduction to web componentsIntroduction to web components
Introduction to web components
 
Microformats
MicroformatsMicroformats
Microformats
 
Happy Browser, Happy User! - PerfMatters Conference 2019
Happy Browser, Happy User! - PerfMatters Conference 2019Happy Browser, Happy User! - PerfMatters Conference 2019
Happy Browser, Happy User! - PerfMatters Conference 2019
 
Introduction to web development
Introduction to web developmentIntroduction to web development
Introduction to web development
 
TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單
 
Tercer trabajo de drapi 02
Tercer trabajo de drapi 02Tercer trabajo de drapi 02
Tercer trabajo de drapi 02
 
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
 
HTML5
HTML5HTML5
HTML5
 
Fronteers 2012 - Lessons learned from building a SAAS app
Fronteers 2012 - Lessons learned from building a SAAS appFronteers 2012 - Lessons learned from building a SAAS app
Fronteers 2012 - Lessons learned from building a SAAS app
 
Create a landing page
Create a landing pageCreate a landing page
Create a landing page
 
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
 
Apex & jQuery Mobile
Apex & jQuery MobileApex & jQuery Mobile
Apex & jQuery Mobile
 
[SUTD GDSC] Intro to HTML and CSS
[SUTD GDSC] Intro to HTML and CSS[SUTD GDSC] Intro to HTML and CSS
[SUTD GDSC] Intro to HTML and CSS
 
Creating HTML Pages
Creating HTML PagesCreating HTML Pages
Creating HTML Pages
 
TDC2017 | Florianopolis - Trilha DevOps How we figured out we had a SRE team ...
TDC2017 | Florianopolis - Trilha DevOps How we figured out we had a SRE team ...TDC2017 | Florianopolis - Trilha DevOps How we figured out we had a SRE team ...
TDC2017 | Florianopolis - Trilha DevOps How we figured out we had a SRE team ...
 
Introduction to Html5
Introduction to Html5Introduction to Html5
Introduction to Html5
 
Polytechnic speaker deck oluwadamilare
Polytechnic speaker deck oluwadamilarePolytechnic speaker deck oluwadamilare
Polytechnic speaker deck oluwadamilare
 

Último

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 FMESafe Software
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
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 FresherRemote DBA Services
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
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 FMESafe Software
 
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.pdfOrbitshub
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
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.pptxRustici Software
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
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 connectorsNanddeep Nachan
 
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, ...Angeliki Cooney
 

Último (20)

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
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
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
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
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
 
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
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
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
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
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
 
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, ...
 

LESS CSS Processor

  • 1.
  • 2. ABOUT ME Name: Sven Homan Employed: Self Title: Programmer / Developer • 12 yrs business software development with ASP.NET, SQL Server, Access, JQuery, HTML, Javascript • 4 yrs mobile application development • SCRUM master Hobbies: Learning new technologies. SVEN HOMAN @COPY 2013
  • 3. LESS BENEFITS Organize css Simplify css >> Less css code Easier to change css Easier to understand styling SVEN HOMAN @COPY 2013
  • 4. EXAMPLES EX 1: Variables, compilation, tools EX 2: Mixins – simple, parametric EX 3: Parametric mixins with Media Queries SVEN HOMAN @COPY 2013
  • 5. EXAMPLE 1 HTML <html> <body> <p><h2>This is h2 text</h2></p> <p><h2>This is a link</h2></p> <form action="“ id=“submitFrm”> Name: <input type="text" /> Password: <input type="password" /> <input type="submit" value="This is a button" /> </form> </body> </html> SVEN HOMAN @COPY 2013
  • 6. EX 1 CSS /* Colors for my Website #ff9900 - Orange - used for links and highlighted items #cccccc - Light Gray - used for borders #333333 - Dark Black - Used for dark backgrounds and heading text color #454545 - Mid Black - Used for general text color */ body { background: #333333; color: #454545; } a { color:#ff9900; } h1, h2, h3, h4, h5, h6 { color: #333333; } #submitfrm{color:#fff;background:#d24444;border:1px solid #b02222;padding:5px 12px;} SVEN HOMAN @COPY 2013
  • 7. EX 1 LESS /* Colors for my Website */ @color-orange: #ff9900; @color-gray_light: #cccccc; @color-black_dark: #333333; @color-black_medium: #454545; body { background: @color-gray_light; color: @color-black_medium; } a { color: @color-orange; } h1, h2, h3, h4, h5, h6 { color: @color-black_dark; } @form-color: #d24444; #submitfrm { color:#fff; background:@form-color; border:1px solid @form-color #222; padding:5px 12px;} SVEN HOMAN @COPY 2013
  • 8. EX 1: COMPILE LESS CLIENT SIDE <!--<link href="style1.css" rel="stylesheet" type="text/css"/> <link href="style1.less" rel="stylesheet/less" type="text/css"/> <!--<script src="less.js" type="text/javascript"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/less.js/1.3.1/less.min.js" type="text/javascript"></script> Style1.less must come before less.js! SVEN HOMAN @COPY 2013
  • 9. EX 2: HTML <div id="div1">Box number 1</div> <div id="div2">Box number 2</div> <div id="div3">Box number 3</div> SVEN HOMAN @COPY 2013
  • 10. EX 2: LESS SIMPLE MIXIN @red: #610000; @light_red: @red + #333; @dark_red: @red - #333; @header-font: cursive; @header-font-color: #fff; .base_font { font-family: @header-font; font-size: 30px; color:@header-font-color; } #div1 { background-color: @dark_red; width: 300px; height:100px; .base_font; } ……. SVEN HOMAN @COPY 2013
  • 11. EX 2: LESS PARAMETRIC MIXIN @red: #610000; @light_red: @red + #333; @dark_red: @red - #333; @header-font: cursive; @header-font-color: #fff; .base_font (@size) { font-family: @header-font; font-size: @size; color:@header-font-color; } #div1 { background-color: @dark_red; width: 300px; height:100px; .base_font (40px); } ……. SVEN HOMAN @COPY 2013
  • 12. EX 3: LESS & MEDIA QUERIES //smartphone @media only screen and (max-device-width: 641px) { .C(2); } //tablets @media only screen and (min-device-width: 800px) and (max-device-aspect-ratio: 1/1) { .C(2); } //desktop @media (min-device-width: 800px) and (min-device-aspect-ratio: 1/1) { .C(1); } ..continued SVEN HOMAN @COPY 2013
  • 13. EX 3 ..CONT .C(@wF){ @main-width: (200px * @wF); @main-height: (100px * @wF); @bg-color1: #e6e8e9; @bg-color2: #0f729b; @font-size-base: 15px; @font-size-title: 20px; .base_font { color: red; } .title_font { white; } font-family: helvetica; .base_font; font-size: (@font-size-base * @wF); font-size: (@font-size-title * @wF); font-weight: normal; font-weight: normal; #div1 { background-color: @bg-color1; width: @main-width; height:@main-height; color: .title_font;} #div2 { background-color: @bg-color2; width: @main-width; height:(@main-height) - 20px; .base_font;} #div3 { background-color: @bg-color2; width: @main-width; height:(@main-height) - 30px; .base_font;} } SVEN HOMAN @COPY 2013
  • 14. MORE FEATURES • Imports • Access to browser environment • Functions • Watch! SVEN HOMAN @COPY 2013
  • 15. SUMMARY Think about CSS and styling like a programmer. Less code Better organization Easier to change styling Easier to understand styling SVEN HOMAN @COPY 2013