From 1b3c17ac24b6dcecfe0fa97d5ec450c34ffe7d78 Mon Sep 17 00:00:00 2001 From: shaoxiang <1026025056@qq.com> Date: Mon, 22 Jul 2019 21:11:52 +0800 Subject: [PATCH] add navigation to top button --- docs/assets/css/main.css | 37 +++++++++++++------ docs/en/core/m5stickc.md | 4 +-- docs/index.html | 72 ++++++++++++++++--------------------- docs/zh_CN/core/m5stickc.md | 13 +++++++ docs/zh_CN/faq.md | 2 +- 5 files changed, 74 insertions(+), 54 deletions(-) diff --git a/docs/assets/css/main.css b/docs/assets/css/main.css index 1cb6f012..85c0fc92 100644 --- a/docs/assets/css/main.css +++ b/docs/assets/css/main.css @@ -488,10 +488,26 @@ div.card-img-overlay:hover{ } +.d-flex{ + z-index: 9999; + position: fixed; + top: 0; + right: 0; + left: 0; +} + + + .btn-toggle { display: none; } +.back_top{ + position: fixed; + right: 150px; + bottom: 150px; +} + @media screen and (max-width: 768px){ .d-flex { display: none !important; @@ -566,6 +582,12 @@ div.card-img-overlay:hover{ max-width: 80%; margin-top: 0px; } + + .markdown-section { + max-width: 100%; + margin-top: 50px; + + } .banner div.card-img-overlay h4{ font-size: 2em; color: #fff; @@ -575,14 +597,9 @@ div.card-img-overlay:hover{ margin-left: 0px; } + .back_top{ + position: fixed; + right: 10px; + bottom: 150px; + } } - -.d-flex{ - z-index: 9999; - position: fixed; - top: 0; - right: 0; - left: 0; -} - - diff --git a/docs/en/core/m5stickc.md b/docs/en/core/m5stickc.md index 4ba37937..a2c46cc7 100644 --- a/docs/en/core/m5stickc.md +++ b/docs/en/core/m5stickc.md @@ -1,6 +1,6 @@ # M5StickC {docsify-ignore-all} -gray_02 +gray_02 * * * @@ -36,9 +36,9 @@ M5stickC is one of the core devices in M5Stack product series which is built in - 1, Connect G0 to 3V3. - 2. Plug in the USB cable. - 3, The screen will light up and leave the USB to charge the device.


+ - ## Product Features diff --git a/docs/index.html b/docs/index.html index 67f7345f..03530186 100644 --- a/docs/index.html +++ b/docs/index.html @@ -31,7 +31,8 @@
-
M5Stack Document
+
M5Stack Docs
+
loading...
+