Skip to content

Commit

Permalink
Merge pull request #5 from Leimi/master
Browse files Browse the repository at this point in the history
Updated image-replacement mixin
  • Loading branch information
sporkd committed Mar 28, 2012
2 parents 46e5c6c + 0a77265 commit 1eea7d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions stylesheets/h5bp/_helpers.scss
Expand Up @@ -18,12 +18,11 @@

// For image replacement
@mixin image-replacement($img: none, $x: 50%, $y: 50%) {
display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; *line-height: 0;
border: 0; font: 0/0 a; text-shadow: none; color: transparent; background-color: transparent;
@if $img != none {
background-image: image-url($img);
background-position: $x $y;
}
br { display: none; }
}

// Uses image dimensions
Expand Down
3 changes: 1 addition & 2 deletions test/project/sass/original.scss
Expand Up @@ -252,8 +252,7 @@ td { vertical-align: top; }
========================================================================== */

/* For image replacement */
.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; *line-height: 0; }
.ir br { display: none; }
.ir { border: 0; font: 0/0 a; text-shadow: none; color: transparent; background-color: transparent; }

/* Hide from both screenreaders and browsers: h5bp.com/u */
.hidden { display: none !important; visibility: hidden; }
Expand Down

0 comments on commit 1eea7d8

Please sign in to comment.