Created
December 6, 2016 17:15
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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