mirror of
https://github.com/sipeed/sipeed_wiki.git
synced 2026-11-09 17:44:31 -06:00
update navbar
This commit is contained in:
@@ -408,7 +408,39 @@ th {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1560px) {
|
||||
#editPage {
|
||||
position: relative;
|
||||
}
|
||||
#source_link {
|
||||
position: relative;
|
||||
}
|
||||
#editPageHelp {
|
||||
top: 3em;
|
||||
background: white;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: end;
|
||||
box-shadow: 1px 1px 17px 0px #e9e9e9;
|
||||
border-radius: 0.5em;
|
||||
padding: 1em;
|
||||
}
|
||||
.dark #editPageHelp {
|
||||
background: #212121;
|
||||
box-shadow: 1px 1px 17px 0px black;
|
||||
}
|
||||
#source_link {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: end;
|
||||
}
|
||||
#source_link > a {
|
||||
cursor: pointer;
|
||||
}
|
||||
.faq table {
|
||||
display: table;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1000px) {
|
||||
#navbar #navbar_items {
|
||||
flex-direction: column;
|
||||
align-items: start;
|
||||
|
||||
1
static/image/github.svg
Normal file
1
static/image/github.svg
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1691465733135" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12489" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M950.857143 512q0 143.428571-83.714286 258t-216.285714 158.571429q-15.428571 2.857143-22.571429-4t-7.142857-17.142857l0-120.571429q0-55.428571-29.714286-81.142857 32.571429-3.428571 58.571429-10.285714t53.714286-22.285714 46.285714-38 30.285714-60 11.714286-86q0-69.142857-45.142857-117.714286 21.142857-52-4.571429-116.571429-16-5.142857-46.285714 6.285714t-52.571429 25.142857l-21.714286 13.714286q-53.142857-14.857143-109.714286-14.857143t-109.714286 14.857143q-9.142857-6.285714-24.285714-15.428571t-47.714286-22-49.142857-7.714286q-25.142857 64.571429-4 116.571429-45.142857 48.571429-45.142857 117.714286 0 48.571429 11.714286 85.714286t30 60 46 38.285714 53.714286 22.285714 58.571429 10.285714q-22.857143 20.571429-28 58.857143-12 5.714286-25.714286 8.571429t-32.571429 2.857143-37.428571-12.285714-31.714286-35.714286q-10.857143-18.285714-27.714286-29.714286t-28.285714-13.714286l-11.428571-1.714286q-12 0-16.571429 2.571429t-2.857143 6.571429 5.142857 8 7.428571 6.857143l4 2.857143q12.571429 5.714286 24.857143 21.714286t18 29.142857l5.714286 13.142857q7.428571 21.714286 25.142857 35.142857t38.285714 17.142857 39.714286 4 31.714286-2l13.142857-2.285714q0 21.714286 2.857143 50.857143t2.857143 30.857143q0 10.285714-7.428571 17.142857t-22.857143 4q-132.571429-44-216.285714-158.571429t-83.714286-258q0-119.428571 58.857143-220.285714t159.714286-159.714286 220.285714-58.857143 220.285714 58.857143 159.714286 159.714286 58.857143 220.285714z" p-id="12490" fill="#8a8a8a"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
1
static/image/language.svg
Normal file
1
static/image/language.svg
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1691465558406" class="icon" viewBox="0 0 1088 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11348" id="mx_n_1691465558408" xmlns:xlink="http://www.w3.org/1999/xlink" width="19.125" height="18"><path d="M729.6 294.4c19.2 57.6 44.8 102.4 89.6 147.2 38.4-38.4 64-89.6 83.2-147.2H729.6z m-422.4 320h166.4l-83.2-224z" p-id="11349" fill="#cdcdcd"></path><path d="M947.2 0h-768c-70.4 0-128 57.6-128 128v768c0 70.4 57.6 128 128 128h768c70.4 0 128-57.6 128-128V128c0-70.4-51.2-128-128-128zM633.6 825.6c-12.8 12.8-25.6 12.8-38.4 12.8-6.4 0-19.2 0-25.6-6.4s-12.8 0-12.8-6.4-6.4-12.8-12.8-25.6-6.4-19.2-12.8-32l-25.6-70.4h-224L256 768c-12.8 25.6-19.2 44.8-25.6 57.6-6.4 12.8-19.2 12.8-38.4 12.8-12.8 0-25.6-6.4-38.4-12.8-12.8-12.8-19.2-19.2-19.2-32 0-6.4 0-12.8 6.4-25.6s6.4-19.2 12.8-32l140.8-358.4c6.4-12.8 6.4-25.6 12.8-38.4s12.8-25.6 19.2-32 12.8-19.2 25.6-25.6c12.8-6.4 25.6-6.4 38.4-6.4 12.8 0 25.6 0 38.4 6.4 12.8 6.4 19.2 12.8 25.6 25.6 6.4 6.4 12.8 19.2 19.2 32 6.4 12.8 12.8 25.6 19.2 44.8l140.8 352c12.8 25.6 19.2 44.8 19.2 57.6-6.4 6.4-12.8 19.2-19.2 32z m352-249.6c-70.4-25.6-121.6-57.6-166.4-96-44.8 44.8-102.4 76.8-172.8 96l-19.2-32c70.4-19.2 128-44.8 172.8-89.6-44.8-44.8-83.2-102.4-96-166.4h-64v-25.6h172.8c-12.8-19.2-25.6-44.8-38.4-64l19.2-6.4c12.8 19.2 32 44.8 44.8 70.4h160v32h-64c-19.2 64-51.2 121.6-89.6 160 44.8 38.4 96 70.4 166.4 89.6l-25.6 32z" p-id="11350" fill="#cdcdcd"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
1
static/image/shop.svg
Normal file
1
static/image/shop.svg
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1691466197207" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17714" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M512.926476 85.333333a194.998857 194.998857 0 0 1 194.998857 194.998857V365.714286H755.809524v-121.904762h29.598476a73.142857 73.142857 0 0 1 72.94781 67.730286l37.91238 512A73.142857 73.142857 0 0 1 823.344762 902.095238H200.655238a73.142857 73.142857 0 0 1-72.923428-78.555428l37.91238-512A73.142857 73.142857 0 0 1 238.592 243.809524h29.574095L268.190476 365.714286h49.737143v-85.382096a194.998857 194.998857 0 0 1 188.928-194.901333l6.070857-0.097524z m134.095238 426.666667c-48.90819 137.728-224.304762 137.728-259.267047 3.047619L316.952381 533.430857c53.686857 206.677333 326.656 206.677333 398.994286 3.047619L647.021714 512z m-134.095238-353.52381a121.904762 121.904762 0 0 0-116.297143 85.333334h232.594286a121.904762 121.904762 0 0 0-116.297143-85.333334z" p-id="17715" fill="#8a8a8a"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
BIN
static/image/wechat.png
Normal file
BIN
static/image/wechat.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 673 B |
@@ -0,0 +1,26 @@
|
||||
// get language from html element's lang attribute to lower case
|
||||
var lang = $("html").attr("lang").split("-")[0].toLowerCase();
|
||||
|
||||
var content;
|
||||
if (lang == "zh") {
|
||||
content = "<div>查看<a href='" + sourceUrl + "' target='_blank'>源文档</a></div><div>修改文档请参考<a href='/share_docs/zh/' target='_blank'>贡献编辑文档指南</a></div>";
|
||||
} else {
|
||||
content = "<div>View <a href='" + sourceUrl + "' target='_blank'>source doc</a></div><div>For editing, please refer to <a href='/share_docs/en/' target='_blank'>contribution guide</a></div>";
|
||||
}
|
||||
|
||||
// get editPage element's parent element's href
|
||||
var sourceUrl = $("#editPage").parent().attr("href");
|
||||
// add editPageHelp after editPage's parent element
|
||||
$("#editPage").parent().after("<div id='editPageHelp' style='display:none;'>" + content + "</div>");
|
||||
// remove editPage element's href and add click event
|
||||
$("#editPage").parent().removeAttr("href").click(function() {
|
||||
// show editPageHelp if editPageHelp is hidden
|
||||
if ($("#editPageHelp").is(":hidden")) {
|
||||
$("#editPageHelp").show();
|
||||
}
|
||||
// hide editPageHelp if editPageHelp is shown
|
||||
else {
|
||||
$("#editPageHelp").hide();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user