Mastering PostCSS for Web Design
暫譯: 掌握 PostCSS 網頁設計
Alex Libby
- 出版商: Packt Publishing
- 出版日期: 2016-06-30
- 售價: $2,000
- 貴賓價: 9.5 折 $1,900
- 語言: 英文
- 頁數: 414
- 裝訂: Paperback
- ISBN: 1785885898
- ISBN-13: 9781785885891
-
相關分類:
CSS、網頁設計
-
相關翻譯:
深入 PostCSS Web 設計 (Mastering PostCSS for Web Design) (簡中版)
海外代購書籍(需單獨結帳)
相關主題
商品描述
Key Features
- Incorporate cutting-edge styles in your web pages with PostCSS
- Simplify the process of writing CSS to a great extent using PostCSS shortcuts, fallbacks, and pack plugins
- This in-depth, step-by-step guide will help you master PostCSS, to create amazing and responsive web designs
Book Description
PostCSS is a tool that has quickly emerged as the future of existing preprocessors such as SASS and Less, mainly because of its power, speed, and ease of use. This comprehensive guide offers in-depth guidance on incorporating cutting-edge styles into your web page and at the same time maintaining the performance and maintainability of your code.
The book will show how you can take advantage of PostCSS to simplify the entire process of stylesheet authoring. It covers various techniques to add dynamic and modern styling features to your web pages. As the book progresses, you will learn how to make CSS code more maintainable by taking advantage of the modular architecture of PostCSS. By the end of this book, you would have mastered the art of adding modern CSS effects to web pages by authoring high performing, maintainable stylesheets.
What you will learn
- Add mixin and variable support to PostCSS along with conditional support
- Explore the different ways of nesting code such as BEM and standard nesting within PostCSS
- Optimize media queries built with PostCSS to get the best performance
- Add dynamic styling elements such as images, fonts, grids, and SVG and retina support using existing preprocessors as well as PostCSS
- Get familiar with using plugins, and extend PostCSS with the API
- Build a fully working custom preprocessor and test it on different sites such as WordPress
- Write a custom syntax in PostCSS while still using pre-built syntaxes such as Less, SASS, or Stylus
- Provide support for future CSS such as CSS4 using current CSS3 classes
About the Author
Alex Libby's background is in IT support―he has been involved in supporting end users for almost 20 years in a variety of different environments; a recent change in role now sees Alex working as an MVT test developer for a global distributor based in the UK. Although Alex gets to play with different technologies in his day job, his first true love has always been the open source movement, and in particular, experimenting with CSS/CSS3, jQuery, and HTML5. To date, Alex has written 10 books on subjects such as jQuery, HTML5 video, SASS, and CSS for Packt and has reviewed several more―Mastering PostCSS Web Design is Alex's eleventh book for Packt.
Table of Contents
- Introducing PostCSS
- Creating Variables and Mixins
- Nesting Rules
- Building Media Queries
- Managing Colors, Images, and Fonts
- Creating Grids
- Animating Elements
- Creating PostCSS Plugins
- Working with Shortcuts, Fallbacks, and Packs
- Building a Custom Processor
- Manipulating Custom Syntaxes
- Mixing Preprocessors
- Troubleshooting PostCSS Issues
- Preparing for the Future
商品描述(中文翻譯)
**主要特點**
- 使用 PostCSS 在您的網頁中融入尖端樣式
- 通過 PostCSS 的快捷方式、回退和插件大幅簡化 CSS 編寫過程
- 這本深入的逐步指南將幫助您掌握 PostCSS,創建驚人且響應式的網頁設計
**書籍描述**
PostCSS 是一個迅速崛起的工具,成為現有預處理器(如 SASS 和 Less)的未來,主要因為它的強大、快速和易用性。這本全面的指南提供了深入的指導,幫助您將尖端樣式融入網頁,同時保持代碼的性能和可維護性。
本書將展示如何利用 PostCSS 簡化整個樣式表編寫過程。它涵蓋了各種技術,以將動態和現代的樣式特性添加到您的網頁中。隨著書籍的進展,您將學會如何利用 PostCSS 的模組化架構,使 CSS 代碼更具可維護性。在本書結束時,您將掌握為網頁添加現代 CSS 效果的藝術,通過編寫高效能、可維護的樣式表。
**您將學到的內容**
- 為 PostCSS 添加 mixin 和變數支持,以及條件支持
- 探索在 PostCSS 中嵌套代碼的不同方式,如 BEM 和標準嵌套
- 優化使用 PostCSS 構建的媒體查詢,以獲得最佳性能
- 使用現有的預處理器和 PostCSS 添加動態樣式元素,如圖像、字體、網格和 SVG 及 Retina 支持
- 熟悉使用插件,並通過 API 擴展 PostCSS
- 構建一個完全運作的自定義預處理器,並在不同網站(如 WordPress)上進行測試
- 在 PostCSS 中編寫自定義語法,同時使用現有的語法(如 Less、SASS 或 Stylus)
- 使用當前的 CSS3 類別為未來的 CSS(如 CSS4)提供支持
**關於作者**
**Alex Libby** 的背景是 IT 支持,他在各種不同環境中支持終端用戶近 20 年;最近的角色變化使 Alex 成為一家位於英國的全球分銷商的 MVT 測試開發人員。雖然 Alex 在日常工作中接觸不同的技術,但他最初的真愛始終是開源運動,特別是對 CSS/CSS3、jQuery 和 HTML5 的實驗。到目前為止,Alex 已經為 Packt 撰寫了 10 本書,主題包括 jQuery、HTML5 視頻、SASS 和 CSS,並且還審核了幾本書籍——《Mastering PostCSS Web Design》是 Alex 為 Packt 撰寫的第十一本書。
**目錄**
1. 介紹 PostCSS
2. 創建變數和 mixins
3. 嵌套規則
4. 構建媒體查詢
5. 管理顏色、圖像和字體
6. 創建網格
7. 動畫元素
8. 創建 PostCSS 插件
9. 使用快捷方式、回退和包
10. 構建自定義處理器
11. 操作自定義語法
12. 混合預處理器
13. 排除 PostCSS 問題
14. 為未來做準備