Table of Contents for
Mastering PostCSS for Web Design
Close
Version ebook
/
Retour
Mastering PostCSS for Web Design
by Alex Libby
Published by Packt Publishing, 2016
Cover
Table of Contents
Mastering PostCSS for Web Design
Mastering PostCSS for Web Design
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
1. Introducing PostCSS
Introducing PostCSS
Setting up a development environment
Creating a simple example using PostCSS
Linting code using plugins
Exploring how PostCSS works
Summary
2. Creating Variables and Mixins
Creating a hover effect example
Transitioning to using PostCSS
Adding variable support to PostCSS
Updating our hover effect demo
Setting the order of plugins
Creating mixins with PostCSS
Looping content with PostCSS
Summary
3. Nesting Rules
Navigating through pages
Transitioning to using PostCSS plugins
Exploring the pitfalls of nesting
Making the switch to BEM
Exploring our changes in more detail
Summary
4. Building Media Queries
Exploring custom media queries in PostCSS
Making images responsive
Adding responsive text support
Optimizing media queries
Retrofitting support for older browsers
Moving away from responsive design
Taking things further with CSS4
Summary
5. Managing Colors, Images, and Fonts
Managing fonts with PostCSS
Creating image sprites
Working with SVG in PostCSS
Adding support for WebP images
Manipulating colors and color palettes
Creating color functions with PostCSS
Summary
6. Creating Grids
Creating an example with Bourbon Neat
Exploring the grid plugins in PostCSS
Transitioning to using PostCSS-Neat
Creating a site using Neat and PostCSS
Adding responsive capabilities
Summary
7. Animating Elements
Moving away from jQuery
Making use of pre-built libraries
Switching to using SASS
Making the switch to PostCSS
Exploring plugin options within PostCSS
Updating code to use PostCSS
Creating a demo in PostCSS
Optimizing our animations
Using our own animation plugin
Summary
8. Creating PostCSS Plugins
Dissecting the architecture of a standard plugin
Creating an transition plugin
Building a custom font plugin
Simplifying the development process
Guidelines for plugin building
Making the plugin available for use
Summary
9. Working with Shortcuts, Fallbacks, and Packs
Exploring plugin packs for PostCSS
Adding shortcuts with Rucksack
Linting and optimizing your code
Providing fallback support
Summary
10. Building a Custom Processor
Exploring our processor
Dissecting issues with our processor
Optimizing the output
Adding reload capabilities
Extending our processor further
Testing the final pre-processor
Getting started with some hints and tips
Introducing the CSStyle library
Summary
11. Manipulating Custom Syntaxes
Preparing our environment
Implementing custom syntax plugins
Parsing CSS
Formatting the output with the API
Highlighting our syntax code
Summary
12. Mixing Preprocessors
Exploring the conversion process
Introducing the Pleeease library
Compiling with other preprocessors
Using the PreCSS library
Converting a WordPress installation
Setting up our environment
Considering the conversion process
Making changes to our code
Compiling and testing the changes
Summary
13. Troubleshooting PostCSS Issues
Exploring some common issues
Getting help from others
Summary
14. Preparing for the Future
Converting CSS4 styles for use
Supporting future syntax with cssnext
Creating plugins to provide extra CSS4 support
Summary
Index
Next
Next Chapter
Table of Contents
Next
Next Chapter
Table of Contents