ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Less, Bootstrap and moreA simple introduction.1
What is LESS?{Less} extends CSS with variables, nested rules, operators and more. If you're still building websites without it, you're an idiot.2
Why LESS?So you can define ±äÁ¿(like colors, distances etc.), which then can be used in the rest of the file ¨C great to have all used colors in one place only. Furthermore there are user-defined?º¯Êý, like?.rounded?here, a shortcut to add the three possible border-radius methods.You can even add ²ÎÊý(in this case radius) with a default value.And ǶÌ×classes (.navi a) can be written more naturally.3
How LESS?2 ways:±àÒë°æ±¾put your Less-files and automatically creates the corresponding CSS-file, with error checking and minification if desired.JSÇý¶¯°æ±¾<link?rel="stylesheet/less"?type="text/css"?href="site.less"><script?type="text/javascript"?src=/slideshow/less-bootstrap-and-more/9184161/"less-1.0.41.min.js"></script>4
Sample@linkcolor: ? ? ? #9999C9;@spacing_left: ? ?60px;.rounded(@radius: 3px) {? ? -webkit-border-radius:?@radius;? ? -moz-border-radius:?@radius;? ? border-radius:?@radius;}.navi?{? ?.rounded(5px);? ?a?{? ? ??color:?@linkcolor;? ?}}div.navigation?{? ?padding-left:?@spacing_left;}5
More.darker?{? ?color:?darken(@mycolor, 10%);? ?background-color:?lighten(@mybg, 15%);? ?padding-right:?@spacing_left * 2;? ?padding-bottom:?(@spacing_left + 5) * 2;}6
Fxxk GFW7
What is Bootstrap?Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites.It includes base CSS and HTML for typography, forms, buttons, tables, grids, navigation, and more.8
Why Bootstrap?EasyFastConsistent9
How Bootstrap?2 waysÖ±½ÓÒýÓÃÑùʽ<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap-1.2.0.min.css">+Less<link rel="stylesheet/less" href="/path/to/bootstrap.less"><script src=/slideshow/less-bootstrap-and-more/9184161/"/path/to/less.js"></script>10
+11
+12
+13
+14
ת±ä˼άÒÔ1kb gridΪÀý£¬´«Í³CSS£º15
ת±ä˼άת±äΪ³¢·¡³§³§Ë¼Î¬¡ª¡ª±äÁ¿£º16
ת±ä˼άת±äΪ³¢·¡³§³§Ë¼Î¬¡ª¡ª±äÁ¿+º¯Êý£º17
ʵս£¿Êʺϸú±¹6ÕûÌ幨Áª²»´ó¡¢Ò³Ãæ½Ï¶à¡¢¸üпéµÄÒµÎñ¡£18
Thx~19
Ad

Recommended

Using scss-at-noisestreet
Using scss-at-noisestreet
Wei Pin Teo
?
INTRODUCTIONS OF CSS
INTRODUCTIONS OF CSS
SURYANARAYANBISWAL1
?
Html & CSS
Html & CSS
JainilSampat
?
Organize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS Tricks
Andolasoft Inc
?
Boostrap basics
Boostrap basics
JTechTown
?
HTML and CSS
HTML and CSS
Ketan Ghumatkar
?
Introduction to the Web and HTML
Introduction to the Web and HTML
SiddharthBorderwala
?
Presentation 1 [autosaved]
Presentation 1 [autosaved]
AbdulrahmaanDhagacad
?
Doing more with LESS
Doing more with LESS
jsmith92
?
Styling frameworks v2
Styling frameworks v2
nelsonwong1012
?
Doing More With Less
Doing More With Less
David Engel
?
LESS is More
LESS is More
jsmith92
?
Preprocessor presentation
Preprocessor presentation
Mario Noble
?
Why less?
Why less?
Bunlong Van
?
LESS is More
LESS is More
Nathan Lawrence
?
Less css
Less css
Bill Chea
?
Accelerated Stylesheets
Accelerated Stylesheets
Wynn Netherland
?
LESS is more
LESS is more
Willem Meints
?
An Introduction to CSS Preprocessors (SASS & LESS)
An Introduction to CSS Preprocessors (SASS & LESS)
Folio3 Software
?
Do more with {less}
Do more with {less}
Jesper W?ldiche
?
LESS CSS
LESS CSS
Mathi Rajalingam
?
LESS
LESS
Joe Seifi
?
Mobile-first OOCSS, Sass & Compass at BBC Responsive News
Mobile-first OOCSS, Sass & Compass at BBC Responsive News
Kaelig Deloumeau-Prigent
?
Start using less css
Start using less css
Ali MasudianPour
?
CSS Less framework overview, Pros and Cons
CSS Less framework overview, Pros and Cons
Sanjoy Kr. Paul
?
CSS: a rapidly changing world
CSS: a rapidly changing world
Russ Weakley
?
Get into less by tess hsu
Get into less by tess hsu
Yating Chatiron
?
SASS is more than LESS
SASS is more than LESS
Itai Koren
?
"Scaling in space and time with Temporal", Andriy Lupa.pdf
"Scaling in space and time with Temporal", Andriy Lupa.pdf
Fwdays
?
10 Key Challenges for AI within the EU Data Protection Framework.pdf
10 Key Challenges for AI within the EU Data Protection Framework.pdf
Priyanka Aash
?

