diff options
author | Yan Zhu <picturepan2@hotmail.com> | 2017-10-23 13:49:38 +0300 |
---|---|---|
committer | Yan Zhu <picturepan2@hotmail.com> | 2017-10-23 13:49:38 +0300 |
commit | a5bedbee9893b5b9c1db663a05a5f9978356466a (patch) | |
tree | 02013cf52989271b704894c7484d80a0513c7c4a /src | |
parent | b2d3c9bb46733227046f00a68213a0fc27422f4b (diff) |
Add `active` class to the Off-canvas support #308
Diffstat (limited to 'src')
-rw-r--r-- | src/_off-canvas.scss | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/_off-canvas.scss b/src/_off-canvas.scss index 29d4ea6..009f9f0 100644 --- a/src/_off-canvas.scss +++ b/src/_off-canvas.scss @@ -42,11 +42,13 @@ $off-canvas-breakpoint: 960px !default; } .off-canvas-sidebar { - &:target { + &:target, + &.active { transform: translateX(0); } - &:target ~ .off-canvas-overlay { + &:target ~ .off-canvas-overlay, + &.active ~ .off-canvas-overlay { display: block; z-index: $zindex-2; } |