Summary Files Commits Branches @commit @diff @stats
path: root / docs / dist / spectre-exp.css
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/dist/spectre-exp.css
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, 14 insertions, 14 deletions
-rw-r--r--docs/dist/spectre-exp.css28
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) {