Instant SASS CSS How-to

Alex Libby

  • 出版商: Packt Publishing
  • 出版日期: 2013-03-11
  • 售價: $1,110
  • 貴賓價: 9.5$1,055
  • 語言: 英文
  • 頁數: 80
  • 裝訂: Paperback
  • ISBN: 1782163786
  • ISBN-13: 9781782163787
  • 相關分類: CSS
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

Learn to write more efficient CSS with the help of the SASS CSS library using practical, hands-on recipes

Overview

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results.
  • Learn how to download and install SASS and compile SASS code to validate CSS
  • Learn how to use the various elements of SASS, such as mixins, variables, control directives, and functions to create valid CSS
  • Use an external mixin library such as Compass with SASS to produce exciting effects and learn to create your own mixin library

In Detail

CSS styling has been a key part of developing for the Internet since the early 1990s, but unlike JavaScript, has suffered from the inability to produce dynamic styles, using functions, operators, and variables. SASS uses the power of Ruby to bring support for all three and more to your CSS, allowing you to engage in a more efficient, modular style of working, and making it easier to maintain your CSS styling in your projects.

Instant SASS CSS How-to is a practical, hands-on guide that provides you with a number of clear step-by-step exercises, which will help you take advantage of the power of SASS, and give you a good grounding in writing and compiling CSS style sheets using the SASS pre-processor language.

This book looks at how you can incorporate SASS into your web pages, and either produce style sheets dynamically, or pre-compile them before including the final article into your site’s pages.

You will also learn how you can use the power of mixins, functions, and variables to help produce style sheets, and reduce the amount of code you need to write in your style sheets. We will also take a look at how you can incorporate a more modular style to your development workflow, which will help with making style sheets more manageable and easier to update in the future. We will also take a look at how you can build up libraries of reusable code that you can incorporate into your future projects.

You will learn everything you need to know to start using SASS to help produce more efficient style sheets in your site’s pages, and adopt a more modular development workflow, which will make it easier to maintain your sites in the future.

What you will learn from this book

  • Installing and using SASS in your site
  • Compiling SASS code to produce valid CSS that you can use in your site’s pages
  • Using variables, functions, mixins, control, and CSS-3 directives and operators in your SASS code
  • Viewing SASS code in your browser
  • Employing external mixin libraries such as Compass to add extra functionality to SASS
  • Using SASS and Compass within CMS environments such as Wordpress
  • Creating, importing, or using existing pre-built mixin libraries in your projects
  • Altering your CSS output style in SASS, depending on your requirements

Approach

Filled with practical, step-by-step instructions and clear explanations for the most important and useful tasks. Get the job done and learn as you go. This book is filled with practical, hands-on recipes to help you write SASS quickly and more efficiently.

商品描述(中文翻譯)

學習使用SASS CSS庫以實用的、實際操作的方法來撰寫更高效的CSS。

概述:
- 立即學習新知識!一本短小、快速、專注的指南,能夠立即產生效果。
- 學習如何下載和安裝SASS,並編譯SASS代碼以驗證CSS。
- 學習如何使用SASS的各種元素,如mixin、變量、控制指令和函數,來創建有效的CSS。
- 使用像Compass這樣的外部mixin庫與SASS一起產生令人興奮的效果,並學習創建自己的mixin庫。

詳細內容:
CSS樣式設計自從1990年代初以來一直是網頁開發的重要組成部分,但與JavaScript不同,它無法使用函數、運算符和變量來產生動態樣式。SASS利用Ruby的強大功能,為CSS帶來了對這三個方面的支持,使您能夠以更高效、模塊化的方式工作,並更輕鬆地維護項目中的CSS樣式。

《即時SASS CSS實用指南》是一本實用的、實際操作的指南,提供了一系列清晰的逐步練習,幫助您充分利用SASS的功能,並熟練使用SASS預處理語言編寫和編譯CSS樣式表。

本書介紹了如何將SASS融入您的網頁中,並在將最終文章包含到網站頁面之前,動態生成樣式表或預先編譯樣式表。

您還將學習如何使用mixin、函數和變量的功能來幫助生成樣式表,並減少在樣式表中需要編寫的代碼量。我們還將研究如何將更模塊化的風格融入您的開發工作流程中,這將有助於使樣式表更易於管理並在將來進行更新。我們還將研究如何建立可重用代碼庫,以便將其應用於未來的項目中。

您將學到一切必要的知識,以開始在網站頁面中使用SASS來生成更高效的樣式表,並採用更模塊化的開發工作流程,這將使您更輕鬆地維護您的網站。

本書將教您以下內容:
- 在網站中安裝和使用SASS。
- 編譯SASS代碼以生成可在網站頁面中使用的有效CSS。
- 在SASS代碼中使用變量、函數、mixin、控制和CSS-3指令和運算符。
- 在瀏覽器中查看SASS代碼。
- 使用像Compass這樣的外部mixin庫來為SASS添加額外功能。
- 在WordPress等CMS環境中使用SASS和Compass。
- 創建、導入或使用現有的預建mixin庫在您的項目中。
- 根據需求修改SASS中的CSS輸出風格。

方法:
本書充滿了實用的、逐步指導和清晰解釋,幫助您完成最重要和最有用的任務。在進行工作的同時學習。本書提供了實用的、實際操作的食譜,幫助您快速且更高效地撰寫SASS。