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

Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
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
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 

Recently uploaded (20)

Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
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
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 

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