Summary Files Commits Branches @commit @diff @stats
path: root / docs / src
diff options
context:
space:
mode:
Commitb2d3c9bb46733227046f00a68213a0fc27422f4b (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-10-18 16:06:15 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-10-18 16:06:15 +0800
Filesd0c3ac3a8563ce12b20029bf73f3a0f5b083418a /docs/src
Spectre-Dark-Gruvbox-b2d3c9bb46733227046f00a68213a0fc27422f4b.tar
Spectre-Dark-Gruvbox-b2d3c9bb46733227046f00a68213a0fc27422f4b.tar.gz
Spectre-Dark-Gruvbox-b2d3c9bb46733227046f00a68213a0fc27422f4b.zip
Parente018687db3924b80445b6e917d744e2efab1e6bb (diff)
Rewrite Off-canvas example and code
1 files changed, 11 insertions, 5 deletions
-rw-r--r--docs/src/docs.scss16
diff --git a/docs/src/docs.scss b/docs/src/docs.scss
index 3a88102..f441630 100644
--- a/docs/src/docs.scss
+++ b/docs/src/docs.scss
@@ -18,10 +18,6 @@
.off-canvas-sidebar {
width: 12rem;
}
-
- .off-canvas-content {
- padding: 0 4rem;
- }
}
.docs-navbar {
@@ -85,6 +81,10 @@
flex: 1 1 auto;
width: calc(100vw - 12rem);
+ &.off-canvas-content {
+ padding: 0 4rem;
+ }
+
& > .container {
margin-left: 0;
max-width: 800px;
@@ -282,8 +282,14 @@
}
.off-canvas {
- height: 20rem;
position: relative;
+
+ .off-canvas-toggle {
+ left: $layout-spacing;
+ position: absolute;
+ top: $layout-spacing;
+ z-index: $zindex-0;
+ }
}
}