SlideShare une entreprise Scribd logo
1  sur  35
Télécharger pour lire hors ligne
{less} 시작하기
ABC Talk / Alan Hong
오늘은
{less}에 대해 간단히 살펴보고
새 프로젝트를 시작할 때, 거부감없이 사용할 수 있도록…
less?
The dynamic stylesheet language. !
LESS extends CSS with dynamic behavior such as
variables, mixins, operations and functions.!
LESS runs on both the server-side (with Node.js and
Rhino) or client-side (modern browsers only).
less?
The dynamic stylesheet language. !
LESS extends CSS with dynamic behavior such as
variables, mixins, operations and functions.!
LESS runs on both the server-side (with Node.js and
Rhino) or client-side (modern browsers only).
less?
The dynamic stylesheet language. !
LESS extends CSS with dynamic behavior such as
variables, mixins, operations and functions.!
LESS runs on both the server-side (with Node.js and
Rhino) or client-side (modern browsers only).
less?
The dynamic stylesheet language. !
LESS extends CSS with dynamic behavior such as
variables, mixins, operations and functions.!
LESS runs on both the server-side (with Node.js and
Rhino) or client-side (modern browsers only).
less?
The dynamic stylesheet language. !
LESS extends CSS with dynamic behavior such as
variables, mixins, operations and functions.!
LESS runs on both the server-side (with Node.js and
Rhino) or client-side (modern browsers only).
less?
The dynamic stylesheet language. !
LESS extends CSS with dynamic behavior such as
variables, mixins, operations and functions.!
LESS runs on both the server-side (with Node.js and
Rhino) or client-side (modern browsers only).
Variables
•

specify values in a single place, and then re-use
them through the stylesheet.!

•

http://jsbin.com/AYOHIxE/5/edit
Scope
•

When defining a variable twice, the last definition of
the variable is used, searching from the current
scope upwards.!

•

http://jsbin.com/AwUhUviw/2/edit
Comments
•

Single-line comments are also valid in LESS, but
they are ‘silent’, they don’t show up in the compiled
CSS output!

•

http://jsbin.com/EBomeHoW/1/edit
Mixins
•

embed all the properties of a class into another
class.!

•

http://jsbin.com/uDUWEKo/3/edit
Parametric Mixins
•

LESS has a special type of ruleset which can be
mixed in like classes, but accepts parameters.!

•

http://jsbin.com/uDUWEKo/1/edit
!important
•

Use the !important keyword after mixin call to mark
all properties brought by it as !important!

•

http://jsbin.com/idALUbE/1/edit
Nested Rules
•

nest selectors inside other selectors. This makes
inheritance clear and style sheets shorter.!

•

http://jsbin.com/iKUsiNI/4/edit
CSS Selector Nightmare
& combinator
•

it’s used when you want a nested selector to be
concatenated to its parent selector, instead of acting
as a descendant. This is especially important for
pseudo-classes like :hover and :focus.!

•

http://jsbin.com/iKUsiNI/3/edit
Nested Media Queries
•

Media queries can be nested in the same way as
selectors e.g.!

•

http://jsbin.com/eMAQOmOC/2/edit
Operations
•

Operations let you add, subtract, divide and multiply
property values and colors.!

•

http://jsbin.com/IVABOGO/2/edit
Functions
•

LESS provides a variety of functions which
transform colors, manipulate strings and do maths.!

•

Color: http://jsbin.com/eBipaMUB/1/edit!

•

Math: http://jsbin.com/enIsiZig/1/edit
Importing
•

You can import both CSS and LESS files. Only
LESS files import statements are processed, CSS
file import statements are kept as they are.
String interpolation
•

Variables can be embedded inside strings in a
similar way to Ruby or PHP, with the @{name}
construct
Example
•

less-elements: https://github.com/dmitryf/elements/
blob/master/elements.less!

•

less-elements example: https://github.com/
HackerWins/summernote/blob/master/
summernote.less!

•

CSS Sprites: http://jsbin.com/OluTehe/1/edit
vs Sass
•

Both Sass and LESS are CSS preprocessors, which allow
writing clean CSS in a programming construct instead of
static rules.[5]!

