Skip to content

Instantly share code, notes, and snippets.

@meramos
Created December 21, 2020 15:27
Show Gist options
  • Save meramos/fdd3d7e154863a9269d393cf8596c7b6 to your computer and use it in GitHub Desktop.
Save meramos/fdd3d7e154863a9269d393cf8596c7b6 to your computer and use it in GitHub Desktop.
Position "next" buttons.
$items: ("eyes": 9, "ears": 3, "mouth": 4, "nose": 3, "clothes": 3);
// Position "next" buttons
$height: 410px;
@each $item, $total in $items {
$height: $height + 30px; //buttons will have 30px in between (vertically)
#next#{$item}{
position:absolute;
left:600px;
top: $height;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment