From 8e2df63afcfc02372d815fde5994b81d0726c79d Mon Sep 17 00:00:00 2001
From: Gitshaoxiang <1026025056@qq.com>
Date: Wed, 1 Apr 2020 17:47:07 +0800
Subject: [PATCH] change tutorial anchor long content style
---
docs/assets/css/main-min.css | 18 ++++++------------
docs/index.html | 2 +-
2 files changed, 7 insertions(+), 13 deletions(-)
diff --git a/docs/assets/css/main-min.css b/docs/assets/css/main-min.css
index 35c09a49..74cea07a 100644
--- a/docs/assets/css/main-min.css
+++ b/docs/assets/css/main-min.css
@@ -28,9 +28,8 @@ img {
}
.markdown-section {
- max-width: 80%;
+ max-width: 75%;
margin-top: 50px;
- padding: 2rem 10px 2rem 60px;
}
.markdown-section a {
@@ -337,7 +336,7 @@ div.card-img-overlay:hover {
}
.product_page {
- margin-left: 110px;
+ margin-left: 60px;
margin-top: 100px
}
@@ -828,7 +827,7 @@ mark {
.anchor-box {
position: fixed;
top: 30%;
- left: 25px;
+ left: 50px;
display: -webkit-flex;
display: flex;
flex-direction: column;
@@ -906,25 +905,20 @@ mark {
@media screen and (max-width:1580px) {
.anchor-box {
- left: 10px
+ left: 30px
}
}
-@media screen and (max-width:1445px) {
- .anchor-box {
- left: -10px
- }
-}
@media screen and (max-width:1260px) {
.anchor-box {
- left: -35px
+ left: 0px
}
}
@media screen and (max-width:1000px) {
.anchor-box {
- left: -60px
+ left: -30px
}
}
diff --git a/docs/index.html b/docs/index.html
index bf4c5ca5..c68e6274 100755
--- a/docs/index.html
+++ b/docs/index.html
@@ -389,7 +389,7 @@
})
}
}else if((page_url.indexOf(/uiflow/) != -1)||(page_url.indexOf(/arduino/) != -1)||(page_url.indexOf(/quick_start/) != -1)){
- $(".anchor-box").append(Part_A+quickstart_icon+'');
+ $(".anchor-box").append(Part_A+quickstart_icon+''+anchor_name.toUpperCase()+'');
}
}
function anchor_search(purchase_link="none",quickstart_link="none"){