diff options
Rewrite Off-canvas example and code
1 files changed, 14 insertions, 14 deletions
| -rw-r--r-- | docs/dist/spectre-exp.css | 28 |
diff --git a/docs/dist/spectre-exp.css b/docs/dist/spectre-exp.css index 2e19b40..aa6666a 100644 --- a/docs/dist/spectre-exp.css +++ b/docs/dist/spectre-exp.css @@ -552,7 +552,6 @@ -ms-flex-flow: nowrap; flex-flow: nowrap; height: 100%; - min-height: 100vh; position: relative; width: 100%; } @@ -574,38 +573,39 @@ -ms-flex: 1 1 auto; flex: 1 1 auto; height: 100%; - padding: .8rem .8rem .8rem 4rem; + padding: .4rem .4rem .4rem 4rem; } -.off-canvas .off-canvas-sidebar:target { - transform: translateX(0); -} - -.off-canvas .off-canvas-sidebar:target ~ .off-canvas-overlay { +.off-canvas .off-canvas-overlay { background: rgba(69, 77, 93, .1); border-color: transparent; border-radius: 0; bottom: 0; - display: block; + display: none; height: 100%; left: 0; position: fixed; right: 0; top: 0; width: 100%; +} + +.off-canvas .off-canvas-sidebar:target { + transform: translateX(0); +} + +.off-canvas .off-canvas-sidebar:target ~ .off-canvas-overlay { + display: block; z-index: 200; } .off-canvas .off-canvas-toggle { display: block; - left: .8rem; - padding-left: 0; - padding-right: 0; + left: .4rem; position: absolute; - top: .8rem; + top: .4rem; transition: none; - width: 2rem; - z-index: 200; + z-index: 1; } @media (min-width: 960px) { |