Skip to content

Instantly share code, notes, and snippets.

@rocbear
Last active September 4, 2015 12:41
Show Gist options
  • Save rocbear/4fe927af7fd186a4928d to your computer and use it in GitHub Desktop.
Save rocbear/4fe927af7fd186a4928d to your computer and use it in GitHub Desktop.
SCSS place something in the four corners of a container [with Bourbon]
@for $i from 1 through 4 {
.corner:nth-child(#{$i}){
@include position(absolute, if($i < 3, 0, auto) if($i % 2 == 0, 0, auto) if($i > 2, 0, auto) if($i % 2 != 0, 0, auto));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment