Created
May 8, 2014 14:34
-
-
Save starryeyez024/8d0cb1b6ffd7f941f262 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
Node One | |
<div class"field-item"> | |
<a href="/college/science">Science</a> | |
</div> | |
Node two | |
<div class"field-item"> | |
<a href="/college/humanities">Humanities</a> | |
</div> | |
Node three | |
<div class"field-item"> | |
<a href="/college/education">Education</a> | |
</div> |
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
// ---- | |
// Sass (v3.3.7) | |
// Compass (v) | |
// Breakpoint (v) | |
// Singularity.gs (v) | |
// ---- | |
@import "breakpoint" | |
@import "compass" | |
@import "singularitygs" | |
$list: science humanities education | |
@mixin colleges | |
@each $college in $list | |
.#{$college}-icon | |
background-image: url('/images/#{$college}.png') | |
.field-item | |
+colleges |
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
.field-item .science-icon { | |
background-image: url("/images/science.png"); | |
} | |
.field-item .humanities-icon { | |
background-image: url("/images/humanities.png"); | |
} | |
.field-item .education-icon { | |
background-image: url("/images/education.png"); | |
} |
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
Node One | |
<div class"field-item"> | |
<a href="/college/science">Science</a> | |
</div> | |
Node two | |
<div class"field-item"> | |
<a href="/college/humanities">Humanities</a> | |
</div> | |
Node three | |
<div class"field-item"> | |
<a href="/college/education">Education</a> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment