SlideShare a Scribd company logo
1 of 30
Building on CSS
www. sayan.ee
 code . explorer . speaker
code is poetry
code is poetry
 fast   flexible   fun
meta languages




.css        .sass       .scss
meta languages




   .css                  .sass                  .scss

.border
{         .border                .border{


padding:
8px;   

padding:
$margin/2   

padding:
$margin/2;


margin:
8px;    

margin:
$margin/2    

margin:
$margin/2;
}                                        }
install



           pre-installed   ruby installer   pre-installed
  ruby




                             download
rubygems
install



           pre-installed   ruby installer   pre-installed
  ruby




                             download
rubygems



                              gem
install
sass
$
cd
stylesheet‐folder‐or‐path

$
mv
style.css
style.scss


$
sass
‐‐watch
style.scss:style.css
code is poetry
 fast   flexible   fun
:before


          133 lines of code

          25 lines of repeated code

          no code indentation
fast
nesting parenting operations
nesting
               .css                              .scss

 header{                        header{
   width:100%;                   width:100%;
   clear:both;                   clear:both;
   margin: 10px auto;            margin: 10px auto;
   background-color: #ABDAD4;    background-color: #ABDAD4;
 }
                                    h1{
 header h1{                           text-align: center;
   text-align: center;                line-height:100px;
   line-height:100px;                 color:#007674;
   color:#007674;                   }
 }                              }
parenting for pseudo-classes
                   .css                             .scss

 li{                                li{
    float:left;                         float:left;
    margin:30px;                       margin:30px;
 }
                                        &:nth-child(odd) {
 li:nth-child(odd) {                      -webkit-transform: scale(0.7);
   -webkit-transform: scale(0.7);         -moz-transform: scale(0.7);
   -moz-transform: scale(0.7);          }
 }                                  }
operations: + - / * %
                 .css                   .scss


 .main{                 $length:100%;
   width:100%;
 }                      .main{
                          width: $length;
 .sidebar{              }
    width:30%;
 }                      .sidebar{
                           width:$length*0.3;
                        }
flexible
variables mixin import
variables
               .css                             .scss
 .main{                          $darkcolor:#007674;
   background-color: #ABDAD4;    $lightcolor:#ABDAD4;
 }
                                 .main{
 .main h1{                         background-color: $lightcolor;
   color: #007674;                 h1{
 }                                 color: $darkcolor;
                                   }
 .sidebar{                       }
    background-color: #ABDAD4;
 }                               .sidebar{
                                    background-color: $lightcolor;
 .sidebar h2{                       h2{
    color: #007674;                 color: $darkcolor;
 }                                  }
                                 }
mixin
             .css                              .scss

header{                          @mixin rounded($radius){
  -webkit-border-radius: 10px;     -webkit-border-radius: $radius;
  -moz-border-radius: 10px;        -moz-border-radius: $radius;
  border-radius: 10px;             border-radius: $radius;
}                                }

                                 header{
                                   @include rounded(10px);
                                 }
import
                    .css                                 .scss

#navbar li {                          /* _rounded.scss */
 border-top-radius: 10px;
 -moz-border-radius-top: 10px;        @mixin rounded($side, $radius: 10px) {
 -webkit-border-top-radius: 10px; }     border-#{$side}-radius: $radius;
                                        -moz-border-radius-#{$side}: $radius;
#footer {                               -webkit-border-#{$side}-radius: $radius;
 border-top-radius: 5px;              }
 -moz-border-radius-top: 5px;
 -webkit-border-top-radius: 5px; }
                                      /* style.scss */
#sidebar {
 border-left-radius: 8px;             @import "rounded";
 -moz-border-radius-left: 8px;
 -webkit-border-left-radius: 8px; }   #navbar li { @include rounded(top); }
                                      #footer { @include rounded(top, 5px); }
                                      #sidebar { @include rounded(left, 8px); }
fun
checking extensions compatibility
checking




     change detection
      error messages
        creating
checking




     change detection
      error messages
        creating
extensions
compatibility


                    .scss



                             .css




       every valid CSS3 stylesheet is valid SCSS
compatibility




           .scss                                  .css




     pass on just the created .css file to any developer
:before                      :after
133 lines of code           110 lines of code

25 lines of repeated code   0 lines of repeated code

no code indentation         .css automatic code indentation

                            .css file for future development

                            _partial.scss for future code reuse

                            faster code changes with dynamism

                            .scss compatible with .css codes
Resources - Install         Resources - Sass
1. gem install sass         1.   sass website
2. windows ruby installer   2.   online editor
3. install rubygems         3.   tutorial
                            4.   documentation
                            5.   compass with sass
                            6.   the sass way - latest buzz
                            7.   python compiler for scss

                            Resources - Less css
                            1.   less css framework
                            2.   scss vs. less wrangl
                            3.   sass/less comparison
                            4.   wrangl sass vs less
Q?
@sayanee_
 slides + codes

More Related Content

What's hot

Sass - Making CSS fun again.
Sass - Making CSS fun again.Sass - Making CSS fun again.
Sass - Making CSS fun again.Gabriel Neutzling
 
Rapid Prototyping
Rapid PrototypingRapid Prototyping
Rapid PrototypingEven Wu
 
Finding your way with Sass+Compass
Finding your way with Sass+CompassFinding your way with Sass+Compass
Finding your way with Sass+Compassdrywallbmb
 
Implementing Awesome: An HTML5/CSS3 Workshop
Implementing Awesome: An HTML5/CSS3 WorkshopImplementing Awesome: An HTML5/CSS3 Workshop
Implementing Awesome: An HTML5/CSS3 WorkshopShoshi Roberts
 
Pacific Northwest Drupal Summit: Basic & SASS
Pacific Northwest Drupal Summit: Basic & SASSPacific Northwest Drupal Summit: Basic & SASS
Pacific Northwest Drupal Summit: Basic & SASSSteve Krueger
 
Wrangling the CSS Beast with Sass
Wrangling the CSS Beast  with SassWrangling the CSS Beast  with Sass
Wrangling the CSS Beast with SassRob Friesel
 
CSSプリプロセッサの取扱説明書
CSSプリプロセッサの取扱説明書CSSプリプロセッサの取扱説明書
CSSプリプロセッサの取扱説明書拓樹 谷
 
Auto tools
Auto toolsAuto tools
Auto tools祺 周
 
Sassive Aggressive: Using Sass to Make Your Life Easier (NSWG Version)
Sassive Aggressive: Using Sass to Make Your Life Easier (NSWG Version)Sassive Aggressive: Using Sass to Make Your Life Easier (NSWG Version)
Sassive Aggressive: Using Sass to Make Your Life Easier (NSWG Version)Adam Darowski
 
HTML5 and CSS3 – exploring mobile possibilities - Dynabyte event
HTML5 and CSS3 – exploring mobile possibilities - Dynabyte eventHTML5 and CSS3 – exploring mobile possibilities - Dynabyte event
HTML5 and CSS3 – exploring mobile possibilities - Dynabyte eventRobert Nyman
 
JS.Chi CSS Animations
JS.Chi CSS AnimationsJS.Chi CSS Animations
JS.Chi CSS AnimationsJustin Meyer
 
CSS'in Gücü Adına
CSS'in Gücü AdınaCSS'in Gücü Adına
CSS'in Gücü AdınaAdem Ilter
 
DBIx::Skinnyと仲間たち
DBIx::Skinnyと仲間たちDBIx::Skinnyと仲間たち
DBIx::Skinnyと仲間たちRyo Miyake
 

What's hot (18)

Css frameworks
Css frameworksCss frameworks
Css frameworks
 
Sass - Making CSS fun again.
Sass - Making CSS fun again.Sass - Making CSS fun again.
Sass - Making CSS fun again.
 
Rapid Prototyping
Rapid PrototypingRapid Prototyping
Rapid Prototyping
 
Finding your way with Sass+Compass
Finding your way with Sass+CompassFinding your way with Sass+Compass
Finding your way with Sass+Compass
 
Implementing Awesome: An HTML5/CSS3 Workshop
Implementing Awesome: An HTML5/CSS3 WorkshopImplementing Awesome: An HTML5/CSS3 Workshop
Implementing Awesome: An HTML5/CSS3 Workshop
 
Pacific Northwest Drupal Summit: Basic & SASS
Pacific Northwest Drupal Summit: Basic & SASSPacific Northwest Drupal Summit: Basic & SASS
Pacific Northwest Drupal Summit: Basic & SASS
 
CSS and Layout
CSS and LayoutCSS and Layout
CSS and Layout
 
Sass presentation
Sass presentationSass presentation
Sass presentation
 
Wrangling the CSS Beast with Sass
Wrangling the CSS Beast  with SassWrangling the CSS Beast  with Sass
Wrangling the CSS Beast with Sass
 
CSSプリプロセッサの取扱説明書
CSSプリプロセッサの取扱説明書CSSプリプロセッサの取扱説明書
CSSプリプロセッサの取扱説明書
 
Auto tools
Auto toolsAuto tools
Auto tools
 
Sassive Aggressive: Using Sass to Make Your Life Easier (NSWG Version)
Sassive Aggressive: Using Sass to Make Your Life Easier (NSWG Version)Sassive Aggressive: Using Sass to Make Your Life Easier (NSWG Version)
Sassive Aggressive: Using Sass to Make Your Life Easier (NSWG Version)
 
HTML5 and CSS3 – exploring mobile possibilities - Dynabyte event
HTML5 and CSS3 – exploring mobile possibilities - Dynabyte eventHTML5 and CSS3 – exploring mobile possibilities - Dynabyte event
HTML5 and CSS3 – exploring mobile possibilities - Dynabyte event
 
JS.Chi CSS Animations
JS.Chi CSS AnimationsJS.Chi CSS Animations
JS.Chi CSS Animations
 
Cracking for the Blue Team
Cracking for the Blue TeamCracking for the Blue Team
Cracking for the Blue Team
 
CSS Box Model
CSS Box ModelCSS Box Model
CSS Box Model
 
CSS'in Gücü Adına
CSS'in Gücü AdınaCSS'in Gücü Adına
CSS'in Gücü Adına
 
DBIx::Skinnyと仲間たち
DBIx::Skinnyと仲間たちDBIx::Skinnyと仲間たち
DBIx::Skinnyと仲間たち
 

Viewers also liked

My Adventures in Slovenia, Croatia, Serbia and Hungary
My Adventures in Slovenia, Croatia, Serbia and HungaryMy Adventures in Slovenia, Croatia, Serbia and Hungary
My Adventures in Slovenia, Croatia, Serbia and HungarySayanee Basu
 
Web Frameworks for 6 year olds
Web Frameworks for 6 year oldsWeb Frameworks for 6 year olds
Web Frameworks for 6 year oldsSayanee Basu
 
Creating Art with Codes - CSS3
Creating Art with Codes - CSS3Creating Art with Codes - CSS3
Creating Art with Codes - CSS3Sayanee Basu
 
RaspberryPI + Google Coder
RaspberryPI + Google CoderRaspberryPI + Google Coder
RaspberryPI + Google CoderSayanee Basu
 
Evolution of Programming Languages
Evolution of Programming LanguagesEvolution of Programming Languages
Evolution of Programming LanguagesSayanee Basu
 
Арматура
АрматураАрматура
Арматураifranz74
 

Viewers also liked (7)

My Adventures in Slovenia, Croatia, Serbia and Hungary
My Adventures in Slovenia, Croatia, Serbia and HungaryMy Adventures in Slovenia, Croatia, Serbia and Hungary
My Adventures in Slovenia, Croatia, Serbia and Hungary
 
Cinemagraph
CinemagraphCinemagraph
Cinemagraph
 
Web Frameworks for 6 year olds
Web Frameworks for 6 year oldsWeb Frameworks for 6 year olds
Web Frameworks for 6 year olds
 
Creating Art with Codes - CSS3
Creating Art with Codes - CSS3Creating Art with Codes - CSS3
Creating Art with Codes - CSS3
 
RaspberryPI + Google Coder
RaspberryPI + Google CoderRaspberryPI + Google Coder
RaspberryPI + Google Coder
 
Evolution of Programming Languages
Evolution of Programming LanguagesEvolution of Programming Languages
Evolution of Programming Languages
 
Арматура
АрматураАрматура
Арматура
 

Similar to Using Sass - Building on CSS

SASS, Compass, Gulp, Greensock
SASS, Compass, Gulp, GreensockSASS, Compass, Gulp, Greensock
SASS, Compass, Gulp, GreensockMarco Pinheiro
 
Sass & Compass (Barcamp Stuttgart 2012)
Sass & Compass (Barcamp Stuttgart 2012)Sass & Compass (Barcamp Stuttgart 2012)
Sass & Compass (Barcamp Stuttgart 2012)emrox
 
Sass and Compass - Getting Started
Sass and Compass - Getting StartedSass and Compass - Getting Started
Sass and Compass - Getting Startededgincvg
 
Getting Started with Sass & Compass
Getting Started with Sass & CompassGetting Started with Sass & Compass
Getting Started with Sass & CompassRob Davarnia
 
Learn Sass and Compass quick
Learn Sass and Compass quickLearn Sass and Compass quick
Learn Sass and Compass quickBilly Shih
 
Managing responsive websites with css preprocessors.
Managing responsive websites with css preprocessors. Managing responsive websites with css preprocessors.
Managing responsive websites with css preprocessors. The University of Akron
 
Joan Leon | Houdini, programando en CSS | Codemotion Madrid 2018
Joan Leon | Houdini, programando en CSS | Codemotion Madrid 2018Joan Leon | Houdini, programando en CSS | Codemotion Madrid 2018
Joan Leon | Houdini, programando en CSS | Codemotion Madrid 2018Codemotion
 
CSS3 is Not Magic Pixie Dust
CSS3 is Not Magic Pixie DustCSS3 is Not Magic Pixie Dust
CSS3 is Not Magic Pixie DustKyle Adams
 
LESS : The dynamic stylesheet language
LESS : The dynamic stylesheet languageLESS : The dynamic stylesheet language
LESS : The dynamic stylesheet languageKatsunori Tanaka
 
HTML&CSS 5 - Intermediate CSS (2/2)
HTML&CSS 5 - Intermediate CSS (2/2)HTML&CSS 5 - Intermediate CSS (2/2)
HTML&CSS 5 - Intermediate CSS (2/2)Dinis Correia
 
Preprocessor presentation
Preprocessor presentationPreprocessor presentation
Preprocessor presentationMario Noble
 
Modularization css with sass
Modularization css with sassModularization css with sass
Modularization css with sassHuiyi Yan
 
Work and play with SASS & Compass
Work and play with SASS & CompassWork and play with SASS & Compass
Work and play with SASS & CompassAndreas Dantz
 

Similar to Using Sass - Building on CSS (20)

SASS, Compass, Gulp, Greensock
SASS, Compass, Gulp, GreensockSASS, Compass, Gulp, Greensock
SASS, Compass, Gulp, Greensock
 
Sass & Compass (Barcamp Stuttgart 2012)
Sass & Compass (Barcamp Stuttgart 2012)Sass & Compass (Barcamp Stuttgart 2012)
Sass & Compass (Barcamp Stuttgart 2012)
 
Sass and Compass - Getting Started
Sass and Compass - Getting StartedSass and Compass - Getting Started
Sass and Compass - Getting Started
 
CSS Extenders
CSS ExtendersCSS Extenders
CSS Extenders
 
Getting Started with Sass & Compass
Getting Started with Sass & CompassGetting Started with Sass & Compass
Getting Started with Sass & Compass
 
Sass&compass
Sass&compassSass&compass
Sass&compass
 
Learn Sass and Compass quick
Learn Sass and Compass quickLearn Sass and Compass quick
Learn Sass and Compass quick
 
Managing responsive websites with css preprocessors.
Managing responsive websites with css preprocessors. Managing responsive websites with css preprocessors.
Managing responsive websites with css preprocessors.
 
Joan Leon | Houdini, programando en CSS | Codemotion Madrid 2018
Joan Leon | Houdini, programando en CSS | Codemotion Madrid 2018Joan Leon | Houdini, programando en CSS | Codemotion Madrid 2018
Joan Leon | Houdini, programando en CSS | Codemotion Madrid 2018
 
CSS3 is Not Magic Pixie Dust
CSS3 is Not Magic Pixie DustCSS3 is Not Magic Pixie Dust
CSS3 is Not Magic Pixie Dust
 
SASS Preprocessor
SASS PreprocessorSASS Preprocessor
SASS Preprocessor
 
LESS : The dynamic stylesheet language
LESS : The dynamic stylesheet languageLESS : The dynamic stylesheet language
LESS : The dynamic stylesheet language
 
Theming and Sass
Theming and SassTheming and Sass
Theming and Sass
 
Accelerated Stylesheets
Accelerated StylesheetsAccelerated Stylesheets
Accelerated Stylesheets
 
Sass compass
Sass compassSass compass
Sass compass
 
HTML&CSS 5 - Intermediate CSS (2/2)
HTML&CSS 5 - Intermediate CSS (2/2)HTML&CSS 5 - Intermediate CSS (2/2)
HTML&CSS 5 - Intermediate CSS (2/2)
 
Preprocessor presentation
Preprocessor presentationPreprocessor presentation
Preprocessor presentation
 
Modularization css with sass
Modularization css with sassModularization css with sass
Modularization css with sass
 
Work and play with SASS & Compass
Work and play with SASS & CompassWork and play with SASS & Compass
Work and play with SASS & Compass
 
Less css
Less cssLess css
Less css
 

More from Sayanee Basu

Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web DesignSayanee Basu
 
Summer & Winter in Slovenia
Summer & Winter in SloveniaSummer & Winter in Slovenia
Summer & Winter in SloveniaSayanee Basu
 
From Singapore to Slovenia
From Singapore to SloveniaFrom Singapore to Slovenia
From Singapore to SloveniaSayanee Basu
 
Open Community - The Future of Connecting
Open Community - The Future of ConnectingOpen Community - The Future of Connecting
Open Community - The Future of ConnectingSayanee Basu
 

More from Sayanee Basu (6)

Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
 
Summer & Winter in Slovenia
Summer & Winter in SloveniaSummer & Winter in Slovenia
Summer & Winter in Slovenia
 
Open Community
Open CommunityOpen Community
Open Community
 
From Singapore to Slovenia
From Singapore to SloveniaFrom Singapore to Slovenia
From Singapore to Slovenia
 
Open Community - The Future of Connecting
Open Community - The Future of ConnectingOpen Community - The Future of Connecting
Open Community - The Future of Connecting
 
Colors of the Sky
Colors of the SkyColors of the Sky
Colors of the Sky
 

Recently uploaded

Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
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
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 

Recently uploaded (20)

Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
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
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 

