SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Downloaden Sie, um offline zu lesen
SASS
(Syntactically Awesome Style Sheet)
Introduction
● Sass is an extension of CSS3, adding nested rules, variables, mixins, selector
inheritance, and more. It’s translated to well-formatted, standard CSS using the
command line tool or a web-framework plugin.
● Sass has two syntaxes. The new main syntax (as of Sass 3) is known as “SCSS” (for
“Sassy CSS”). SCSS files use the extension .scss.
Install Sass
(Applications)
There are a good many applications that will get you up and running with Sass in a few
minutes for Mac, Windows, and Linux. You can download most of the applications for
free but a few of them are paid apps.
CodeKit (Paid)
Compass.app (Paid, Open Source)
Hammer (Paid)
Koala (Open Source)
LiveReload (Paid, Open Source)
Mixture (Free)
Prepros (Paid)
Scout (Open Source)
Install Sass and Compass
‱Sass and Compass get installed as Ruby gems so you'll
need to have Ruby on your machine.
‱If you're on Windows, you can run the Ruby Installer.
On Linux, Rails Ready provides several Ruby essentials.
On OS X, Ruby is already installed by default so Ruby
just works.
Install Sass
‱Open up your Terminal.app and type:
‱Windows:
gem install compass
‱Linux / OS X:
sudo gem install compass
Features
‱Variables
‱Nesting
‱Partials
‱Import
‱Mixins
‱Extend/Inheritance
‱Operators
Variables
SASS SCSS
$font-stack: Helvetica, sans-serif
$primary-color: #333
body
font: 100% $font-stack
color : $primary-color
$font-stack: Helvetica, sans-serif;
$primary-color: #333;
body {
font: 100% $font-stack;
color: $primary-color;
}
CSS
body {
font: 100% Helvetica, sans-serif;
color: #333;
}
Nesting
SASS SCSS
nav
ul
margin: 0
padding: 0
list-style: none
li
display: inline-block
a
display: block
padding: 6px 12px
text-decoration: none
nav {
ul {
margin: 0;
padding: 0;
list-style: none;
}
li {
display: inline-block;
}
a {
display: block;
padding: 6px 12px;
text-decoration: none;
}
}
CSS
nav ul { margin: 0; padding: 0; list-style: none; }
nav li { display: inline-block; }
nav a { display: block; padding: 6px 12px; text-decoration: none; }
ImportSASS SCSS
// _reset.sass
html, body, ul, ol
margin: 0
padding: 0
// base.sass
@import reset
body
font: 100% Helvetica, sans-serif
background-color: #efefef
// _reset.scss
html, body, ul, ol {
margin: 0; padding: 0;
}
/* base.scss */
@import 'reset';
body {
font: 100% Helvetica, sans-serif; background-color:
#efefef;
}
CSS
html, body, ul, ol {
margin: 0; padding: 0;
}
body {
font: 100% Helvetica, sans-serif; background-color: #efefef;
}
MixinsSASS SCSS
=border-radius($radius)
-webkit-border-radius: $radius
-moz-border-radius: $radius
-ms-border-radius: $radius
border-radius: $radius
.box
+border-radius(10px)
@mixin border-radius($radius) {
-webkit-border-radius: $radius;
-moz-border-radius: $radius;
-ms-border-radius: $radius;
border-radius: $radius;
}
.box {
@include border-radius(10px);
}
CSS
.box {
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
-ms-border-radius: 10px;
border-radius: 10px;
}
Extend/InheritanceSASS SCSS
.message
border: 1px solid #ccc
padding: 10px color: #333
.success
@extend .message
border-color: green
.error
@extend .message
border-color: red
.warning
@extend .message
border-color: yellow
.message {
border: 1px solid #ccc; padding: 10px; color: #333;
}
.success {
@extend .message;
border-color: green;
}
.error {
@extend .message;
border-color: red;
}
.warning {
@extend .message;
border-color: yellow;
}
CSS
.message, .success, .error, .warning {
border: 1px solid #cccccc; padding: 10px; color: #333;
}
.success { border-color: green; }
.error { border-color: red; }
.warning { border-color: yellow; }
OperatorsSASS SCSS
.container
width: 100%
article
float: left
width: 600px / 960px * 100%
aside
float: right
width: 300px / 960px * 100%
.container {
width: 100%;
}
article {
float: left;
width: 600px / 960px * 100%;
}
aside {
float: right;
width: 300px / 960px * 100%;
}
CSS
.container {
width: 100%;
}
article { float: left; width: 62.5%; }
aside { float: right; width: 31.25%; }
Breakpoints
@mixin breakpoint($query) {
@media #{$query} { @content; }
}
$small-phone-and-down: "screen and (max-width: " + pxToEm(319) + ")";
$large-phone-and-up: "screen and (min-width: " + pxToEm(400) + ")";
$large-desktop-and-down: "screen and (max-width: #{$width-frame-max})";
body {
@include breakpoint($large-phone-and-up) { font-size: 1.1em; }
}
@include breakpoint($small-phone-and-down) {
.main-menu {
background-color: $color-menu-background;
a {
color: $color-menu-link;
}
}
}
Thank you!

