SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

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
 

Was ist angesagt? (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
 

Andere mochten auch

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
 

Andere mochten auch (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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Kürzlich hochgeladen

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 

Kürzlich hochgeladen (20)

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 

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