Skip to content

Instantly share code, notes, and snippets.

@cdharrison
Created January 9, 2014 16:54
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 cdharrison/8337649 to your computer and use it in GitHub Desktop.
Save cdharrison/8337649 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
$grey: #777;
$logosize: 31;
$blockpercent: 7%;
// Calculate the proper size of the blocks
@function block-calc($n){
@return $blockpercent * $n;
}
$blockheight: #{block-calc($logosize)};
@mixin block-global{
height: #{$blockheight};
border-radius: 20%;
position: absolute;
background: $grey;
}
.block-global{
@include block-global;
}
.block-global {
height: 217%;
border-radius: 20%;
position: absolute;
background: #777777;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment