SlideShare a Scribd company logo
1 of 39
Download to read offline
YDN
BRAND

say hello.
SASS
Syntactically Awesome Stylesheets

nah'mean?
SASS
●
●
●
●

preprocessor
metalanguage
interpreted into CSS
providing mechanisms available in traditional
programming languages
● adding:
○
○
○
○
○
○

nested rules
variables
mixins
inheritence
directives
....
Why?
●
●
●
●
●

save bytes
save time
readability
flexibility
frontend eco system
Syntax
● the same old song:
● brackets or no brackets?

CSS style
easily readable
*.scss

ruby style
less code
*.sass
Features
lean back.
Nested rules
nesting CSS rules within one another
Variables
uhhm, variables.
Variables data types
● numbers
○ e.g. 1.2, 13, 10px

● strings
○ e.g. "foo", 'bar', baz

● colors
○ e.g. blue, #04a3f9, rgba(255, 0, 0, 0.5)

● booleans
○ e.g. true, false nulls

● lists of values
○ e.g. 1.5em 1em 0 2em, Helvetica, Arial, sans-serif)
Operations
standard arithmetic operations
Mixins
define styles that can be re-used
throughout the stylesheet
Inheritence
tell one selector to inherit all the styles
of another without duplicating the CSS
properties
Directives
basic control directives
Directives
for directives
Compass
SASS Framework

add some sugar.
Compass
● SASS Framework
● adding:
○
○
○
○

out of the box mixins
helper functions
sprite generator
...
Mixins
●

cross browser mixins
Mixins
●
●
●
●
●
●
●
●
●
●
●
●
●
●

Background Clip
Background Origin
Background Size
Border Radius
Box Shadow
Box Sizing
Font Face
Images
Inline Block
Opacity
Text Shadow
Transform
Transition
...

●
●
●
●

Resets
Links
Lists
Text
Helpers
●

color helpers
Sprites
pain in the ass if you do it yourself
Sprites
easily generate sprites of a folder's
image files
Case study
this is how we do it
EPSON - Beam your X-Mas Story
Structure
Structure
Structure
SASS config file
Structure
Compiler entry point
(files without leading underscore)
Structure
Twitter Bootstrap + project config
Structure

project files

twitter bootstrap files
Structure

style.scss
only import required bootstrap components

_config.scss

Twitter Bootstrap

Project
Structure
e.g. Google Webfont imports
any form related elements

Unique elements with IDs, e.g. #header, #logo
e.g. Button mixins
Modules: Buttons, Lists, Tabs, Pagination, Dialogs
e.g. jQuery UI stylesheets

Basic elements e.g. body
e.g. common shared gradients
Import sprites
Headlines, paragraphs
Element examples
Buttons
Twitter Bootstrap
(not modified)

Project
Button styles

.btn .btnprimary

.btn

.btn .btn-success .btn-large

.btn
Lightbox
Lightbox
Lightbox
Lightbox
Lightbox
Questions?

More Related Content

Similar to Malte Wessel - SASS Preprocessor / Compass / YDN Brand

Overview of no sql
Overview of no sqlOverview of no sql
Overview of no sql
Sean Murphy
 

Similar to Malte Wessel - SASS Preprocessor / Compass / YDN Brand (16)

Smart CSS theming with Sass and Compass
Smart CSS theming with Sass and CompassSmart CSS theming with Sass and Compass
Smart CSS theming with Sass and Compass
 
Lecture_4.pdf
Lecture_4.pdfLecture_4.pdf
Lecture_4.pdf
 
Productive bash
Productive bashProductive bash
Productive bash
 
018 CSS, BEM, SASS e boas práticas
018 CSS, BEM, SASS e boas práticas018 CSS, BEM, SASS e boas práticas
018 CSS, BEM, SASS e boas práticas
 
HTML5, CSS, JavaScript Style guide and coding conventions
HTML5, CSS, JavaScript Style guide and coding conventionsHTML5, CSS, JavaScript Style guide and coding conventions
HTML5, CSS, JavaScript Style guide and coding conventions
 
Overview of no sql
Overview of no sqlOverview of no sql
Overview of no sql
 
Sass in 5
Sass in 5Sass in 5
Sass in 5
 
2 introduction css
2 introduction css2 introduction css
2 introduction css
 
CSS
CSSCSS
CSS
 
HPEC 2021 sparse binary format
HPEC 2021 sparse binary formatHPEC 2021 sparse binary format
HPEC 2021 sparse binary format
 
Css siva
Css sivaCss siva
Css siva
 
Css siva
Css sivaCss siva
Css siva
 
Apache HBase
Apache HBase  Apache HBase
Apache HBase
 
Типы данных JSONb, соответствующие индексы и модуль jsquery – Олег Бартунов, ...
Типы данных JSONb, соответствующие индексы и модуль jsquery – Олег Бартунов, ...Типы данных JSONb, соответствующие индексы и модуль jsquery – Олег Бартунов, ...
Типы данных JSONb, соответствующие индексы и модуль jsquery – Олег Бартунов, ...
 
PostgreSQL Moscow Meetup - September 2014 - Oleg Bartunov and Alexander Korotkov
PostgreSQL Moscow Meetup - September 2014 - Oleg Bartunov and Alexander KorotkovPostgreSQL Moscow Meetup - September 2014 - Oleg Bartunov and Alexander Korotkov
PostgreSQL Moscow Meetup - September 2014 - Oleg Bartunov and Alexander Korotkov
 
CSS Training in Bangalore
CSS Training in BangaloreCSS Training in Bangalore
CSS Training in Bangalore
 

Recently uploaded

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
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
Safe Software
 

Recently uploaded (20)

AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Decarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceDecarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational Performance
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data Science
 
UiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overviewUiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overview
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps Productivity
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
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
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software Engineering
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 

Malte Wessel - SASS Preprocessor / Compass / YDN Brand