Last active
August 29, 2015 14:15
-
-
Save Razenbull/a23f08da967ba0ea7af4 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains 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.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
$features: ( | |
forest: ('leafy', 'resinous', 'mixed', 'unworkable'), | |
culture: ('agroforestry', 'field', 'orchad', 'prairie'), | |
road: ('road', 'firewall', 'firewall2'), | |
water: ('water', 'pond', 'watercourse'), | |
housing: ('default') | |
); | |
@each $feature, $item in $features { | |
.panel-default .panel-heading { | |
&.panel-heading-#{$feature} { | |
background: url("/images/icons/#{$feature}.png") no-repeat scroll left center / 15% auto red; | |
} | |
} | |
@each $i in $item { | |
.panel-default .panel-collapse { | |
li[class$="#{$i}"] {; | |
background: url("/images/icons/#{$feature}_#{$i}.png") no-repeat scroll left center / 15% auto red; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment