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.
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9119)
Hello! Python by Anthony Briggs(9101)
The Mikado Method by Ola Ellnestam Daniel Brolund(9029)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(7584)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7198)
Grails in Action by Glen Smith Peter Ledbrook(7075)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(6835)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(6792)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(5632)
Kotlin in Action by Dmitry Jemerov(4390)
Functional Programming in JavaScript by Mantyla Dan(3598)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(2771)
Learning Java by Patrick Niemeyer & Daniel Leuck(2734)
Learning React: Functional Web Development with React and Redux by Banks Alex & Porcello Eve(2670)
Architecting Modern Java EE Applications: Designing lightweight, business-oriented enterprise applications in the age of cloud, containers, and Java EE 8 by Daschner Sebastian(2450)
Mastering Java 9 by Dr. Edward Lavieri(2439)
Mastering Python for Finance by Weiming James Ma;(2407)
Learning Concurrency in Python by Elliot Forbes(2405)
Pandas Cookbook by Theodore Petrou(2377)
