Movatterモバイル変換


[0]ホーム

URL:


Uploaded bysforst
PDF, PPTX1,112 views

Stylesheet Wrangling with SCSS

Stylesheet Wrangling with SCSS provides tips for optimizing CSS for performance. It recommends using efficient selectors, minimizing stylesheet length and HTTP requests, and optimizing images. SCSS features like mixins, extends, placeholders and variables can help organize CSS. Nesting selectors leads to bloated CSS, so using class names with minimal nesting is better. Proper file structure and organization is also important for optimizing CSS. Tools like Compass, Grunt, and dev tools in browsers can help benchmark and optimize CSS.

Embed presentation

Download as PDF, PPTX
Stylesheet Wrangling with SCSSOPTIMIZING YOUR STYLESHEETS FOR THE WEBSarah Forst • @quooPhoto: The State Library and Archives, Florida
Why optimize your CSS?•  Varied devices handle CSS differently•  Not everyone has great bandwidth•  Long load times keep users from your contentPhoto: the New York Public Library
The Basics• • • • Use efficient selectorsMinimize stylesheet lengthMinimize HTTP requestsOptimize imagesPhoto: the Mennonite Church USA Archives
SCSS Syntax OverviewMixins • Extends • Placeholders • Variables
Nesting is BadPhoto: the Smithsonian Institution
Lots of nestingBecomes
Less NestingBecomes
Class Names (almost no nesting)Becomes
Benchmarking Results*Class NamesFile Size (kb)Some NestingRender Time (ms)Lots of Nesting0100200300400500*With 100 ul’s and 1000 selectors.
Organization•  Keeping your styleswell organized is key tooptimizing your CSS•  Always follow clear andconsistent namingconventions, forexample, BEM orSMACSSPhoto: LSE Library
FileStructurewithoutPreprocesors
FileStructurewithPreprocesors
Reducing Stylesheet Length•  Reduce external librariesto only what you need•  Customize your resetPhoto: Cornell University Library
Use Utility SCSS Files•  Utility SCSS filesshould be made aspartials•  They should notgenerate anyadditional CSSPhoto: Galt Museum & Archives
Compass for Spriting•  Compass has a sprite generatingtool•  It’s especially useful for largerprojects where it’s hard to keeptrack of which sprites are usedand which are not.•  http://compass-style.org/•  https://gist.github.com/quoo/6992616
Always Check yourGenerated Code•  SCSS is an extension of CSS•  Use extends in conjunction withplaceholders•  Don’t use a mixin where you canuse an extendPhoto: The US National Archives
In Summary•  Stay organized•  Cleanup unused code•  Use the SCSS utilities demoed here(extends, mixins, placeholders, andvariables)•  Use spritesPhoto: NASA
Useful Tools• • • • • Chrome’s ProfilerYslowGoogle Page SpeedFor firebug: CSS Usage, FirefinderCompass and GruntPhoto: OSU Special Collections

Recommended

PPTX
Using OJS to manage & publish your online Open Access journal
PDF
Front End Badassery with Sass
PDF
Turbo theming: Introduction to Sass & Compass
PDF
Theming and Sass
PDF
Preprocessor presentation
PDF
Frontend-Entwicklung mit SASS & Compass
PDF
Performance front end language
PDF
Getting Started with Sass & Compass
PPTX
老成的Sass&Compass
PDF
Sass(SCSS)について
PDF
Save time by using SASS/SCSS
PPTX
Introduction to SASS
PPT
Learn Sass and Compass quick
PDF
Sass and compass workshop
DOCX
Horario de clases segundo grado
PPTX
Sass
KEY
Authoring Stylesheets with Compass & Sass
PDF
SASS: The Next Wave in Styling and Theming
 
PDF
Intro to Sass for WordPress Developers
PDF
Style Your Site Part 2
PDF
Atlanta Drupal User's Group - April 2015 - Sasstronauts: Advanced Sass Topics
PPTX
SCSS Implementation
PPTX
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
KEY
Sass Essentials at Mobile Camp LA
PPTX
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
PPTX
Web technologies-course 05.pptx
KEY
Sass: The Future of Stylesheets
PPTX
Make your CSS beautiful again
PDF
CSS preprocessor: why and how
PDF
Css preprocessor-140606115334-phpapp01

More Related Content

PPTX
Using OJS to manage & publish your online Open Access journal
PDF
Front End Badassery with Sass
PDF
Turbo theming: Introduction to Sass & Compass
PDF
Theming and Sass
PDF
Preprocessor presentation
PDF
Frontend-Entwicklung mit SASS & Compass
PDF
Performance front end language
PDF
Getting Started with Sass & Compass
Using OJS to manage & publish your online Open Access journal
Front End Badassery with Sass
Turbo theming: Introduction to Sass & Compass
Theming and Sass
Preprocessor presentation
Frontend-Entwicklung mit SASS & Compass
Performance front end language
Getting Started with Sass & Compass

Viewers also liked

