Skip to content
This repository has been archived by the owner on Jan 31, 2018. It is now read-only.

Commit

Permalink
Merge branch 'make-all-the-sprites'
Browse files Browse the repository at this point in the history
  • Loading branch information
pmac committed May 7, 2012
2 parents 47a43b3 + 42230c4 commit 4edb75e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
Binary file added media/img/sprites.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion media/socialshare.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added src/img/sprites.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 11 additions & 16 deletions src/style.less
Expand Up @@ -8,22 +8,21 @@

@font-family: 'OpenSans', "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;

@heart-non-active: url('img/heart.png');
@sprites: url('img/sprites.png') no-repeat top left;

@heart-active: url('img/heart-hover.png');

@caret-non-active: url('img/caret.png');

@caret-active: url('img/caret-open.png');
.sprite-caret-open { background-position: 0 0; width: 9px; height: 7px; }
.sprite-caret { background-position: 0 -12px; width: 9px; height: 7px; }
.sprite-heart-hover { background-position: 0 -24px; width: 11px; height: 10px; }
.sprite-heart { background-position: 0 -39px; width: 11px; height: 10px; }

.share-active-state {
color: @active-colour;
.heart {
background-image: @heart-active;
.sprite-heart-hover;
}
.caret {
div {
background-image: @caret-active;
.sprite-caret-open;
}
}
.text{
Expand Down Expand Up @@ -56,21 +55,17 @@
.rounded(3px);
.box-shadow(~'0 0 .25px rgba(0, 0, 0, 0.3)', ~'inset 0 -2px rgba(0, 0, 0, 0.1)');
div {
width: 9px;
height: 7px;
margin: 5px auto 0;
background: no-repeat center;
background-image: @caret-non-active;
background: @sprites;
.sprite-caret;
}
}

.heart {
margin: 9px 5px 0 0;
float: left;
background: no-repeat center;
background-image: @heart-non-active;
width: 12px;
height: 10px;
background: @sprites;
.sprite-heart;
}

.text {
Expand Down

0 comments on commit 4edb75e

Please sign in to comment.