Weitere Àhnliche Inhalte

Was ist angesagt?

Less(CSS Pre Processor) Introduction
Less(CSS Pre Processor) IntroductionLess(CSS Pre Processor) Introduction
Less(CSS Pre Processor) Introductionrushi7567
 
Building Custom WordPress Themes with Sass - WordCamp Sacramento 2016
Building Custom WordPress Themes with Sass - WordCamp Sacramento 2016Building Custom WordPress Themes with Sass - WordCamp Sacramento 2016
Building Custom WordPress Themes with Sass - WordCamp Sacramento 2016Matt Vanderpol
 
Infrastructure as code terraformujeme cloud
Infrastructure as code   terraformujeme cloudInfrastructure as code   terraformujeme cloud
Infrastructure as code terraformujeme cloudViliamPucik
 
Start using less css
Start using less cssStart using less css
Start using less cssAli MasudianPour
 
Less presentation
Less presentationLess presentation
Less presentationTodd Shelton
 

Was ist angesagt? (6)

Less(CSS Pre Processor) Introduction
Less(CSS Pre Processor) IntroductionLess(CSS Pre Processor) Introduction
Less(CSS Pre Processor) Introduction
 
Building Custom WordPress Themes with Sass - WordCamp Sacramento 2016
Building Custom WordPress Themes with Sass - WordCamp Sacramento 2016Building Custom WordPress Themes with Sass - WordCamp Sacramento 2016
Building Custom WordPress Themes with Sass - WordCamp Sacramento 2016
 
Infrastructure as code terraformujeme cloud
Infrastructure as code   terraformujeme cloudInfrastructure as code   terraformujeme cloud
Infrastructure as code terraformujeme cloud
 
Start using less css
Start using less cssStart using less css
Start using less css
 
LESS CSS
LESS CSSLESS CSS
LESS CSS
 
Less presentation
Less presentationLess presentation
Less presentation
 

Andere mochten auch

Pre-procesadores CSS. SASS
Pre-procesadores CSS. SASSPre-procesadores CSS. SASS
Pre-procesadores CSS. SASSMarionaCruz
 
GuĂ­a BĂĄsica de CSS
GuĂ­a BĂĄsica de CSSGuĂ­a BĂĄsica de CSS
GuĂ­a BĂĄsica de CSSMariano Jofre
 
Front End - MaquetaciĂłn xhtml + css
Front End - MaquetaciĂłn xhtml + cssFront End - MaquetaciĂłn xhtml + css
Front End - MaquetaciĂłn xhtml + csszara hormazabal
 
IntroducciĂłn a HTML y CSS
IntroducciĂłn a HTML y CSSIntroducciĂłn a HTML y CSS
IntroducciĂłn a HTML y CSSAdriana Tienda
 
CSS - ÂżCĂłmo agregar estilos a mi pĂĄgina?
CSS - ÂżCĂłmo agregar estilos a mi pĂĄgina?CSS - ÂżCĂłmo agregar estilos a mi pĂĄgina?
CSS - ÂżCĂłmo agregar estilos a mi pĂĄgina?Harold Maduro
 
Fanzine 3 - Colectivo Miles de Voces
Fanzine 3 - Colectivo Miles de VocesFanzine 3 - Colectivo Miles de Voces
Fanzine 3 - Colectivo Miles de Vocesmilesdevoces
 
Tips para el plan de negocios - Parte 1
Tips para el plan de negocios - Parte 1Tips para el plan de negocios - Parte 1
Tips para el plan de negocios - Parte 1Maria Laura Cuya
 
Free Library Briefing
Free Library Briefing Free Library Briefing
Free Library Briefing free_library
 
珏0曞ワă‚čă‚čタ!! #wasbookをèȘ­ă‚‚う
珏0曞ワă‚čă‚čタ!! #wasbookをèȘ­ă‚‚う珏0曞ワă‚čă‚čタ!! #wasbookをèȘ­ă‚‚う
珏0曞ワă‚čă‚čタ!! #wasbookをèȘ­ă‚‚うTatsuya Tobioka
 
ĐżŃ€Đ”Đ·Đ”ĐœŃ‚Đ°Ń†ĐžŃ ĐżĐ»Đ°ĐœĐ”Ń‚Đ°
ĐżŃ€Đ”Đ·Đ”ĐœŃ‚Đ°Ń†ĐžŃ ĐżĐ»Đ°ĐœĐ”Ń‚Đ°ĐżŃ€Đ”Đ·Đ”ĐœŃ‚Đ°Ń†ĐžŃ ĐżĐ»Đ°ĐœĐ”Ń‚Đ°
ĐżŃ€Đ”Đ·Đ”ĐœŃ‚Đ°Ń†ĐžŃ ĐżĐ»Đ°ĐœĐ”Ń‚Đ°Anastasya Voukkert
 
Email marketing
Email marketingEmail marketing
Email marketingmaosongppt
 
LISTADO ALUMNOS - 1250903 C
LISTADO ALUMNOS - 1250903 CLISTADO ALUMNOS - 1250903 C
LISTADO ALUMNOS - 1250903 CIvan Villamizar
 

Andere mochten auch (20)

Pre-procesadores CSS. SASS
Pre-procesadores CSS. SASSPre-procesadores CSS. SASS
Pre-procesadores CSS. SASS
 
CSS
CSSCSS
CSS
 
Css
CssCss
Css
 
GuĂ­a BĂĄsica de CSS
GuĂ­a BĂĄsica de CSSGuĂ­a BĂĄsica de CSS
GuĂ­a BĂĄsica de CSS
 
Introduccion a CSS I
Introduccion a CSS IIntroduccion a CSS I
Introduccion a CSS I
 
Html css
Html cssHtml css
Html css
 
Front End - MaquetaciĂłn xhtml + css
Front End - MaquetaciĂłn xhtml + cssFront End - MaquetaciĂłn xhtml + css
Front End - MaquetaciĂłn xhtml + css
 
IntroducciĂłn a HTML y CSS
IntroducciĂłn a HTML y CSSIntroducciĂłn a HTML y CSS
IntroducciĂłn a HTML y CSS
 
CSS - ÂżCĂłmo agregar estilos a mi pĂĄgina?
CSS - ÂżCĂłmo agregar estilos a mi pĂĄgina?CSS - ÂżCĂłmo agregar estilos a mi pĂĄgina?
CSS - ÂżCĂłmo agregar estilos a mi pĂĄgina?
 
Mer dfd
Mer dfdMer dfd
Mer dfd
 
Fanzine 3 - Colectivo Miles de Voces
Fanzine 3 - Colectivo Miles de VocesFanzine 3 - Colectivo Miles de Voces
Fanzine 3 - Colectivo Miles de Voces
 
Android - Day 1
Android - Day 1Android - Day 1
Android - Day 1
 
Tips para el plan de negocios - Parte 1
Tips para el plan de negocios - Parte 1Tips para el plan de negocios - Parte 1
Tips para el plan de negocios - Parte 1
 
Free Library Briefing
Free Library Briefing Free Library Briefing
Free Library Briefing
 
Taller 13
Taller 13Taller 13
Taller 13
 
Dereccho
DerecchoDereccho
Dereccho
 
珏0曞ワă‚čă‚čタ!! #wasbookをèȘ­ă‚‚う
珏0曞ワă‚čă‚čタ!! #wasbookをèȘ­ă‚‚う珏0曞ワă‚čă‚čタ!! #wasbookをèȘ­ă‚‚う
珏0曞ワă‚čă‚čタ!! #wasbookをèȘ­ă‚‚う
 
ĐżŃ€Đ”Đ·Đ”ĐœŃ‚Đ°Ń†ĐžŃ ĐżĐ»Đ°ĐœĐ”Ń‚Đ°
ĐżŃ€Đ”Đ·Đ”ĐœŃ‚Đ°Ń†ĐžŃ ĐżĐ»Đ°ĐœĐ”Ń‚Đ°ĐżŃ€Đ”Đ·Đ”ĐœŃ‚Đ°Ń†ĐžŃ ĐżĐ»Đ°ĐœĐ”Ń‚Đ°
ĐżŃ€Đ”Đ·Đ”ĐœŃ‚Đ°Ń†ĐžŃ ĐżĐ»Đ°ĐœĐ”Ń‚Đ°
 
Email marketing
Email marketingEmail marketing
Email marketing
 
LISTADO ALUMNOS - 1250903 C
LISTADO ALUMNOS - 1250903 CLISTADO ALUMNOS - 1250903 C
LISTADO ALUMNOS - 1250903 C
 

Ähnlich wie SASS Preprocessor

SASS, Compass, Gulp, Greensock
SASS, Compass, Gulp, GreensockSASS, Compass, Gulp, Greensock
SASS, Compass, Gulp, GreensockMarco Pinheiro
 
CSS é–‹ç™ŒćŠ é€ŸæŒ‡ć—ïŒSass & Compass
CSS é–‹ç™ŒćŠ é€ŸæŒ‡ć—ïŒSass & CompassCSS é–‹ç™ŒćŠ é€ŸæŒ‡ć—ïŒSass & Compass
CSS é–‹ç™ŒćŠ é€ŸæŒ‡ć—ïŒSass & CompassLucien Lee
 
UNIT 3.ppt
UNIT 3.pptUNIT 3.ppt
UNIT 3.pptkavi806657
 
Simple introduction Sass
Simple introduction SassSimple introduction Sass
Simple introduction SassZeeshan Ahmed
 
Modularization css with sass
Modularization css with sassModularization css with sass
Modularization css with sassHuiyi Yan
 
Fasten RWD Development with Sass
Fasten RWD Development with SassFasten RWD Development with Sass
Fasten RWD Development with SassSven Wolfermann
 
Using Sass - Building on CSS
Using Sass - Building on CSSUsing Sass - Building on CSS
Using Sass - Building on CSSSayanee Basu
 
LESS : The dynamic stylesheet language
LESS : The dynamic stylesheet languageLESS : The dynamic stylesheet language
LESS : The dynamic stylesheet languageKatsunori Tanaka
 
An Introduction to CSS Preprocessors (SASS & LESS)
An Introduction to CSS Preprocessors (SASS & LESS)An Introduction to CSS Preprocessors (SASS & LESS)
An Introduction to CSS Preprocessors (SASS & LESS)Folio3 Software
 
SASS is more than LESS
SASS is more than LESSSASS is more than LESS
SASS is more than LESSItai Koren
 
SASS Lecture
SASS Lecture SASS Lecture
SASS Lecture Adnan Arshad
 
Sass & Compass (Barcamp Stuttgart 2012)
Sass & Compass (Barcamp Stuttgart 2012)Sass & Compass (Barcamp Stuttgart 2012)
Sass & Compass (Barcamp Stuttgart 2012)emrox
 
Syntactically Awesome Stylesheet - A workshop by Citytech Software
Syntactically Awesome Stylesheet - A workshop by Citytech SoftwareSyntactically Awesome Stylesheet - A workshop by Citytech Software
Syntactically Awesome Stylesheet - A workshop by Citytech SoftwareRitwik Das
 
Sass:-Syntactically Awesome Stylesheet by Shafeeq
Sass:-Syntactically Awesome Stylesheet by ShafeeqSass:-Syntactically Awesome Stylesheet by Shafeeq
Sass:-Syntactically Awesome Stylesheet by ShafeeqDignitasDigital1
 
SCSS Implementation
SCSS ImplementationSCSS Implementation
SCSS ImplementationAmey Parab
 
Bliblidotcom - SASS Introduction
Bliblidotcom - SASS IntroductionBliblidotcom - SASS Introduction
Bliblidotcom - SASS IntroductionIrfan Maulana
 
Authoring Stylesheets with Compass & Sass
Authoring Stylesheets with Compass & SassAuthoring Stylesheets with Compass & Sass
Authoring Stylesheets with Compass & Sasschriseppstein
 
Preprocessor presentation
Preprocessor presentationPreprocessor presentation
Preprocessor presentationMario Noble
 

Ähnlich wie SASS Preprocessor (20)

