change anchor position

This commit is contained in:
Gitshaoxiang
2020-04-01 18:21:08 +08:00
parent 6301701f2e
commit 874bdbb8f1
3 changed files with 39 additions and 18 deletions
+10 -4
View File
@@ -254,7 +254,7 @@ body[data-page="zh_CN/quick_start/m5stickc/m5stickc_quick_start.md"] article.mar
.mask-btn1 {
position: relative;
top: 60px;
top: 50px;
left: 30px
}
@@ -905,7 +905,7 @@ mark {
@media screen and (max-width:1580px) {
.anchor-box {
left: 30px
left: 20px
}
}
@@ -916,9 +916,15 @@ mark {
}
}
@media screen and (max-width:1000px) {
@media screen and (max-width:1100px) {
.anchor-box {
left: -30px
left: -12px
}
}
@media screen and (max-width:980px) {
.anchor-box {
left: -34px
}
}
+28 -13
View File
@@ -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
}
}
@@ -1169,4 +1163,25 @@ table tr:nth-child(odd) {
display: block !important;
overflow: scroll;
}
}
}
.files_download {
display: flex;
flex-direction: row;
justify-content: space-evenly;
flex-wrap: wrap;
margin: 45px;
}
.files_download .item{
display: flex;
justify-content: center;
width: 200px;
box-shadow: 4px 4px 7px 0px #cecece;
transition:all .25s ease;
}
.files_download .item:hover{
transform:scale(1.2);
}
+1 -1
View File
@@ -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+'<span style="line-height: 35px;" title=\''+anchor_name.toUpperCase()+'\'>'+anchor_name.toUpperCase()+'</span></a>');
$(".anchor-box").append(Part_A+quickstart_icon+'<span style="line-height: 35px;" title=\''+anchor_name+'\'>'+anchor_name+'</span></a>');
}
}
function anchor_search(purchase_link="none",quickstart_link="none"){