change some css style

This commit is contained in:
Sean
2020-07-10 17:51:54 +08:00
parent a753c895da
commit 63f8a5bc07
5 changed files with 35 additions and 155 deletions
+21 -1
View File
File diff suppressed because one or more lines are too long
+9 -149
View File
@@ -17,7 +17,7 @@ a {
}
img {
z-index: 51
z-index: 51;
}
.product_pic img {
@@ -90,50 +90,6 @@ img {
border-bottom: 0px;
}
/* .goBack_header {
display: none;
}
@media screen and (max-width:768px) {
.goBack_header {
display: block;
}
body[data-page="index.md"] .goBack_header {
display: none;
}
body[data-page="en/faq.md"] .goBack_header {
display: none;
}
body[data-page="zh_CN/README.md"] .goBack_header {
display: none;
}
body[data-page="zh_CN/faq.md"] .goBack_header {
display: none;
}
} */
#progressbar {
position: fixed;
left: 0px;
top: 0px;
right: 0px;
background-color: white;
bottom: 0px;
z-index: 99999;
}
#progressbar .el-progress {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.markdown-section {
max-width: 75%;
@@ -141,7 +97,6 @@ img {
}
.markdown-section a {
/* color: var(--theme-color,#42b983) */
color: hsl(211, 100%, 50%);
}
@@ -407,36 +362,10 @@ div.card-img-overlay:hover {
background-color: #fffbff
}
.d-flex {
z-index: 10000;
position: fixed;
top: 0;
right: 0;
left: 0
}
.btn-toggle {
display: none
}
.pc-navigation {
position: fixed;
top: 20%;
left: 4%
}
.pc-navigation button {
font-weight: bold;
height: 53px
}
.mb-navigation {
display: none
}
.product_page {
margin-left: 60px;
margin-top: 100px
margin-top: 100px;
}
.search {
@@ -533,81 +462,6 @@ body[data-page="zh_CN/README.md"] .markdown-section {
display: none;
}
.d-flex {
display: none !important;
left: auto;
transition: all .25s ease;
top: 50px;
width: 50%;
background-color: white;
right: -50%;
}
.d-flex>h1{
display: none;
}
.d-flex.open {
display: block !important;
position: fixed;
right: 0;
z-index: 10000;
}
.d-flex.open>h1 {
display: none
}
.d-flex.open nav a {
display: block
}
.btn-toggle {
display: block;
position: fixed;
right: 0;
top: 0;
width: 100%;
height: 50px;
z-index: 1000;
box-shadow: 1px 0 10px 0 #888;
background-color: white
}
.btn-toggle::before,.btn-toggle::after {
content: "";
position: absolute;
transition: all .25s ease;
width: 30px;
height: 2px;
background-color: gray
}
.btn-toggle::before {
top: 10px;
right: 10px;
box-shadow: 0 12px 0 gray
}
.btn-toggle::after {
top: 34px;
right: 10px
}
.btn-toggle.open::before {
top: 25px;
right: 10px;
transform: rotate(45deg);
box-shadow: none
}
.btn-toggle.open::after {
top: 25px;
right: 10px;
transform: rotate(-45deg)
}
.markdown-section {
max-width: 100%;
@@ -679,7 +533,7 @@ body[data-page="zh_CN/README.md"] .markdown-section {
.search {
position: fixed;
top: 15px;
top: 15px !important;
left: 50%;
transform: translateX(-50%);
}
@@ -959,12 +813,18 @@ mark {
.anchor-box {
left: -30px
}
.search {
top: 100px;
}
}
@media screen and (max-width:1180px) {
.anchor-box {
left: -54px
}
#pc_header > a{
display: none;
}
}
@media screen and (max-width:768px) {
+2 -2
View File
@@ -386,7 +386,7 @@ function change_title(language) {
header.homepage_title = "Product List";
header.product_list_title = "Product";
header.language_list_title = "Language";
header.platform_list_title = "Platform&API";
header.platform_list_title = "Platform|API";
header.faq_title = "FAQ";
header.case_title = "Cases";
}
@@ -404,7 +404,7 @@ function change_title(language) {
header.homepage_title = "产品列表";
header.product_list_title = "产品信息";
header.language_list_title = "切换语言";
header.platform_list_title = "编程平台&API";
header.platform_list_title = "编程平台|API";
header.faq_title = "常见问题";
header.case_title = "社区案例";
}
+2 -2
View File
@@ -37,9 +37,9 @@ function select_search_page(onEnter_content){link=window.location.href;if(((link
if(link.slice(-4)=="/faq"){faq_search(onEnter_content);}}
var Input=$('form input');Input.focusin(function(){Input.animate({width:300});$(".search_point").show(240);});Input.focusout(function(){Input.animate({width:240});setTimeout(function(){$(".search_point").hide(140);},160);});function select(event){var s=event.textContent.toLowerCase();$("#thetarget").removeClass("show");$(".btn-group-vertical button").addClass("btn-light");$(event).removeClass("btn-light");$(event).addClass("btn-primary");page_move(s);}
$(document).ready(function(){});function change_title(language){if(language=="en"){header.platform={UIFlow:"#/en/uiflow/uiflow_home_page",Arduino:"#/en/arduino/arduino_home_page",MicroPython:"https://github.com/m5stack/UIFlow-Code",FreeRTOS:"#/en/quick_start/m5stickc/m5stickc_quick_start_with_AWS-FreeRTOS_Windows"}
header.case_link="#/en/case";header.faq_link="#/en/faq";header.i2c_table="I2C Address Table";header.comparison_table="Product Comparison";header.homepage_title="Product List";header.product_list_title="Product";header.language_list_title="Language";header.platform_list_title="Platform&API";header.faq_title="FAQ";header.case_title="Cases";}
header.case_link="#/en/case";header.faq_link="#/en/faq";header.i2c_table="I2C Address Table";header.comparison_table="Product Comparison";header.homepage_title="Product List";header.product_list_title="Product";header.language_list_title="Language";header.platform_list_title="Platform|API";header.faq_title="FAQ";header.case_title="Cases";}
if(language=="zh_CN"){header.platform={UIFlow:"#/zh_CN/uiflow/uiflow_home_page",Arduino:"#/zh_CN/arduino/arduino_home_page",MicroPython:"https://github.com/m5stack/UIFlow-Code",FreeRTOS:"#/zh_CN/quick_start/m5stickc/m5stickc_quick_start_with_AWS-FreeRTOS_Windows"}
header.case_link="#/zh_CN/case";header.faq_link="#/zh_CN/faq";header.i2c_table="I2C地址表格";header.comparison_table="产品比较说明";header.homepage_title="产品列表";header.product_list_title="产品信息";header.language_list_title="切换语言";header.platform_list_title="编程平台&API";header.faq_title="常见问题";header.case_title="社区案例";}}
header.case_link="#/zh_CN/case";header.faq_link="#/zh_CN/faq";header.i2c_table="I2C地址表格";header.comparison_table="产品比较说明";header.homepage_title="产品列表";header.product_list_title="产品信息";header.language_list_title="切换语言";header.platform_list_title="编程平台|API";header.faq_title="常见问题";header.case_title="社区案例";}}
function language(language){var test=window.location.href;if((test.indexOf(/en/)==-1)&&(test.indexOf(/zh_CN/)==-1)&&(test.indexOf(/ja/)==-1)){var test2=test.concat("",language+"/");window.location.href=test2;change_title(language);}
if(test.indexOf(/en/)!=-1){var test2=test.replace(/en/,language);window.location.href=test2;change_title(language);}else if(test.indexOf(/zh_CN/)!=-1){var test2=test.replace(/zh_CN/,language);window.location.href=test2;change_title(language);}else if(test.indexOf(/ja/)!=-1){var test2=test.replace(/ja/,language);window.location.href=test2;change_title(language);}}
function use_jpg(){pics=$("img");var page_url=window.location.href;for(var i=0;i<pics.length;i++){if((page_url.slice(-4)=="/en/")||(page_url.slice(-7)=="/zh_CN/")||(page_url.slice(-3)=="/#/")){if(pics[i].src.indexOf(".webp")!=-1){var path=pics[i].src.substr(0,pics[i].src.indexOf(".webp"));pics[i].src=path+".jpg"}}else{if(pics[i].src.indexOf(".webp")!=-1){if(pics[i].src.indexOf("m5stack.oss")!=-1){var path=pics[i].src.substr(0,pics[i].src.indexOf(".webp"));pics[i].src=path+".jpg"}else{if(pics[i].src.indexOf("assets")!=-1){var path=pics[i].src.substr(pics[i].src.indexOf("assets"),);pics[i].src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/product_jpg/"+path.replace(".webp",".jpg");}else if(pics[i].src.indexOf("image/")!=-1){var path=pics[i].src.substr(pics[i].src.indexOf("image"),);pics[i].src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/product_jpg/"+path.replace(".webp",".jpg");}}}}}}
+1 -1
View File
File diff suppressed because one or more lines are too long