Skip to content

Instantly share code, notes, and snippets.

@eduardojmatos
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eduardojmatos/9467460 to your computer and use it in GitHub Desktop.
Save eduardojmatos/9467460 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0)
// Compass (v1.0.0.alpha.18)
// ----
$profile_themes: (
basic: (
title: (
color: blue,
font-family: Arial
),
subtitle: (
color: red,
font-family: Tahoma
)
),
experimental: (
title: (
color: #000,
font-family: Verdana
),
subtitle: (
color: #CCC,
font-family: Tahoma
)
)
);
@each $theme_name, $theme_items in $profile_themes {
.theme-#{$theme_name} {
@each $theme_properties_name, $theme_properties in $theme_items {
.#{$theme_properties_name} {
@each $item_attr, $item_value in $theme_properties {
#{$item_attr}: $item_value;
}
}
}
}
}
.theme-basic .title {
color: blue;
font-family: Arial;
}
.theme-basic .subtitle {
color: red;
font-family: Tahoma;
}
.theme-experimental .title {
color: black;
font-family: Verdana;
}
.theme-experimental .subtitle {
color: #cccccc;
font-family: Tahoma;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment