Submit Search
Upload
Crazy sassy
•
1 like
•
449 views
Michael Arestad
Follow
Crazy ways to use Sass (or not).
Read less
Read more
Technology
Art & Photos
Report
Share
Report
Share
1 of 46
Download now
Download to read offline
Recommended
Bridging the gap between designers and developers at the Guardian
Bridging the gap between designers and developers at the Guardian
Kaelig Deloumeau-Prigent
SilverStripe Modules for a Better Life
SilverStripe Modules for a Better Life
Colin Richardson
Getting Started With Sass | WC Philly 2015
Getting Started With Sass | WC Philly 2015
Maura Teal
Front End Development - Beyond Javascript (Robin Cannon)
Front End Development - Beyond Javascript (Robin Cannon)
Future Insights
Sass - Getting Started with Sass!
Sass - Getting Started with Sass!
Eric Sembrat
about:consistency - lesson learned: the hard way
about:consistency - lesson learned: the hard way
Christoph Reinartz
Our Feline Pets (Domesticated and Wild cats)
Our Feline Pets (Domesticated and Wild cats)
Arvin Angay
Reflektion
Reflektion
Renny
Recommended
Bridging the gap between designers and developers at the Guardian
Bridging the gap between designers and developers at the Guardian
Kaelig Deloumeau-Prigent
SilverStripe Modules for a Better Life
SilverStripe Modules for a Better Life
Colin Richardson
Getting Started With Sass | WC Philly 2015
Getting Started With Sass | WC Philly 2015
Maura Teal
Front End Development - Beyond Javascript (Robin Cannon)
Front End Development - Beyond Javascript (Robin Cannon)
Future Insights
Sass - Getting Started with Sass!
Sass - Getting Started with Sass!
Eric Sembrat
about:consistency - lesson learned: the hard way
about:consistency - lesson learned: the hard way
Christoph Reinartz
Our Feline Pets (Domesticated and Wild cats)
Our Feline Pets (Domesticated and Wild cats)
Arvin Angay
Reflektion
Reflektion
Renny
Pomeranian teacups
Pomeranian teacups
Cashmagnet
Very realistic hand printed照片级的动物手绘插画
Very realistic hand printed照片级的动物手绘插画
He Yan
Interesting Photos
Interesting Photos
Renny
I Think...God Knew...
I Think...God Knew...
Anna *
Fine Art Photos
Fine Art Photos
mveissid
Funny class pic
Funny class pic
grade5a
Visuals
Visuals
Siam English
Love Sayings
Love Sayings
Anna *
Quotes, Sayings, Ditties, don't you just love them
Quotes, Sayings, Ditties, don't you just love them
Lynne Carlson
Luna Merche
Luna Merche
Renny
Funny images Gallery - gif-king.com
Funny images Gallery - gif-king.com
Kumiko Kurosu
Embarrassing Sitiation
Embarrassing Sitiation
draco2111
Pictures of a pomeranian dog
Pictures of a pomeranian dog
Cashmagnet
Funny images
Funny images
Nikos
Stop your share point css become a di-sass-ter today - SPS Munich
Stop your share point css become a di-sass-ter today - SPS Munich
Stefan Bauer
Authoring Stylesheets with Compass & Sass
Authoring Stylesheets with Compass & Sass
chriseppstein
Sass Essentials at Mobile Camp LA
Sass Essentials at Mobile Camp LA
Jake Johnson
Create SASSy web parts in SPFx
Create SASSy web parts in SPFx
Stefan Bauer
[Bauer] SASSy web parts with SPFX
[Bauer] SASSy web parts with SPFX
European Collaboration Summit
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
Stefan Bauer
Jina bolton - Refactoring Web Interfaces
Jina bolton - Refactoring Web Interfaces
DevConFu
Beginning CSS.
Beginning CSS.
dhruvgairola
More Related Content
Viewers also liked
Pomeranian teacups
Pomeranian teacups
Cashmagnet
Very realistic hand printed照片级的动物手绘插画
Very realistic hand printed照片级的动物手绘插画
He Yan
Interesting Photos
Interesting Photos
Renny
I Think...God Knew...
I Think...God Knew...
Anna *
Fine Art Photos
Fine Art Photos
mveissid
Funny class pic
Funny class pic
grade5a
Visuals
Visuals
Siam English
Love Sayings
Love Sayings
Anna *
Quotes, Sayings, Ditties, don't you just love them
Quotes, Sayings, Ditties, don't you just love them
Lynne Carlson
Luna Merche
Luna Merche
Renny
Funny images Gallery - gif-king.com
Funny images Gallery - gif-king.com
Kumiko Kurosu
Embarrassing Sitiation
Embarrassing Sitiation
draco2111
Pictures of a pomeranian dog
Pictures of a pomeranian dog
Cashmagnet
Funny images
Funny images
Nikos
Viewers also liked
(14)
Pomeranian teacups
Pomeranian teacups
Very realistic hand printed照片级的动物手绘插画
Very realistic hand printed照片级的动物手绘插画
Interesting Photos
Interesting Photos
I Think...God Knew...
I Think...God Knew...
Fine Art Photos
Fine Art Photos
Funny class pic
Funny class pic
Visuals
Visuals
Love Sayings
Love Sayings
Quotes, Sayings, Ditties, don't you just love them
Quotes, Sayings, Ditties, don't you just love them
Luna Merche
Luna Merche
Funny images Gallery - gif-king.com
Funny images Gallery - gif-king.com
Embarrassing Sitiation
Embarrassing Sitiation
Pictures of a pomeranian dog
Pictures of a pomeranian dog
Funny images
Funny images
Similar to Crazy sassy
Stop your share point css become a di-sass-ter today - SPS Munich
Stop your share point css become a di-sass-ter today - SPS Munich
Stefan Bauer
Authoring Stylesheets with Compass & Sass
Authoring Stylesheets with Compass & Sass
chriseppstein
Sass Essentials at Mobile Camp LA
Sass Essentials at Mobile Camp LA
Jake Johnson
Create SASSy web parts in SPFx
Create SASSy web parts in SPFx
Stefan Bauer
[Bauer] SASSy web parts with SPFX
[Bauer] SASSy web parts with SPFX
European Collaboration Summit
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
Stefan Bauer
Jina bolton - Refactoring Web Interfaces
Jina bolton - Refactoring Web Interfaces
DevConFu
Beginning CSS.
Beginning CSS.
dhruvgairola
Create SASSY Web Parts - SPSMilan
Create SASSY Web Parts - SPSMilan
Stefan Bauer
CSS Workflow. Pre & Post
CSS Workflow. Pre & Post
Anton Dosov
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
Eric Carlisle
HTML Tour - Buenas prácticas en el desarrollo web
HTML Tour - Buenas prácticas en el desarrollo web
Plain Concepts
SCSS Implementation
SCSS Implementation
Amey Parab
SASS, Compass, Gulp, Greensock
SASS, Compass, Gulp, Greensock
Marco Pinheiro
An Introduction to CSS Preprocessors (SASS & LESS)
An Introduction to CSS Preprocessors (SASS & LESS)
Folio3 Software
The Modern Web, Part 2: HTML5
The Modern Web, Part 2: HTML5
David Pallmann
Atlanta Drupal User's Group - April 2015 - Sasstronauts: Advanced Sass Topics
Atlanta Drupal User's Group - April 2015 - Sasstronauts: Advanced Sass Topics
Eric Sembrat
CSS Architecture - JSIL.pdf
CSS Architecture - JSIL.pdf
JonDan6
Using Sass in Your WordPress Projects
Using Sass in Your WordPress Projects
Jeremy Green
Death of a Themer
Death of a Themer
James Panton
Similar to Crazy sassy
(20)
Stop your share point css become a di-sass-ter today - SPS Munich
Stop your share point css become a di-sass-ter today - SPS Munich
Authoring Stylesheets with Compass & Sass
Authoring Stylesheets with Compass & Sass
Sass Essentials at Mobile Camp LA
Sass Essentials at Mobile Camp LA
Create SASSy web parts in SPFx
Create SASSy web parts in SPFx
[Bauer] SASSy web parts with SPFX
[Bauer] SASSy web parts with SPFX
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
Jina bolton - Refactoring Web Interfaces
Jina bolton - Refactoring Web Interfaces
Beginning CSS.
Beginning CSS.
Create SASSY Web Parts - SPSMilan
Create SASSY Web Parts - SPSMilan
CSS Workflow. Pre & Post
CSS Workflow. Pre & Post
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
HTML Tour - Buenas prácticas en el desarrollo web
HTML Tour - Buenas prácticas en el desarrollo web
SCSS Implementation
SCSS Implementation
SASS, Compass, Gulp, Greensock
SASS, Compass, Gulp, Greensock
An Introduction to CSS Preprocessors (SASS & LESS)
An Introduction to CSS Preprocessors (SASS & LESS)
The Modern Web, Part 2: HTML5
The Modern Web, Part 2: HTML5
Atlanta Drupal User's Group - April 2015 - Sasstronauts: Advanced Sass Topics
Atlanta Drupal User's Group - April 2015 - Sasstronauts: Advanced Sass Topics
CSS Architecture - JSIL.pdf
CSS Architecture - JSIL.pdf
Using Sass in Your WordPress Projects
Using Sass in Your WordPress Projects
Death of a Themer
Death of a Themer
Recently uploaded
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
Rizwan Syed
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
jimielynbastida
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
null - The Open Security Community
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
Slibray Presentation
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
carlostorres15106
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April Automation LPDG
MarianaLemus7
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
costume and set research powerpoint presentation
costume and set research powerpoint presentation
phoebematthew05
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Wonjun Hwang
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
Neo4j
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Safe Software
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
comworks
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
Softradix Technologies
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
gvaughan
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
Alex Barbosa Coqueiro
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
UiPathCommunity
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
2toLead Limited
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
Padma Pradeep
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Mark Billinghurst
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
null - The Open Security Community
Recently uploaded
(20)
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April Automation LPDG
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
costume and set research powerpoint presentation
costume and set research powerpoint presentation
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Crazy sassy
1.
crazy sassy
2.
THE BASICS Heh.
3.
box model positioning pseudo elements vendor
prefixes avoid !important .classes responsive design specificity CSS compiling nesting variables & mixins extends functions DRY SASS lists sass maps recursion @while @if @for @at-root !global
4.
CSS SASS box model positioning pseudo
elements vendor prefixes avoid !important .classes responsive design OOCSS compiling nesting variables & mixins extends functions DRY lists sass maps recursion @while @if @for @at-root !global GRUNT CODEKIT TERMINAL GIT/SVN AUTOPREFIXER FILE STRUCTURE ICON FONTS SVG BROWSER TESTING COMPASS WEB FONTS VAGRANT MAMP CSS ANIMATIONS INTURNAT EXLPUOR BOURBON
5.
6.
BUS FACTOR Total number
of devs who would need to be incapacitated to **** a project.
7.
8.
NORMALLY, BUS FACTOR ONE
IS BAD.
9.
EXCEPT FOR TODAY.
10.
MICHAEL ARESTAD @michaelarestad
11.
12.
13.
14.
15.
DRY Do not Repeat
Yourself
16.
OOCSS Object Oriented CSS
17.
.base__element—modifier ! .header__nav--primary
18.
CRAZY COOL Sane useful
code.
19.
CRAZY CRAZY Will crash
your phone.
20.
FUNCTIONS Only do math(s)
once.
21.
@function em($value, $context: $root-font-size)
{ @return ($value / $context * 1em); } COOL
22.
padding: em(24); padding: (24
/ 16px); COOL
23.
@function p($number){ @return ($number
* 2.5%); } CRAZY
24.
m5l.co/wc-1 m5l.co/wc-2 CRAZY
25.
SASS MAPS Scary-looking, but
useful.
26.
$buttons:( primary:( background: #2ba1cb, color: #fff, ), secondary:( background:
#f7f7f7, color: #555, ) ); COOL
27.
map-get(map-get($buttons, primary), color) #fff COOL
28.
m5l.co/buttons COOL
29.
LOOPS! Spit out some
code!
30.
@each $item in
$button-types { .button--#{$item} { $button-color: map-get(map-get($buttons, $item), background); $button-text: map-get(map-get($buttons, $item), color); ! @include button($button-color, $button-text); } } COOL
31.
m5l.co/buttons COOL
32.
@for $i from
1 through $columns { .span#{$i} { width: ($spacing * $i * 1px) + ($gutter * $i) - $gutter; } } COOL
33.
m5l.co/griddy COOL
34.
@for $i from
$start through $end { @media all and (min-width: $i * 1px) { .wide { &:after { content: " #{$i} pixels wide!"; } } } } WTF?!
35.
m5l.co/howbig WTF?!
36.
EPIC MIXIN TIME We
mixin because we can.
37.
@mixin border-radius($radius: 3px){ -webkit-border-radius:
$radius; -moz-border-radius: $radius; border-radius: $radius; } MEH
38.
Autoprefixer m5l.co/ap MEH
39.
$breakpoints:( phone: 320px, phablet: 500px, tablet:
768px, desktop: 960px, ); @mixin breakpoint($size){ @each $breakpoint, $value in $breakpoints { @if $size == $breakpoint { @media (max-width: map-get($breakpoints, $breakpoint)){ @content; } } } } COOL
40.
m5l.co/break COOL
41.
m5l.co/arrow COOL
42.
@mixin pie($a: 33)
{ // $a should be from 1 to 100 $p: 360 * $a / 100; // converts to percentage @if $p <= 90 { .slice { transform: rotate(-90deg + $p); ! &:after { transform: rotate(90deg - $p); } } } @elseif $p <= 180 { .slice, .slice:after { // Resets slices. Delete if pie doesn't change.(hover, etc.) transform: rotate(0); } .slice:nth-child(2) { transform: rotate(-90deg + $p); } } @elseif $p <= 270 { CRAZY
43.
m5l.co/pie CRAZY
44.
RECAP Use functions for
math(s) Use Sass maps where they make sense Use loops carefully Use mixins for epic hunks of code, not prefixes
45.
THANK YOU! @michaelarestad
46.
QUESTIONS? @michaelarestad
Download now