Using Sass - Building on CSS

  • 2. www. sayan.ee code . explorer . speaker
  • 4. code is poetry fast flexible fun
  • 5. meta languages .css .sass .scss
  • 6. meta languages .css .sass .scss .border
{ .border .border{ 

padding:
8px; 

padding:
$margin/2 

padding:
$margin/2; 

margin:
8px; 

margin:
$margin/2 

margin:
$margin/2; } }
  • 7. install pre-installed ruby installer pre-installed ruby download rubygems
  • 8. install pre-installed ruby installer pre-installed ruby download rubygems gem
install
sass
  • 9.
  • 11. code is poetry fast flexible fun
  • 12. :before 133 lines of code 25 lines of repeated code no code indentation
  • 14. nesting .css .scss header{ header{ width:100%; width:100%; clear:both; clear:both; margin: 10px auto; margin: 10px auto; background-color: #ABDAD4; background-color: #ABDAD4; } h1{ header h1{ text-align: center; text-align: center; line-height:100px; line-height:100px; color:#007674; color:#007674; } } }
  • 15. parenting for pseudo-classes .css .scss li{ li{ float:left; float:left; margin:30px; margin:30px; } &:nth-child(odd) { li:nth-child(odd) { -webkit-transform: scale(0.7); -webkit-transform: scale(0.7); -moz-transform: scale(0.7); -moz-transform: scale(0.7); } } }
  • 16. operations: + - / * % .css .scss .main{ $length:100%; width:100%; } .main{ width: $length; .sidebar{ } width:30%; } .sidebar{ width:$length*0.3; }
  • 18. variables .css .scss .main{ $darkcolor:#007674; background-color: #ABDAD4; $lightcolor:#ABDAD4; } .main{ .main h1{ background-color: $lightcolor; color: #007674; h1{ } color: $darkcolor; } .sidebar{ } background-color: #ABDAD4; } .sidebar{ background-color: $lightcolor; .sidebar h2{ h2{ color: #007674; color: $darkcolor; } } }
  • 19. mixin .css .scss header{ @mixin rounded($radius){ -webkit-border-radius: 10px; -webkit-border-radius: $radius; -moz-border-radius: 10px; -moz-border-radius: $radius; border-radius: 10px; border-radius: $radius; } } header{ @include rounded(10px); }
  • 20. import .css .scss #navbar li { /* _rounded.scss */ border-top-radius: 10px; -moz-border-radius-top: 10px; @mixin rounded($side, $radius: 10px) { -webkit-border-top-radius: 10px; } border-#{$side}-radius: $radius; -moz-border-radius-#{$side}: $radius; #footer { -webkit-border-#{$side}-radius: $radius; border-top-radius: 5px; } -moz-border-radius-top: 5px; -webkit-border-top-radius: 5px; } /* style.scss */ #sidebar { border-left-radius: 8px; @import "rounded"; -moz-border-radius-left: 8px; -webkit-border-left-radius: 8px; } #navbar li { @include rounded(top); } #footer { @include rounded(top, 5px); } #sidebar { @include rounded(left, 8px); }
  • 22. checking change detection error messages creating
  • 23. checking change detection error messages creating
  • 25. compatibility .scss .css every valid CSS3 stylesheet is valid SCSS
  • 26. compatibility .scss .css pass on just the created .css file to any developer
  • 27. :before :after 133 lines of code 110 lines of code 25 lines of repeated code 0 lines of repeated code no code indentation .css automatic code indentation .css file for future development _partial.scss for future code reuse faster code changes with dynamism .scss compatible with .css codes
  • 28. Resources - Install Resources - Sass 1. gem install sass 1. sass website 2. windows ruby installer 2. online editor 3. install rubygems 3. tutorial 4. documentation 5. compass with sass 6. the sass way - latest buzz 7. python compiler for scss Resources - Less css 1. less css framework 2. scss vs. less wrangl 3. sass/less comparison 4. wrangl sass vs less
  • 29. Q?

Editor's Notes

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n