SASS, Compass, Gulp, Greensock
SASS, Compass, Gulp, GreensockSASS, Compass, Gulp, Greensock
SASS, Compass, Gulp, Greensock
 
CSS é–‹ç™ŒćŠ é€ŸæŒ‡ć—ïŒSass & Compass
CSS é–‹ç™ŒćŠ é€ŸæŒ‡ć—ïŒSass & CompassCSS é–‹ç™ŒćŠ é€ŸæŒ‡ć—ïŒSass & Compass
CSS é–‹ç™ŒćŠ é€ŸæŒ‡ć—ïŒSass & Compass
 
CSS3
CSS3CSS3
CSS3
 
UNIT 3.ppt
UNIT 3.pptUNIT 3.ppt
UNIT 3.ppt
 
Simple introduction Sass
Simple introduction SassSimple introduction Sass
Simple introduction Sass
 
Modularization css with sass
Modularization css with sassModularization css with sass
Modularization css with sass
 
Fasten RWD Development with Sass
Fasten RWD Development with SassFasten RWD Development with Sass
Fasten RWD Development with Sass
 
Using Sass - Building on CSS
Using Sass - Building on CSSUsing Sass - Building on CSS
Using Sass - Building on CSS
 
LESS : The dynamic stylesheet language
LESS : The dynamic stylesheet languageLESS : The dynamic stylesheet language
LESS : The dynamic stylesheet language
 
An Introduction to CSS Preprocessors (SASS & LESS)
An Introduction to CSS Preprocessors (SASS & LESS)An Introduction to CSS Preprocessors (SASS & LESS)
An Introduction to CSS Preprocessors (SASS & LESS)
 
SASS is more than LESS
SASS is more than LESSSASS is more than LESS
SASS is more than LESS
 
SASS Lecture
SASS Lecture SASS Lecture
SASS Lecture
 
Sass & Compass (Barcamp Stuttgart 2012)
Sass & Compass (Barcamp Stuttgart 2012)Sass & Compass (Barcamp Stuttgart 2012)
Sass & Compass (Barcamp Stuttgart 2012)
 
Syntactically Awesome Stylesheet - A workshop by Citytech Software
Syntactically Awesome Stylesheet - A workshop by Citytech SoftwareSyntactically Awesome Stylesheet - A workshop by Citytech Software
Syntactically Awesome Stylesheet - A workshop by Citytech Software
 
Sass:-Syntactically Awesome Stylesheet by Shafeeq
Sass:-Syntactically Awesome Stylesheet by ShafeeqSass:-Syntactically Awesome Stylesheet by Shafeeq
Sass:-Syntactically Awesome Stylesheet by Shafeeq
 
SCSS Implementation
SCSS ImplementationSCSS Implementation
SCSS Implementation
 
Bliblidotcom - SASS Introduction
Bliblidotcom - SASS IntroductionBliblidotcom - SASS Introduction
Bliblidotcom - SASS Introduction
 
Sass_Cubet seminar
Sass_Cubet seminarSass_Cubet seminar
Sass_Cubet seminar
 
Authoring Stylesheets with Compass & Sass
Authoring Stylesheets with Compass & SassAuthoring Stylesheets with Compass & Sass
Authoring Stylesheets with Compass & Sass
 
Preprocessor presentation
Preprocessor presentationPreprocessor presentation
Preprocessor presentation
 

Mehr von Webkul Software Pvt. Ltd.

Magento 2 marketplace flutterwave payment
 Magento 2 marketplace flutterwave payment  Magento 2 marketplace flutterwave payment
Magento 2 marketplace flutterwave payment Webkul Software Pvt. Ltd.
 
Magento 2 Geo-Location Currency Converter
Magento 2 Geo-Location Currency ConverterMagento 2 Geo-Location Currency Converter
Magento 2 Geo-Location Currency ConverterWebkul Software Pvt. Ltd.
 
Magento 2 Food Delivery Multi-Vendor Marketplace Plugin
Magento 2 Food Delivery Multi-Vendor Marketplace PluginMagento 2 Food Delivery Multi-Vendor Marketplace Plugin
Magento 2 Food Delivery Multi-Vendor Marketplace PluginWebkul Software Pvt. Ltd.
 
Magento 2 Marketplace Delivery Time Slot
Magento 2 Marketplace Delivery Time SlotMagento 2 Marketplace Delivery Time Slot
Magento 2 Marketplace Delivery Time SlotWebkul Software Pvt. Ltd.
 
