Skip to content

Instantly share code, notes, and snippets.

@bdalziel
Created November 6, 2012 00:15
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 bdalziel/4021373 to your computer and use it in GitHub Desktop.
Save bdalziel/4021373 to your computer and use it in GitHub Desktop.
Scaling the zoom boundary
.zoom-100 { .zoomStep(100%); }
.zoom-125 { .zoomStep(125%); }
.zoom-150 { .zoomStep(150%); }
.zoom-175 { .zoomStep(175%); }
.zoom-200 { .zoomStep(200%); }
.zoom-225 { .zoomStep(225%); }
.zoom-250 { .zoomStep(250%); }
.zoom-275 { .zoomStep(275%); }
.zoom-300 { .zoomStep(300%); }
@boundaryScale: 2;
.zoomStep(@zoomFactor) {
@boundarySize: (@boundaryScale * @zoomFactor);
.zoomBoundary {
width: @boundarySize;
height: @boundarySize;
top: (0 - (@boundarySize - 100%)/2);
left: (0 - (@boundarySize - 100%)/2);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment