]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Go back to only offsetting the off-canvas panel by the size rather than 100% - makes...
authorBrett Mason <brettsmason@gmail.com>
Thu, 17 Nov 2016 15:58:54 +0000 (15:58 +0000)
committerBrett Mason <brettsmason@gmail.com>
Thu, 17 Nov 2016 15:58:54 +0000 (15:58 +0000)
scss/components/_off-canvas.scss

index 27115e83867882ba9b8312782398249e90081d2c..6b29d29d39584b0de9baf1d39efb04182a063455 100644 (file)
@@ -157,7 +157,7 @@ $maincontent-background: $body-background !default;
     width: $size;
     height: 100%;
 
-    transform: translateX(-100%);
+    transform: translateX(-$size);
     overflow-y: auto;
 
     // Sets the open position for the content
@@ -172,7 +172,7 @@ $maincontent-background: $body-background !default;
     width: $size;
     height: 100%;
 
-    transform: translateX(100%);
+    transform: translateX($size);
     overflow-y: auto;
 
     // Sets the open position for the content
@@ -187,7 +187,7 @@ $maincontent-background: $body-background !default;
     width: 100%;
     height: $size;
 
-    transform: translateY(-100%);
+    transform: translateY(-$size);
     overflow-x: auto;
 
     // Sets the open position for the content
@@ -202,7 +202,7 @@ $maincontent-background: $body-background !default;
     width: 100%;
     height: $size;
 
-    transform: translateY(100%);
+    transform: translateY($size);
     overflow-x: auto;
 
     // Sets the open position for the content