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(10142)
The Mikado Method by Ola Ellnestam Daniel Brolund(10039)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9997)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8540)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7936)
Grails in Action by Glen Smith Peter Ledbrook(7903)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7872)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7784)
Windows APT Warfare by Sheng-Hao Ma(7580)
Layered Design for Ruby on Rails Applications by Vladimir Dementyev(7319)
Blueprints Visual Scripting for Unreal Engine 5 - Third Edition by Marcos Romero & Brenden Sewell(7224)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6663)
Kotlin in Action by Dmitry Jemerov(5311)
Solidity Programming Essentials by Ritesh Modi(4435)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(4396)
WordPress Plugin Development Cookbook by Yannick Lefebvre(4241)
Unity 3D Game Development by Anthony Davis & Travis Baptiste & Russell Craig & Ryan Stunkel(4156)
Functional Programming in JavaScript by Mantyla Dan(4143)
The Ultimate iOS Interview Playbook by Avi Tsadok(4132)
