万本电子书0元读

万本电子书0元读

顶部广告

Sass Essentials电子书

售       价:¥

30人正在读 | 0人评论 9.8

作       者:Alex Libby

出  版  社:Packt Publishing

出版时间:2015-07-28

字       数:79.3万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:此类商品不支持退换货,不支持下载打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
This book is primarily aimed at web designers who have a good understanding of CSS, jQuery, and HTML, but who are new to using CSS preprocessing. Some prior knowledge is assumed of WordPress, CSS grids, and Bootstrap, although these skills can be picked up reasonably quickly.
目录展开

Sass Essentials

Table of Contents

Sass Essentials

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

1. Introducing Sass

Getting acquainted with Sass

Preparing our project area

Installing and compiling Sass

Adding Sass support to Sublime Text

Compiling Sass files within Sublime Text

Removing installed packages

Using GUI-based compilers

Installing Koala

Compiling Sass manually

Using Node and Grunt

Testing our installation

Exploring the compilation process

Using source maps

Creating a simple layout

Setting up our compilation process

Preparing the markup and styles

Dissecting the Sass styles

Summary

2. Creating Variables and Mixins

Making a start on our code

Altering the compilation process

Creating variables

Exploring what happened

Using variables to create colors

Working across multiple files

Adapting our color box demo

Adding comments

Building mixins

Moving mixins to an external file

Passing arguments to mixins

Exploring the use of @import

Extending existing styles

Using prebuilt mixin libraries

Animating content using Sass

Adapting existing mixins to use libraries

Summary

3. Building Functions, Operations, and Nested Styles

Creating values using functions and operators

Creating colors using functions

Changing the colors in use

Mixing colors

Using an external library

Changing font sizes using operators

Creating site themes using functions

Creating palettes using functions

Using tools to create palettes

Trying out an alternative palette

Using maps to reference colors

Applying filters using Sassmatic

Recognizing the difference between functions and mixins

Constructing layouts using functions and operators

Reducing code repetition with nesting

Using interpolation

Summary

4. Directing Sass

Working with the @extend directive

Using and abusing multiple inheritance

Exploring the benefits of using @extend

Creating dialog boxes using @extend

Making a site responsive with @media

Installing the Breakpoint mixin for Sass

Retrofitting responsive capabilities to a page

Exploring media bubbling in Sass in more detail

Controlling the outcome of our code

Using the @if directive

Working with the @for directive

Exploring the @each directive

Getting social in Sass

Building animations using Sass

Exploring the key to our animations

Summary

5. Incorporating Sass into Projects

Converting existing projects to use Sass

Incorporating Sass into existing sites

Incorporating CSS grids

Setting up Bourbon Neat

Creating grids with Bourbon Neat

Applying Sass to frameworks, such as Bootstrap

Implementing Bootstrap-Sass

Exploring what happened

Using a CMS system

Choosing a Sass theme for WordPress

Adapting a WordPress theme to use Sass

Using a plugin to compile Sass in WordPress

Compiling code outside of WordPress

Making changes to our WordPress theme

Adding comments to our code

Other projects using Sass

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部