Skip to content

Instantly share code, notes, and snippets.

@jensgro
Created February 21, 2014 17:05
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 jensgro/9138432 to your computer and use it in GitHub Desktop.
Save jensgro/9138432 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.2.14)
// Compass (v0.12.2)
// ----
/* As we are used to use it */
@for $level from 0 to 5 {
.tagcloud-#{$level + 1} {
font-size: .7em + ($level * .5em);
}
}
/* ========================= */
/* simpler, without calculating inside interpolation */
@for $level from 1 to 6 {
.tag-#{$level} {
font-size: .7em + ($level * .5em);
}
}
/* As we are used to use it */
.tagcloud-1 { font-size: 0.7em; }
.tagcloud-2 { font-size: 1.2em; }
.tagcloud-3 { font-size: 1.7em; }
.tagcloud-4 { font-size: 2.2em; }
.tagcloud-5 { font-size: 2.7em; }
/* ========================= */
/* simpler, without calculating inside interpolation */
.tag-1 { font-size: 1.2em; }
.tag-2 { font-size: 1.7em; }
.tag-3 { font-size: 2.2em; }
.tag-4 { font-size: 2.7em; }
.tag-5 { font-size: 3.2em; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment