Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/picturepan2/spectre.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorYan Zhu <picturepan2@hotmail.com>2017-09-11 11:39:18 +0300
committerYan Zhu <picturepan2@hotmail.com>2017-09-11 11:39:18 +0300
commit0956fd0528e2465720192b4240435f871d928520 (patch)
treee44e7016b44998756c68cfc297c2d62f57bdbf25 /docs
parentee51332b0d70db166af394fc9a7a2442a4dec8aa (diff)
Fix off-screen menu bug
Diffstat (limited to 'docs')
-rw-r--r--docs/css/docs.css9
-rw-r--r--docs/src/docs.scss11
2 files changed, 20 insertions, 0 deletions
diff --git a/docs/css/docs.css b/docs/css/docs.css
index 5a93dd9..1d8a83e 100644
--- a/docs/css/docs.css
+++ b/docs/css/docs.css
@@ -429,6 +429,15 @@
.s-sidebar:target + .docs-nav-clear {
display: block;
}
+ .s-sidebar .s-brand {
+ margin-top: -1.7rem;
+ padding: 0;
+ position: static;
+ }
+ .s-sidebar .s-nav {
+ margin-top: 2rem;
+ position: static;
+ }
.s-sidebar .menu .menu-item > a {
padding: .3rem .4rem;
}
diff --git a/docs/src/docs.scss b/docs/src/docs.scss
index 2611c0d..5856ba3 100644
--- a/docs/src/docs.scss
+++ b/docs/src/docs.scss
@@ -426,6 +426,17 @@
}
}
+ .s-brand {
+ margin-top: -1.7rem;
+ padding: 0;
+ position: static;
+ }
+
+ .s-nav {
+ margin-top: 2rem;
+ position: static;
+ }
+
.menu .menu-item > a {
padding: .3rem .4rem;
}