Custom Registration Fields for Magento 2
Custom Registration Fields for Magento 2Custom Registration Fields for Magento 2
Custom Registration Fields for Magento 2Webkul Software Pvt. Ltd.
 
OpenCart Booking & Reservation Via QR Code Pugin
OpenCart Booking & Reservation Via QR Code PuginOpenCart Booking & Reservation Via QR Code Pugin
OpenCart Booking & Reservation Via QR Code PuginWebkul Software Pvt. Ltd.
 

Mehr von Webkul Software Pvt. Ltd. (20)

Quick Product Edit for Magento 2
Quick Product Edit for Magento 2Quick Product Edit for Magento 2
Quick Product Edit for Magento 2
 
Language translator for magento 2
Language translator for magento 2Language translator for magento 2
Language translator for magento 2
 
Magento 2 marketplace flutterwave payment
 Magento 2 marketplace flutterwave payment  Magento 2 marketplace flutterwave payment
Magento 2 marketplace flutterwave payment
 
OpenCart Ebay Connector Plugin
OpenCart Ebay Connector PluginOpenCart Ebay Connector Plugin
OpenCart Ebay Connector Plugin
 
Magento 2 Geo-Location Currency Converter
Magento 2 Geo-Location Currency ConverterMagento 2 Geo-Location Currency Converter
Magento 2 Geo-Location Currency Converter
 
Etsy Connector for Magento 2
Etsy Connector for Magento 2Etsy Connector for Magento 2
Etsy Connector for Magento 2
 
Opencart Slack Commerce Plugin
Opencart Slack Commerce PluginOpencart Slack Commerce Plugin
Opencart Slack Commerce Plugin
 
Magento 2 Food Delivery Multi-Vendor Marketplace Plugin
Magento 2 Food Delivery Multi-Vendor Marketplace PluginMagento 2 Food Delivery Multi-Vendor Marketplace Plugin
Magento 2 Food Delivery Multi-Vendor Marketplace Plugin
 
Magento2 image gallery
Magento2 image galleryMagento2 image gallery
Magento2 image gallery
 
Importance of Fashion Marketplace
Importance of Fashion MarketplaceImportance of Fashion Marketplace
Importance of Fashion Marketplace
 
Wallet System for Magento 2
Wallet System for Magento 2Wallet System for Magento 2
Wallet System for Magento 2
 
Magento 2 Marketplace Delivery Time Slot
Magento 2 Marketplace Delivery Time SlotMagento 2 Marketplace Delivery Time Slot
Magento 2 Marketplace Delivery Time Slot
 
Custom Registration Fields for Magento 2
Custom Registration Fields for Magento 2Custom Registration Fields for Magento 2
Custom Registration Fields for Magento 2
 
Magento 2 Order Comment
Magento 2 Order CommentMagento 2 Order Comment
Magento 2 Order Comment
 
Opencart canada post shipping webkul
Opencart canada post shipping   webkulOpencart canada post shipping   webkul
Opencart canada post shipping webkul
 
Show Price After Login for Magento 2
Show Price After Login for Magento 2Show Price After Login for Magento 2
Show Price After Login for Magento 2
 
Shopify Connector for WooCommerce
Shopify Connector for WooCommerceShopify Connector for WooCommerce
Shopify Connector for WooCommerce
 
OpenCart Booking & Reservation Via QR Code Pugin
OpenCart Booking & Reservation Via QR Code PuginOpenCart Booking & Reservation Via QR Code Pugin
OpenCart Booking & Reservation Via QR Code Pugin
 
Age Verification for Magento 2
Age Verification for Magento 2Age Verification for Magento 2
Age Verification for Magento 2
 
VirtueMart Akeneo Connector
VirtueMart Akeneo ConnectorVirtueMart Akeneo Connector
VirtueMart Akeneo Connector
 

KĂŒrzlich hochgeladen

Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel AraĂșjo
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 

KĂŒrzlich hochgeladen (20)

Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 

