Sha256: bbad80e2d3a29e6276a1223fea42e0307fa6f7dd810028d202bd57d92cc00cac

Contents?: true

Size: 493 Bytes

Versions: 6

Compression:

Stored size: 493 Bytes

Contents

// 
// Add an icon to an inline element. E.g anchor or span
// Pass through an asset, and optionally a padding value, x-position and y-position.
//

@mixin inline-icon($img, $spacing:5px, $pos: left) {
	background-image:image-url($img);
	background-repeat: no-repeat; 
	@if $pos == right {
		background-position: right top;
		text-align: right;
	} @else {
		background-position: left top;
		text-align: left;
	}
	line-height:image-height($img);
	padding-#{$pos}:image-width($img) + $spacing;
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
stitch-0.1.7.beta.3 stylesheets/stitch/patterns/images/_inline-icon.scss
stitch-0.1.7.beta.2 stylesheets/stitch/patterns/images/_inline-icon.scss
stitch-0.1.7.beta.1 stylesheets/stitch/patterns/images/_inline-icon.scss
stitch-0.1.6 stylesheets/stitch/patterns/images/_inline-icon.scss
stitch-0.1.5 stylesheets/stitch/patterns/images/_inline-icon.scss
stitch-0.1.4 stylesheets/stitch/patterns/images/_inline-icon.scss