PPTX
老成的Sass&Compass
PDF
Sass(SCSS)について
PDF
Save time by using SASS/SCSS
PPTX
Introduction to SASS
PPT
Learn Sass and Compass quick
PDF
Sass and compass workshop
DOCX
Horario de clases segundo grado
PPTX
Sass
老成的Sass&Compass
Sass(SCSS)について
Save time by using SASS/SCSS
Introduction to SASS
Learn Sass and Compass quick
Sass and compass workshop
Horario de clases segundo grado
Sass

Similar to Stylesheet Wrangling with SCSS

KEY
Authoring Stylesheets with Compass & Sass
PDF
SASS: The Next Wave in Styling and Theming
 
PDF
Intro to Sass for WordPress Developers
PDF
Style Your Site Part 2
PDF
Atlanta Drupal User's Group - April 2015 - Sasstronauts: Advanced Sass Topics
PPTX
SCSS Implementation
PPTX
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
KEY
Sass Essentials at Mobile Camp LA
PPTX
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
PPTX
Web technologies-course 05.pptx
KEY
Sass: The Future of Stylesheets
PPTX
Make your CSS beautiful again
PDF
CSS preprocessor: why and how
PDF
Css preprocessor-140606115334-phpapp01
PDF
Mobile and Responsive Design with Sass
PPTX
BDUG Responsive Web Theming - 7/23/12
ODP
Sass presentation
PPTX
SASS is more than LESS
PDF
Compass n Sass
PPTX
Mastering CSS for Backend Developers.pptx
 
Authoring Stylesheets with Compass & Sass
SASS: The Next Wave in Styling and Theming
 
Intro to Sass for WordPress Developers
Style Your Site Part 2
Atlanta Drupal User's Group - April 2015 - Sasstronauts: Advanced Sass Topics
SCSS Implementation
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
Sass Essentials at Mobile Camp LA
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
Web technologies-course 05.pptx
Sass: The Future of Stylesheets
Make your CSS beautiful again
CSS preprocessor: why and how
Css preprocessor-140606115334-phpapp01
Mobile and Responsive Design with Sass
BDUG Responsive Web Theming - 7/23/12
Sass presentation
SASS is more than LESS
Compass n Sass
Mastering CSS for Backend Developers.pptx
 

Recently uploaded

PDF
Unlocking the Power of Salesforce Architecture: Frameworks for Effective Solu...
PDF
GPUS and How to Program Them by Manya Bansal
PPT
software-security-intro in information security.ppt
PPTX
AI in Cybersecurity: Digital Defense by Yasir Naveed Riaz
PPTX
THIS IS CYBER SECURITY NOTES USED IN CLASS ON VARIOUS TOPICS USED IN CYBERSEC...
PDF
DIGITAL FORENSICS - Notes for Everything.pdf
PDF
Vibe Coding vs. Spec-Driven Development [Free Meetup]
PDF
The year in review - MarvelClient in 2025
PDF
Internet_of_Things_IoT_for_Next_Generation_Smart_Systems_Utilizing.pdf
PDF
TrustArc Webinar - Looking Ahead: The 2026 Privacy Landscape
PDF
The major tech developments for 2026 by Pluralsight, a research and training ...
PDF
Energy Storage Landscape Clean Energy Ministerial
PDF
API-First Architecture in Financial Systems
PDF
Security Technologys: Access Control, Firewall, VPN
PPTX
Ethics in AI - Artificial Intelligence Fundamentals.pptx
PDF
Usage Control for Process Discovery through a Trusted Execution Environment
PPTX
Cloud-and-AI-Platform-FY26-Partner-Playbook.pptx
PDF
Decoding the DNA: The Digital Networks Act, the Open Internet, and IP interco...
DOCX
Introduction to the World of Computers (Hardware & Software)
PDF
Zero Trust & Defense-in-Depth: The Future of Critical Infrastructure Security
Unlocking the Power of Salesforce Architecture: Frameworks for Effective Solu...
GPUS and How to Program Them by Manya Bansal
software-security-intro in information security.ppt
AI in Cybersecurity: Digital Defense by Yasir Naveed Riaz
THIS IS CYBER SECURITY NOTES USED IN CLASS ON VARIOUS TOPICS USED IN CYBERSEC...
DIGITAL FORENSICS - Notes for Everything.pdf
Vibe Coding vs. Spec-Driven Development [Free Meetup]
The year in review - MarvelClient in 2025
Internet_of_Things_IoT_for_Next_Generation_Smart_Systems_Utilizing.pdf
TrustArc Webinar - Looking Ahead: The 2026 Privacy Landscape
The major tech developments for 2026 by Pluralsight, a research and training ...
Energy Storage Landscape Clean Energy Ministerial
API-First Architecture in Financial Systems
Security Technologys: Access Control, Firewall, VPN
Ethics in AI - Artificial Intelligence Fundamentals.pptx
Usage Control for Process Discovery through a Trusted Execution Environment
Cloud-and-AI-Platform-FY26-Partner-Playbook.pptx
Decoding the DNA: The Digital Networks Act, the Open Internet, and IP interco...
Introduction to the World of Computers (Hardware & Software)
Zero Trust & Defense-in-Depth: The Future of Critical Infrastructure Security

Stylesheet Wrangling with SCSS


[8]ページ先頭

©2009-2025 Movatter.jp