Last active
December 14, 2015 19:18
-
-
Save andrewrocco/5135418 to your computer and use it in GitHub Desktop.
Revisions
-
andrewrocco revised this gist
Mar 11, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ // Setting Networks in sprite order from top to bottom $networks: youtube, blogger, dribbble, email, facebook, twitter; // Setting background sprite (separated for readability) .social-icons li a { background: url(icon-sprite.png) no-repeat 0 0; } // Iterating and multiplying! -
andrewrocco revised this gist
Mar 11, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,7 @@ $networks: youtube, blogger, dribbble, email, facebook, twitter; // Iterate through the 'networks' array @for $i from 0 to length($networks) { &.#{nth($networks, $i + 1)} a { background-position: 0 ( -$i * $iconHeight ); } } -
andrewrocco created this gist
Mar 11, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ // Setting Networks in Sprite Order $networks: youtube, blogger, dribbble, email, facebook, twitter; // Setting background sprite (separated for readability .social-icons li a { background: url(icon-sprite.png) no-repeat 0 0; } // Iterating and multiplying! .social-icons { li { // Set the icon height $iconHeight: 32px; // Iterate through the 'networks' array @for $i from 0 to length($networks) { &.#{nth($networks, $i+1)} a { background-position: 0 ( -$i * $iconHeight ); } } } }