More Related Content

Similar to Less, bootstrap and more (20)

Doing more with LESS
Doing more with LESS
jsmith92
?
Styling frameworks v2
Styling frameworks v2
nelsonwong1012
?
Doing More With Less
Doing More With Less
David Engel
?
LESS is More
LESS is More
jsmith92
?
Preprocessor presentation
Preprocessor presentation
Mario Noble
?
Why less?
Why less?
Bunlong Van
?
LESS is More
LESS is More
Nathan Lawrence
?
Less css
Less css
Bill Chea
?
Accelerated Stylesheets
Accelerated Stylesheets
Wynn Netherland
?
LESS is more
LESS is more
Willem Meints
?
An Introduction to CSS Preprocessors (SASS & LESS)
An Introduction to CSS Preprocessors (SASS & LESS)
Folio3 Software
?
Do more with {less}
Do more with {less}
Jesper W?ldiche
?
LESS CSS
LESS CSS
Mathi Rajalingam
?
LESS
LESS
Joe Seifi
?
Mobile-first OOCSS, Sass & Compass at BBC Responsive News
Mobile-first OOCSS, Sass & Compass at BBC Responsive News
Kaelig Deloumeau-Prigent
?
Start using less css
Start using less css
Ali MasudianPour
?
CSS Less framework overview, Pros and Cons
CSS Less framework overview, Pros and Cons
Sanjoy Kr. Paul
?
CSS: a rapidly changing world
CSS: a rapidly changing world
Russ Weakley
?
Get into less by tess hsu
Get into less by tess hsu
Yating Chatiron
?
SASS is more than LESS
SASS is more than LESS
Itai Koren
?

Recently uploaded (20)

"Scaling in space and time with Temporal", Andriy Lupa.pdf
"Scaling in space and time with Temporal", Andriy Lupa.pdf
Fwdays
?
10 Key Challenges for AI within the EU Data Protection Framework.pdf
10 Key Challenges for AI within the EU Data Protection Framework.pdf
Priyanka Aash
?
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
?
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
?
OpenPOWER Foundation & Open-Source Core Innovations
OpenPOWER Foundation & Open-Source Core Innovations
IBM
?
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
Priyanka Aash
?
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
?
You are not excused! How to avoid security blind spots on the way to production
You are not excused! How to avoid security blind spots on the way to production
Michele Leroux Bustamante
?
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
?
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
Fwdays
?
Lessons Learned from Developing Secure AI Workflows.pdf
Lessons Learned from Developing Secure AI Workflows.pdf
Priyanka Aash
?
Connecting Data and Intelligence: The Role of FME in Machine Learning
Connecting Data and Intelligence: The Role of FME in Machine Learning
Safe Software
?
AI vs Human Writing: Can You Tell the Difference?
AI vs Human Writing: Can You Tell the Difference?
Shashi Sathyanarayana, Ph.D
?
Curietech AI in action - Accelerate MuleSoft development
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
?
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Nilesh Gule
?
9-1-1 Addressing: End-to-End Automation Using FME
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
?
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
?
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
?
Mastering AI Workflows with FME by Mark Do?ring
Mastering AI Workflows with FME by Mark Do?ring
Safe Software
?
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
?
"Scaling in space and time with Temporal", Andriy Lupa.pdf
"Scaling in space and time with Temporal", Andriy Lupa.pdf
Fwdays
?
10 Key Challenges for AI within the EU Data Protection Framework.pdf
10 Key Challenges for AI within the EU Data Protection Framework.pdf
Priyanka Aash
?
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
?
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
?
OpenPOWER Foundation & Open-Source Core Innovations
OpenPOWER Foundation & Open-Source Core Innovations
IBM
?
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
Priyanka Aash
?
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
?
You are not excused! How to avoid security blind spots on the way to production
You are not excused! How to avoid security blind spots on the way to production
Michele Leroux Bustamante
?
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
?
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
Fwdays
?
Lessons Learned from Developing Secure AI Workflows.pdf
Lessons Learned from Developing Secure AI Workflows.pdf
Priyanka Aash
?
Connecting Data and Intelligence: The Role of FME in Machine Learning
Connecting Data and Intelligence: The Role of FME in Machine Learning
Safe Software
?
Curietech AI in action - Accelerate MuleSoft development
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
?
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Nilesh Gule
?
9-1-1 Addressing: End-to-End Automation Using FME
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
?
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
?
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
?
Mastering AI Workflows with FME by Mark Do?ring
Mastering AI Workflows with FME by Mark Do?ring
Safe Software
?
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
?
Ad

Less, bootstrap and more