SASS Preprocessor

  • 2. Introduction ● Sass is an extension of CSS3, adding nested rules, variables, mixins, selector inheritance, and more. It’s translated to well-formatted, standard CSS using the command line tool or a web-framework plugin. ● Sass has two syntaxes. The new main syntax (as of Sass 3) is known as “SCSS” (for “Sassy CSS”). SCSS files use the extension .scss.
  • 3. Install Sass (Applications) There are a good many applications that will get you up and running with Sass in a few minutes for Mac, Windows, and Linux. You can download most of the applications for free but a few of them are paid apps. CodeKit (Paid) Compass.app (Paid, Open Source) Hammer (Paid) Koala (Open Source) LiveReload (Paid, Open Source) Mixture (Free) Prepros (Paid) Scout (Open Source)
  • 4. Install Sass and Compass ‱Sass and Compass get installed as Ruby gems so you'll need to have Ruby on your machine. ‱If you're on Windows, you can run the Ruby Installer. On Linux, Rails Ready provides several Ruby essentials. On OS X, Ruby is already installed by default so Ruby just works.
  • 5. Install Sass ‱Open up your Terminal.app and type: ‱Windows: gem install compass ‱Linux / OS X: sudo gem install compass
  • 7. Variables SASS SCSS $font-stack: Helvetica, sans-serif $primary-color: #333 body font: 100% $font-stack color : $primary-color $font-stack: Helvetica, sans-serif; $primary-color: #333; body { font: 100% $font-stack; color: $primary-color; } CSS body { font: 100% Helvetica, sans-serif; color: #333; }
  • 8. Nesting SASS SCSS nav ul margin: 0 padding: 0 list-style: none li display: inline-block a display: block padding: 6px 12px text-decoration: none nav { ul { margin: 0; padding: 0; list-style: none; } li { display: inline-block; } a { display: block; padding: 6px 12px; text-decoration: none; } } CSS nav ul { margin: 0; padding: 0; list-style: none; } nav li { display: inline-block; } nav a { display: block; padding: 6px 12px; text-decoration: none; }
  • 9. ImportSASS SCSS // _reset.sass html, body, ul, ol margin: 0 padding: 0 // base.sass @import reset body font: 100% Helvetica, sans-serif background-color: #efefef // _reset.scss html, body, ul, ol { margin: 0; padding: 0; } /* base.scss */ @import 'reset'; body { font: 100% Helvetica, sans-serif; background-color: #efefef; } CSS html, body, ul, ol { margin: 0; padding: 0; } body { font: 100% Helvetica, sans-serif; background-color: #efefef; }
  • 10. MixinsSASS SCSS =border-radius($radius) -webkit-border-radius: $radius -moz-border-radius: $radius -ms-border-radius: $radius border-radius: $radius .box +border-radius(10px) @mixin border-radius($radius) { -webkit-border-radius: $radius; -moz-border-radius: $radius; -ms-border-radius: $radius; border-radius: $radius; } .box { @include border-radius(10px); } CSS .box { -webkit-border-radius: 10px; -moz-border-radius: 10px; -ms-border-radius: 10px; border-radius: 10px; }
  • 11. Extend/InheritanceSASS SCSS .message border: 1px solid #ccc padding: 10px color: #333 .success @extend .message border-color: green .error @extend .message border-color: red .warning @extend .message border-color: yellow .message { border: 1px solid #ccc; padding: 10px; color: #333; } .success { @extend .message; border-color: green; } .error { @extend .message; border-color: red; } .warning { @extend .message; border-color: yellow; } CSS .message, .success, .error, .warning { border: 1px solid #cccccc; padding: 10px; color: #333; } .success { border-color: green; } .error { border-color: red; } .warning { border-color: yellow; }
  • 12. OperatorsSASS SCSS .container width: 100% article float: left width: 600px / 960px * 100% aside float: right width: 300px / 960px * 100% .container { width: 100%; } article { float: left; width: 600px / 960px * 100%; } aside { float: right; width: 300px / 960px * 100%; } CSS .container { width: 100%; } article { float: left; width: 62.5%; } aside { float: right; width: 31.25%; }
  • 13. Breakpoints @mixin breakpoint($query) { @media #{$query} { @content; } } $small-phone-and-down: "screen and (max-width: " + pxToEm(319) + ")"; $large-phone-and-up: "screen and (min-width: " + pxToEm(400) + ")"; $large-desktop-and-down: "screen and (max-width: #{$width-frame-max})"; body { @include breakpoint($large-phone-and-up) { font-size: 1.1em; } } @include breakpoint($small-phone-and-down) { .main-menu { background-color: $color-menu-background; a { color: $color-menu-link; } } }