Instant LESS CSS Preprocessor How-to (即時 LESS CSS 預處理器實用指南)

Alex Libby

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

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

相關主題

商品描述

Practical, hands-on recipes to write more efficient CSS, with the help of the LESS CSS Preprocessor library

Overview

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results.
  • Use mixins, functions, and variables to dynamically auto-generate styles, based on minimal existing values.
  • Use the power of LESS to produce style sheets dynamically, or incorporate precompiled versions into your code.
  • Learn how to use existing mixin libraries, or to create your own that you can reuse in future projects

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. LESS brings the power of all three and more to your CSS, allowing you to engage a more efficient, modular style of working, and making it easier to maintain your CSS styling in your projects.

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

This book looks at how you can incorporate LESS 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 LESS 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

  • Install and use LESS into your site.
  • Produce dynamic style sheets, or precompiling and including the final articles into your site’s pages.
  • Use variables, functions, mixins, and operators in your LESS code.
  • Use JavaScript to produce styles in your LESS code.
  • Use LESS with other libraries, such as Modernizr.
  • Create, import or use existing pre-built mixin libraries in your projects.
  • Use existing mixin libraries, or create your own, that you can reuse in future projects.
  • Learn how to write more efficient CSS, using LESS.

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. A how-To book with practical recipes accompanied with rich screenshots for easy comprehension.This book takes the How-to series approach to help you learn most important tasks through recipes

商品描述(中文翻譯)

實用的、實際操作的食譜,以 LESS CSS 預處理器庫的幫助來撰寫更高效的 CSS。

概述:
- 立即學習新知識!一本短小、快速、專注的指南,能立即產生效果。
- 使用 mixins、函數和變數來根據最小的現有值動態生成樣式。
- 利用 LESS 的強大功能來動態生成樣式表,或將預編譯版本整合到您的代碼中。
- 學習如何使用現有的 mixin 库,或創建自己的 mixin 库,以便在未來的項目中重複使用。

詳細內容:
CSS樣式設計自1990年代初以來一直是網頁開發的重要組成部分,但與JavaScript不同,它無法使用函數、運算符和變數來生成動態樣式。LESS將這三者的功能和更多功能引入到CSS中,使您能夠更高效、模塊化地工作,並更容易維護項目中的CSS樣式。

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

本書介紹了如何將LESS整合到您的網頁中,並在最終文章包含之前動態生成樣式表或預編譯它們。

您還將學習如何使用mixins、函數和變數來生成樣式表,並減少在樣式表中編寫的代碼量。我們還將介紹如何將更模塊化的風格融入您的開發工作流程中,這將有助於使樣式表更易於管理和更新。我們還將介紹如何建立可重複使用的代碼庫,以便將其整合到未來的項目中。

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

本書的學習重點:
- 安裝和使用LESS。
- 動態生成樣式表,或預編譯並將最終文章包含到網站的頁面中。
- 在LESS代碼中使用變數、函數、mixins和運算符。
- 使用JavaScript在LESS代碼中生成樣式。
- 將LESS與其他庫(如Modernizr)一起使用。
- 創建、導入或使用現有的預建mixins庫。
- 使用現有的mixin庫,或創建自己的庫,以便在未來的項目中重複使用。
- 學習如何使用LESS編寫更高效的CSS。

方法:
本書充滿了實用的、逐步指導和清晰解釋最重要和最有用的任務。在執行任務的同時學習。這是一本帶有實用食譜和豐富截圖的指南,易於理解。本書採用了How-to系列的方法,幫助您通過食譜學習最重要的任務。