Created
June 4, 2015 11:41
-
-
Save erikpantzar/e13b9d4bc7c81e7d8925 to your computer and use it in GitHub Desktop.
sass map and for loop
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 characters
| .share-container { | |
| float: left; | |
| display: block; | |
| a { | |
| $link-size: 30px; | |
| width: $link-size; | |
| height: $link-size; | |
| line-height: $link-size; | |
| display: inline-block; | |
| } | |
| } | |
| @mixin shareLink($media) { | |
| background: url('#{$ui-assets}img/icons/#{$media}.png') center center no-repeat; | |
| background-size: 100%; | |
| } | |
| $share-media: "twitter", "linkedin", "facebook", "mail", "print"; | |
| @each $media in $share-media { | |
| .share-#{$media} { | |
| @include shareLink($media); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment