Britt BodinNatalie Thomson
AGENDA I. The Problems with CSS II. Introducing Preprocessors III. How They Work IV. It’s Magic. V. Advantages & Disadvantages VI. SASS vs. LESS VII. Frameworks VIII. Subscription Cost, Service Fees
THE PROBLEMS WITH CSS ♡ Repetitive & redundant ♡ Time-consuming ♡Cascading Changes= tons of busywork ♡ Organization: ♡Vertical placement limitations ♡Limited organizational tools
THE PROBLEMS WITH CSS
INTRODUCING PREPROCESSORS ♡ Nested syntax ♡ Ability to define variables ♡ Ability to define mixins Combining the simplicity of CSS with the power of computation ♡ Mathematical functions ♡ Operational functions ♡ Joining of multiple files
HOW THEY WORK Creation Compilation Integration MPD: Magic Pixie Dust
ADVANTAGES ♡ Better organization ♡ Better syntax ♡ Cleaner code ♡ Less time-consuming ♡ Easier maintenance ♡ Reduces repetition ♡ Responsive* ♡Fewer HTTP requests ♡Designer’s Best Friend ♡Color Scheming ♡Semantic Tools ♡Mathematical Precision ♡Variable-level control enable rapid, significant changes
DISADVANTAGES ♡Generated CSS ♡Possibly bloated, reader-unfriendly source code… if the reader can’t/won’t use a preprocessor. ♡Debugging is harder ♡Source Maps ♡Barriers to entry ♡Programming code ♡Anti-conformism ♡Terrorists? Can be slow to compile, sometimes. Maybe.
PREPARE TO BE AMAZED Do try this at home
SASS vs LESS BOTH SASS LESS ♡Based in JavaScript ♡JavaScript Evaluation ♡Client-side operation ♡Less efficient logic ♡Fewer frameworks ♡Guarded mixins ♡Loops only allowed for numeric values ♡Easier to install? ♡Extensions for faster & easier web development ♡Nesting ♡Logic ♡ Mixins & Selector Inheritance ♡ Nesting ♡Error notifications ♡Documentation ♡Based in Ruby ♡Pure CSS. No compatibility issues ♡Compass ♡Better Nesting ♡Strange scope issues ♡Very PHP-ish
FRAMEWORKS ♡Compass ♡Bourbon ♡Foundation ♡Bootstrap* ♡Bootstrap 4 ♡Bootstrap ♡Ink ♡UIKit ♡Semantic UI ♡Responsive Boilerplate
CAN I DO THIS AT HOME? ♡ Visual Studio ♡Web Essentials ( )Web Essentials ♡Compiler (2015)Compiler ♡SASSSASS ♡LESSLESS ♡StylusStylus
SOURCES ♡ ♡ ♡ absolute-beginners/ absolute-beginners/ ♡ ♡ ♡ css-preprocessing-explainedhttp://blog.blakesimpson.co.uk/read/37-less-sass-the-advantages-of- css-preprocessing-explained ♡ css/ css/ ♡ css-framework-disadvantages/ css-framework-disadvantages/ ♡ development/articles/25619.aspxhttp:// development/articles/25619.aspx ♡ ♡ ♡ ♡ ♡ ♡ ♡ ♡ you-choose/ you-choose/ ♡ be-using-css-preprocessorhttps:// be-using-css-preprocessor ♡ ♡