Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis
Author:Wynn Netherland, Nathan Weizenbaum, Chris Eppstein, Brandon Mathis
Language: eng
Format: mobi, epub, pdf
Publisher: Manning
Published: 0101-01-01T00:00:00+00:00
.add-button {
@include icons-sprite(box-add);
}
This will only output the CSS necessary to style this element.
Listing 6.8. Generated single-sprite CSS
.icons-sprite,
.add-button {
background: url('/images/icons-s0cad3f8f97.png') no-repeat;
}
.add-button { background-position: 0 -358px; }
With the single-sprite mixin, it’s not necessary to generate a class name for the sprite styles because it’s included inside of a selector. Compass uses that selector, in this case .add-button, when it adds styles for background-image and background-position. Whereas the all-sprites mixin is nice and easy, this approach generates less CSS and gives you more control of your output.
It’s a nice start, but sometimes you need even more control of the spriting process. Next, you’ll see how Compass gives you the control you need without making you do all the work.
Download
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis.epub
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Hello! Python by Anthony Briggs(9667)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9584)
The Mikado Method by Ola Ellnestam Daniel Brolund(9561)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8091)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7608)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7602)
Grails in Action by Glen Smith Peter Ledbrook(7518)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7332)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6231)
Windows APT Warfare by Sheng-Hao Ma(5412)
Layered Design for Ruby on Rails Applications by Vladimir Dementyev(5141)
Blueprints Visual Scripting for Unreal Engine 5 - Third Edition by Marcos Romero & Brenden Sewell(4988)
Kotlin in Action by Dmitry Jemerov(4874)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(4177)
Functional Programming in JavaScript by Mantyla Dan(3889)
Solidity Programming Essentials by Ritesh Modi(3209)
Mastering Python for Finance by Weiming James Ma;(2987)
WordPress Plugin Development Cookbook by Yannick Lefebvre(2976)
Learning React: Functional Web Development with React and Redux by Banks Alex & Porcello Eve(2972)
