Skip to content

Commit

Permalink
the glory.. and majesty.. of compass sprites.
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Jennings <[email protected]>
  • Loading branch information
Ian Jennings committed Nov 7, 2013
1 parent 8fe8ca7 commit 34ad723
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
6 changes: 4 additions & 2 deletions app/styles/login.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,17 @@
background:#3b5998;

.icon{
background-image:url(../images/facebook-24.png);
@extend .icons-facebook-24;
@include sprite-background-position($icons-sprites, facebook-24, 5px, 6px);
}
}

&.btn-signin-twitter{
background:#00acee;

.icon{
background-image:url(../images/twitter-24.png);
@extend .icons-twitter-24;
@include sprite-background-position($icons-sprites, twitter-24, 6px, 5px);
}
}
}
Expand Down
16 changes: 10 additions & 6 deletions app/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ $almostWhite: rgba($black,.04);
@import 'compass';
@import 'responsive';
@import 'mixins/triangle';
@import 'login';

$icons-spacing: 20px;
@import '../images/icons/*.png';
@include all-icons-sprites;

@import 'login';


$green: green;
Expand Down Expand Up @@ -78,16 +81,17 @@ button {
width:16px;
height:16px;
background-repeat:no-repeat;
margin-left:3px;
margin: 0 0 0 3px;


&.icon-tw-white{
background-image:url(../images/twitter-16.png);
background-position:0px 2px;
@extend .icons-twitter-16;
@include sprite-background-position($icons-sprites, twitter-16, 0, 2px);
}

&.icon-fb-white{
background-image:url(../images/facebook-16.png);
background-position:0px 1px;
@extend .icons-facebook-16;
@include sprite-background-position($icons-sprites, facebook-16, 0, 1px);
}
}
}
Expand Down

0 comments on commit 34ad723

Please sign in to comment.