From 02de891a9296005f6f4e2f7430de847d7b421c74 Mon Sep 17 00:00:00 2001 From: Brett Mason Date: Wed, 30 Nov 2016 21:02:34 +0000 Subject: [PATCH] Set the default off canvas panel behaviour to use `position: absolute`to match current live behaviour. Added an alternative class of `off-canvas-fixed` to set a menu to be `position: fixed` allowing you to use both types at the same time. --- scss/components/_off-canvas.scss | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scss/components/_off-canvas.scss b/scss/components/_off-canvas.scss index 63c8bdc68..2deefbccd 100644 --- a/scss/components/_off-canvas.scss +++ b/scss/components/_off-canvas.scss @@ -24,7 +24,7 @@ $offcanvas-shadow: 0 0 10px rgba($black, 0.7) !default; /// If `true`, an off-canvas panel will be fixed-position, and scroll with the screen. Otherwise it will be absolute positioned. /// @type Bool -$offcanvas-fixed: true !default; +$offcanvas-fixed: false !default; /// Z-index of an off-canvas panel with the `push` transition. /// @type Number @@ -286,6 +286,11 @@ $content: $maincontent-class @include off-canvas-base; } + // Off-canvas container with fixed position + .off-canvas-fixed { + @include off-canvas-base($fixed: true); + } + // Off-canvas position classes .position-left { @include off-canvas-position(left, horizontal); } .position-right { @include off-canvas-position(right, horizontal); } -- 2.47.2