•

LESS is inspired by Sass.[6] Sass was designed to both
simplify and extend CSS, so things like curly braces were
removed from the syntax. LESS was designed to be as
close to CSS as possible, so the syntax is identical to
existing CSS code. As a result, existing CSS can be used
as valid LESS code.!

•

The newer versions of Sass also introduced a CSS-like
syntax called SCSS (Sassy CSS).[2]
vs Sass
•

Both Sass and LESS are CSS preprocessors, which allow
writing clean CSS in a programming construct instead of
static rules.[5]!

•

LESS is inspired by Sass.[6] Sass was designed to both
simplify and extend CSS, so things like curly braces were
removed from the syntax. LESS was designed to be as
close to CSS as possible, so the syntax is identical to
existing CSS code. As a result, existing CSS can be used
as valid LESS code.!

•

The newer versions of Sass also introduced a CSS-like
syntax called SCSS (Sassy CSS).[2]
vs Sass
•

Both Sass and LESS are CSS preprocessors, which allow
writing clean CSS in a programming construct instead of
static rules.[5]!

•

LESS is inspired by Sass.[6] Sass was designed to both
simplify and extend CSS, so things like curly braces were
removed from the syntax. LESS was designed to be as
close to CSS as possible, so the syntax is identical to
existing CSS code. As a result, existing CSS can be used
as valid LESS code.!

•

The newer versions of Sass also introduced a CSS-like
syntax called SCSS (Sassy CSS).[2]
vs Sass
•

Both Sass and LESS are CSS preprocessors, which allow
writing clean CSS in a programming construct instead of
static rules.[5]!

•

LESS is inspired by Sass.[6] Sass was designed to both
simplify and extend CSS, so things like curly braces were
removed from the syntax. LESS was designed to be as
close to CSS as possible, so the syntax is identical to
existing CSS code. As a result, existing CSS can be used
as valid LESS code.!

•

The newer versions of Sass also introduced a CSS-like
syntax called SCSS (Sassy CSS).[2]
vs Sass
•

Both Sass and LESS are CSS preprocessors, which allow
writing clean CSS in a programming construct instead of
static rules.[5]!

•

LESS is inspired by Sass.[6] Sass was designed to both
simplify and extend CSS, so things like curly braces were
removed from the syntax. LESS was designed to be as
close to CSS as possible, so the syntax is identical to
existing CSS code. As a result, existing CSS can be used
as valid LESS code.!

•

The newer versions of Sass also introduced a CSS-like
syntax called SCSS (Sassy CSS).[2]
결국…
sass: star (2741), fork (470)!
less: star (9582), fork (2034)
vs Sass
•

Both Sass and LESS are CSS preprocessors, which allow
writing clean CSS in a programming construct instead of
static rules.[5]!

•

LESS is inspired by Sass.[6] Sass was designed to both
simplify and extend CSS, so things like curly braces were
removed from the syntax. LESS was designed to be as
close to CSS as possible, so the syntax is identical to
existing CSS code. As a result, existing CSS can be used
as valid LESS code.!

•

The newer versions of Sass also introduced a CSS-like
syntax called SCSS (Sassy CSS).[2]
이미 늦은듯…
sass: star (2741), fork (470)!
less: star (9582), fork (2034)
감사합니다.

Contenu connexe

Tendances

Deep dive into sass
Deep dive into sassDeep dive into sass
Deep dive into sassKnoldus Inc.
 
LESS, the CSS Preprocessor
LESS, the CSS PreprocessorLESS, the CSS Preprocessor
LESS, the CSS PreprocessorAndrea Tarr
 
HTML5, CSS, JavaScript Style guide and coding conventions
HTML5, CSS, JavaScript Style guide and coding conventionsHTML5, CSS, JavaScript Style guide and coding conventions
HTML5, CSS, JavaScript Style guide and coding conventionsKnoldus Inc.
 
Write LESS. DO more.
Write LESS. DO more.Write LESS. DO more.
Write LESS. DO more.Eugene Nor
 
Introduction to SASS
Introduction to SASSIntroduction to SASS
Introduction to SASSJon Dean
 
Html & Css presentation
Html  & Css presentation Html  & Css presentation
Html & Css presentation joilrahat
 
CSS - OOCSS, SMACSS and more
CSS - OOCSS, SMACSS and moreCSS - OOCSS, SMACSS and more
CSS - OOCSS, SMACSS and moreRuss Weakley
 
Syntactically awesome stylesheets (Sass)
Syntactically awesome stylesheets (Sass)Syntactically awesome stylesheets (Sass)
Syntactically awesome stylesheets (Sass)Tahmina Khatoon
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3Doris Chen
 
SASS is more than LESS
SASS is more than LESSSASS is more than LESS
SASS is more than LESSItai Koren
 
Week01 jan19 introductionto_php
Week01 jan19 introductionto_phpWeek01 jan19 introductionto_php
Week01 jan19 introductionto_phpJeanho Chu
 

Tendances (20)

Deep dive into sass
Deep dive into sassDeep dive into sass
Deep dive into sass
 
LESS, the CSS Preprocessor
LESS, the CSS PreprocessorLESS, the CSS Preprocessor
LESS, the CSS Preprocessor
 
Sass presentation
Sass presentationSass presentation
Sass presentation
 
HTML5, CSS, JavaScript Style guide and coding conventions
HTML5, CSS, JavaScript Style guide and coding conventionsHTML5, CSS, JavaScript Style guide and coding conventions
HTML5, CSS, JavaScript Style guide and coding conventions
 
Write LESS. DO more.
Write LESS. DO more.Write LESS. DO more.
Write LESS. DO more.
 
Less presentation
Less presentationLess presentation
Less presentation
 
Sass
SassSass
Sass
 
LESS CSS
LESS CSSLESS CSS
LESS CSS
 
Css to-scss
Css to-scssCss to-scss
Css to-scss
 
WordPress as a CMS
WordPress as a CMSWordPress as a CMS
WordPress as a CMS
 
Introduction to sass
Introduction to sassIntroduction to sass
Introduction to sass
 
Introduction to SASS
Introduction to SASSIntroduction to SASS
Introduction to SASS
 
Html & Css presentation
Html  & Css presentation Html  & Css presentation
Html & Css presentation
 
CSS - OOCSS, SMACSS and more
CSS - OOCSS, SMACSS and moreCSS - OOCSS, SMACSS and more
CSS - OOCSS, SMACSS and more
 
Syntactically awesome stylesheets (Sass)
Syntactically awesome stylesheets (Sass)Syntactically awesome stylesheets (Sass)
Syntactically awesome stylesheets (Sass)
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
 
Css 3
Css 3Css 3
Css 3
 
Css 3
Css 3Css 3
Css 3
 
SASS is more than LESS
SASS is more than LESSSASS is more than LESS
SASS is more than LESS
 
Week01 jan19 introductionto_php
Week01 jan19 introductionto_phpWeek01 jan19 introductionto_php
Week01 jan19 introductionto_php
 

Similaire à Less

Bliblidotcom - SASS Introduction
Bliblidotcom - SASS IntroductionBliblidotcom - SASS Introduction
Bliblidotcom - SASS IntroductionIrfan Maulana
 
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!Stefan Bauer
 
Authoring Stylesheets with Compass & Sass
Authoring Stylesheets with Compass & SassAuthoring Stylesheets with Compass & Sass
Authoring Stylesheets with Compass & Sasschriseppstein
 
SCSS Implementation
SCSS ImplementationSCSS Implementation
SCSS ImplementationAmey Parab
 
Using Sass in Your WordPress Projects
Using Sass in Your WordPress ProjectsUsing Sass in Your WordPress Projects
Using Sass in Your WordPress ProjectsJeremy Green
 
Web technologies-course 05.pptx
Web technologies-course 05.pptxWeb technologies-course 05.pptx
Web technologies-course 05.pptxStefan Oprea
 
SASS - Syntactically Awesome Stylesheet
SASS - Syntactically Awesome StylesheetSASS - Syntactically Awesome Stylesheet
SASS - Syntactically Awesome StylesheetNeha Sharma
 
Sass:-Syntactically Awesome Stylesheet by Shafeeq
Sass:-Syntactically Awesome Stylesheet by ShafeeqSass:-Syntactically Awesome Stylesheet by Shafeeq
Sass:-Syntactically Awesome Stylesheet by ShafeeqDignitasDigital1
 
Sass - basic to advance
Sass  - basic to advanceSass  - basic to advance
Sass - basic to advanceVinita Swamy
 
Intro to Sass for WordPress Developers
Intro to Sass for WordPress DevelopersIntro to Sass for WordPress Developers
Intro to Sass for WordPress DevelopersSuzette Franck
 
Getting SASSy with front end development
Getting SASSy with front end developmentGetting SASSy with front end development
Getting SASSy with front end developmentMatthew Carleton
 
The World of Stylesheet Languages
The World of Stylesheet LanguagesThe World of Stylesheet Languages
The World of Stylesheet LanguagesAndrea Tino
 
Sass and Compass short presentation
Sass and Compass short presentationSass and Compass short presentation
Sass and Compass short presentationPavel Mocean
 
Yahoo7 Tech Night - SASS
Yahoo7 Tech Night - SASSYahoo7 Tech Night - SASS
Yahoo7 Tech Night - SASSAndy Sharman
 
WordCamp NYC - DRY CSS
WordCamp NYC - DRY CSSWordCamp NYC - DRY CSS
WordCamp NYC - DRY CSSJer Clarke
 
The sass way - Yatendra Bhardwaj
The sass way - Yatendra BhardwajThe sass way - Yatendra Bhardwaj
The sass way - Yatendra BhardwajYatendra Bhardwaj
 
LESS(CSS Pre Processor) introduction
LESS(CSS Pre Processor) introductionLESS(CSS Pre Processor) introduction
LESS(CSS Pre Processor) introductionrushi7567
 

Similaire à Less (20)

Bliblidotcom - SASS Introduction
Bliblidotcom - SASS IntroductionBliblidotcom - SASS Introduction
Bliblidotcom - SASS Introduction
 
UNIT 3.ppt
UNIT 3.pptUNIT 3.ppt
UNIT 3.ppt
 
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
 
Authoring Stylesheets with Compass & Sass
Authoring Stylesheets with Compass & SassAuthoring Stylesheets with Compass & Sass
Authoring Stylesheets with Compass & Sass
 
SCSS Implementation
SCSS ImplementationSCSS Implementation
SCSS Implementation
 
Using Sass in Your WordPress Projects
Using Sass in Your WordPress ProjectsUsing Sass in Your WordPress Projects
Using Sass in Your WordPress Projects
 
Web technologies-course 05.pptx
Web technologies-course 05.pptxWeb technologies-course 05.pptx
Web technologies-course 05.pptx
 
SASS - Syntactically Awesome Stylesheet
SASS - Syntactically Awesome StylesheetSASS - Syntactically Awesome Stylesheet
SASS - Syntactically Awesome Stylesheet
 
Sass:-Syntactically Awesome Stylesheet by Shafeeq
Sass:-Syntactically Awesome Stylesheet by ShafeeqSass:-Syntactically Awesome Stylesheet by Shafeeq
Sass:-Syntactically Awesome Stylesheet by Shafeeq
 
Advanced sass
Advanced sassAdvanced sass
Advanced sass
 
Sass - basic to advance
Sass  - basic to advanceSass  - basic to advance
Sass - basic to advance
 
Intro to Sass for WordPress Developers
Intro to Sass for WordPress DevelopersIntro to Sass for WordPress Developers
Intro to Sass for WordPress Developers
 
Getting SASSy with front end development
Getting SASSy with front end developmentGetting SASSy with front end development
Getting SASSy with front end development
 
The World of Stylesheet Languages
The World of Stylesheet LanguagesThe World of Stylesheet Languages
The World of Stylesheet Languages
 
Sass and Compass short presentation
Sass and Compass short presentationSass and Compass short presentation
Sass and Compass short presentation
 
Sass_Cubet seminar
Sass_Cubet seminarSass_Cubet seminar
Sass_Cubet seminar
 
Yahoo7 Tech Night - SASS
Yahoo7 Tech Night - SASSYahoo7 Tech Night - SASS
Yahoo7 Tech Night - SASS
 
WordCamp NYC - DRY CSS
WordCamp NYC - DRY CSSWordCamp NYC - DRY CSS
WordCamp NYC - DRY CSS
 
The sass way - Yatendra Bhardwaj
The sass way - Yatendra BhardwajThe sass way - Yatendra Bhardwaj
The sass way - Yatendra Bhardwaj
 
LESS(CSS Pre Processor) introduction
LESS(CSS Pre Processor) introductionLESS(CSS Pre Processor) introduction
LESS(CSS Pre Processor) introduction
 

Dernier

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
 
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
 
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
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
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
 
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
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
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
 
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
 
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
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
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
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 

Dernier (20)

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
 
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...
 
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
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
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
 
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
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
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
 
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
 
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...
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
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
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 

Less

  • 2. 오늘은 {less}에 대해 간단히 살펴보고 새 프로젝트를 시작할 때, 거부감없이 사용할 수 있도록…
  • 3. less? The dynamic stylesheet language. ! LESS extends CSS with dynamic behavior such as variables, mixins, operations and functions.! LESS runs on both the server-side (with Node.js and Rhino) or client-side (modern browsers only).
  • 4. less? The dynamic stylesheet language. ! LESS extends CSS with dynamic behavior such as variables, mixins, operations and functions.! LESS runs on both the server-side (with Node.js and Rhino) or client-side (modern browsers only).
  • 5. less? The dynamic stylesheet language. ! LESS extends CSS with dynamic behavior such as variables, mixins, operations and functions.! LESS runs on both the server-side (with Node.js and Rhino) or client-side (modern browsers only).
  • 6. less? The dynamic stylesheet language. ! LESS extends CSS with dynamic behavior such as variables, mixins, operations and functions.! LESS runs on both the server-side (with Node.js and Rhino) or client-side (modern browsers only).
  • 7. less? The dynamic stylesheet language. ! LESS extends CSS with dynamic behavior such as variables, mixins, operations and functions.! LESS runs on both the server-side (with Node.js and Rhino) or client-side (modern browsers only).
  • 8. less? The dynamic stylesheet language. ! LESS extends CSS with dynamic behavior such as variables, mixins, operations and functions.! LESS runs on both the server-side (with Node.js and Rhino) or client-side (modern browsers only).
  • 9. Variables • specify values in a single place, and then re-use them through the stylesheet.! • http://jsbin.com/AYOHIxE/5/edit
  • 10. Scope • When defining a variable twice, the last definition of the variable is used, searching from the current scope upwards.! • http://jsbin.com/AwUhUviw/2/edit
  • 11. Comments • Single-line comments are also valid in LESS, but they are ‘silent’, they don’t show up in the compiled CSS output! • http://jsbin.com/EBomeHoW/1/edit
  • 12. Mixins • embed all the properties of a class into another class.! • http://jsbin.com/uDUWEKo/3/edit
  • 13. Parametric Mixins • LESS has a special type of ruleset which can be mixed in like classes, but accepts parameters.! • http://jsbin.com/uDUWEKo/1/edit
  • 14. !important • Use the !important keyword after mixin call to mark all properties brought by it as !important! • http://jsbin.com/idALUbE/1/edit
  • 15. Nested Rules • nest selectors inside other selectors. This makes inheritance clear and style sheets shorter.! • http://jsbin.com/iKUsiNI/4/edit
  • 16.
  • 18. & combinator • it’s used when you want a nested selector to be concatenated to its parent selector, instead of acting as a descendant. This is especially important for pseudo-classes like :hover and :focus.! • http://jsbin.com/iKUsiNI/3/edit
  • 19. Nested Media Queries • Media queries can be nested in the same way as selectors e.g.! • http://jsbin.com/eMAQOmOC/2/edit
  • 20. Operations • Operations let you add, subtract, divide and multiply property values and colors.! • http://jsbin.com/IVABOGO/2/edit
  • 21. Functions • LESS provides a variety of functions which transform colors, manipulate strings and do maths.! • Color: http://jsbin.com/eBipaMUB/1/edit! • Math: http://jsbin.com/enIsiZig/1/edit
  • 22. Importing • You can import both CSS and LESS files. Only LESS files import statements are processed, CSS file import statements are kept as they are.
  • 23. String interpolation • Variables can be embedded inside strings in a similar way to Ruby or PHP, with the @{name} construct
  • 24. Example • less-elements: https://github.com/dmitryf/elements/ blob/master/elements.less! • less-elements example: https://github.com/ HackerWins/summernote/blob/master/ summernote.less! • CSS Sprites: http://jsbin.com/OluTehe/1/edit
  • 25. vs Sass • Both Sass and LESS are CSS preprocessors, which allow writing clean CSS in a programming construct instead of static rules.[5]! • LESS is inspired by Sass.[6] Sass was designed to both simplify and extend CSS, so things like curly braces were removed from the syntax. LESS was designed to be as close to CSS as possible, so the syntax is identical to existing CSS code. As a result, existing CSS can be used as valid LESS code.! • The newer versions of Sass also introduced a CSS-like syntax called SCSS (Sassy CSS).[2]
  • 26. vs Sass • Both Sass and LESS are CSS preprocessors, which allow writing clean CSS in a programming construct instead of static rules.[5]! • LESS is inspired by Sass.[6] Sass was designed to both simplify and extend CSS, so things like curly braces were removed from the syntax. LESS was designed to be as close to CSS as possible, so the syntax is identical to existing CSS code. As a result, existing CSS can be used as valid LESS code.! • The newer versions of Sass also introduced a CSS-like syntax called SCSS (Sassy CSS).[2]
  • 27. vs Sass • Both Sass and LESS are CSS preprocessors, which allow writing clean CSS in a programming construct instead of static rules.[5]! • LESS is inspired by Sass.[6] Sass was designed to both simplify and extend CSS, so things like curly braces were removed from the syntax. LESS was designed to be as close to CSS as possible, so the syntax is identical to existing CSS code. As a result, existing CSS can be used as valid LESS code.! • The newer versions of Sass also introduced a CSS-like syntax called SCSS (Sassy CSS).[2]
  • 28.
  • 29. vs Sass • Both Sass and LESS are CSS preprocessors, which allow writing clean CSS in a programming construct instead of static rules.[5]! • LESS is inspired by Sass.[6] Sass was designed to both simplify and extend CSS, so things like curly braces were removed from the syntax. LESS was designed to be as close to CSS as possible, so the syntax is identical to existing CSS code. As a result, existing CSS can be used as valid LESS code.! • The newer versions of Sass also introduced a CSS-like syntax called SCSS (Sassy CSS).[2]
  • 30. vs Sass • Both Sass and LESS are CSS preprocessors, which allow writing clean CSS in a programming construct instead of static rules.[5]! • LESS is inspired by Sass.[6] Sass was designed to both simplify and extend CSS, so things like curly braces were removed from the syntax. LESS was designed to be as close to CSS as possible, so the syntax is identical to existing CSS code. As a result, existing CSS can be used as valid LESS code.! • The newer versions of Sass also introduced a CSS-like syntax called SCSS (Sassy CSS).[2]
  • 31.
  • 32. 결국… sass: star (2741), fork (470)! less: star (9582), fork (2034)
  • 33. vs Sass • Both Sass and LESS are CSS preprocessors, which allow writing clean CSS in a programming construct instead of static rules.[5]! • LESS is inspired by Sass.[6] Sass was designed to both simplify and extend CSS, so things like curly braces were removed from the syntax. LESS was designed to be as close to CSS as possible, so the syntax is identical to existing CSS code. As a result, existing CSS can be used as valid LESS code.! • The newer versions of Sass also introduced a CSS-like syntax called SCSS (Sassy CSS).[2]
  • 34. 이미 늦은듯… sass: star (2741), fork (470)! less: star (9582), fork (2034)