Skip to content

Instantly share code, notes, and snippets.

@chrismcintosh
Created December 6, 2016 17:15
Show Gist options
  • Save chrismcintosh/a7f545d64f49b78927e3bdec2fe3722b to your computer and use it in GitHub Desktop.
Save chrismcintosh/a7f545d64f49b78927e3bdec2fe3722b to your computer and use it in GitHub Desktop.
If you would like to set each off-canvas area separately you can use the below code as a model for modify a single off-canvas area
/* Set foundation 6 off canvas size independant of global settings*/
$offcanvas-right-size: 300px;
.is-open-right {
-webkit-transform: translateX(-$offcanvas-right-size);
-ms-transform: translateX(-$offcanvas-right-size);
transform: translateX(-$offcanvas-right-size);
}
.off-canvas.position-right {
width: $offcanvas-right-size;
right: -$offcanvas-right-size;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment