mirror of
https://gitee.com/SuperManito/LinuxMirrors
synced 2025-11-05 00:40:27 +08:00
1 line
5.6 KiB
JavaScript
1 line
5.6 KiB
JavaScript
window.$docsify.plugins=[].concat((e,o)=>{let i={siteFont:"-apple-system, SF Pro, Microsoft YaHei, Source Sans Pro, Helvetica Neue, Arial, sans-serif",defaultTheme:"light",codeFontFamily:"JetBrains Mono",bodyFontSize:"17px",light:{themeColor:"#42b983",backgroundColor:"#ffffff",sidebarSublinkColor:"#7c7c7c",titleColor:"#1a1a1f",textColor:"#1a1a1f",textStrongColor:"#1a1a1f",blockQuoteColor:"#1a1a1f",highlightColor:"#d22778",highlightBackgroundColor:"#f6f7f8",highlightTipBackgroundColor:"#efefef",highlightWarnBackgroundColor:"#efefef",codeTextColor:"#1a1a1f",codeTypeColor:"#1a1a1f",codeBackgroundColor:"#f6f8fa",codeKeywordColor:"#e96900",codeFunctionColor:"#3389e1",codeNumberColor:"#8d90e8",codeStringColor:"#84d115",borderColor:"#dadde1",tableBorderColor:"#cccccc",tableTheadBackgroundColor:"rgba(0,0,0,.03)",hoverBackgroundColor:"#8383831f",summaryBackgroundColor:"#e7f7e8",herfColor:"#16995e",hrColor:"#afafaf",alertNoteBorderColor:"#4cb3d4",alertNoteBackgroundColor:"#eef9fd",alertNoteHighlightBackgroundColor:"rgba(84,199,236,.15)",alertTipBorderColor:"#009400",alertTipBackgroundColor:"#e6f6e6",alertTipHighlightBackgroundColor:"rgba(0,164,0,.15)",alertWarningBorderColor:"#e6a700",alertWarningBackgroundColor:"#fff8e6",alertWarningHighlightBackgroundColor:"rgba(255,186,0,.15)",alertAttentionBorderColor:"#e13238",alertAttentionBackgroundColor:"#ffebec",alertAttentionHighlightBackgroundColor:"rgba(250,56,62,.15)",coverBackground:"linear-gradient(to top, #fff1eb 0%, #ace0f9 100%)",themeIcon:'url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSIjZmZmZmZmIiBzdHJva2U9IiMzNDQ5NWUiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0iZmVhdGhlciBmZWF0aGVyLW1vb24iPjxwYXRoIGQ9Ik0yMSAxMi43OUE5IDkgMCAxIDEgMTEuMjEgMyA3IDcgMCAwIDAgMjEgMTIuNzl6Ij48L3BhdGg+PC9zdmc+")',},dark:{themeColor:"#4894df",backgroundColor:"#1b1b1d",sidebarSublinkColor:"#b4b4b4",titleColor:"#e3e3e3",textColor:"#e3e3e3",textStrongColor:"#e3e3e3",blockQuoteColor:"#e3e3e3",highlightColor:"#c792ea",highlightBackgroundColor:"hsla(0,0%,100%,.1)",highlightTipBackgroundColor:"hsl(0deg 0% 41% / 10%)",highlightWarnBackgroundColor:"#36423a",codeTextColor:"#d4d4d4",codeTypeColor:"#d4d4d4",codeKeywordColor:"#89ddff",codeFunctionColor:"#ffcb6b",codeNumberColor:"#c3e88d",codeStringColor:"#5987cb",codeBackgroundColor:"#212121",borderColor:"#444950",tableBorderColor:"#606770",tableTheadBackgroundColor:"hsla(0,0%,100%,.07)",hoverBackgroundColor:"#8d8d8d1f",summaryBackgroundColor:"#1d364c",herfColor:"#2973b7",hrColor:"#464646",alertNoteBorderColor:"#4cb3d4",alertNoteBackgroundColor:"#193c47",alertNoteHighlightBackgroundColor:"rgba(84,199,236,0.15)",alertTipBorderColor:"#009400",alertTipBackgroundColor:"#003100",alertTipHighlightBackgroundColor:"rgba(0,164,0,0.15)",alertWarningBorderColor:"#e6a700",alertWarningBackgroundColor:"#4d3800",alertWarningHighlightBackgroundColor:"rgba(255,186,0,0.15)",alertAttentionBorderColor:"#e13238",alertAttentionBackgroundColor:"#4b1113",alertAttentionHighlightBackgroundColor:"rgba(250,56,62,0.15)",coverBackground:"linear-gradient(to top, #fff1eb 0%, #ace0f9 100%)",themeIcon:'url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSIjZmZmZmZmIiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0iZmVhdGhlciBmZWF0aGVyLXN1biI+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iNSI+PC9jaXJjbGU+PGxpbmUgeDE9IjEyIiB5MT0iMSIgeDI9IjEyIiB5Mj0iMyI+PC9saW5lPjxsaW5lIHgxPSIxMiIgeTE9IjIxIiB4Mj0iMTIiIHkyPSIyMyI+PC9saW5lPjxsaW5lIHgxPSI0LjIyIiB5MT0iNC4yMiIgeDI9IjUuNjQiIHkyPSI1LjY0Ij48L2xpbmU+PGxpbmUgeDE9IjE4LjM2IiB5MT0iMTguMzYiIHgyPSIxOS43OCIgeTI9IjE5Ljc4Ij48L2xpbmU+PGxpbmUgeDE9IjEiIHkxPSIxMiIgeDI9IjMiIHkyPSIxMiI+PC9saW5lPjxsaW5lIHgxPSIyMSIgeTE9IjEyIiB4Mj0iMjMiIHkyPSIxMiI+PC9saW5lPjxsaW5lIHgxPSI0LjIyIiB5MT0iMTkuNzgiIHgyPSI1LjY0IiB5Mj0iMTguMzYiPjwvbGluZT48bGluZSB4MT0iMTguMzYiIHkxPSI1LjY0IiB4Mj0iMTkuNzgiIHkyPSI0LjIyIj48L2xpbmU+PC9zdmc+")',},};if(o.config.hasOwnProperty("darklightTheme")){for(var[t,r]of Object.entries(o.config.darklightTheme))"light"!==t&&"dark"!==t&&"defaultTheme"!==t&&(i[t]=r);for(var[t,r]of Object.entries(i))"light"!==t&&"dark"!==t&&((i[t]=r),document.documentElement.style.setProperty("--"+t,r));if(o.config.darklightTheme.hasOwnProperty("dark"))for(var[t,r]of Object.entries(o.config.darklightTheme.dark))i.dark[t]=r;if(o.config.darklightTheme.hasOwnProperty("light"))for(var[t,r]of Object.entries(o.config.darklightTheme.light))i.light[t]=r}else for(var[t,r]of Object.entries(i))"light"!==t&&"dark"!==t&&((i[t]=r),document.documentElement.style.setProperty("--"+t,r));window.matchMedia("(prefers-color-scheme: dark)").matches?(i.defaultTheme="dark"):window.matchMedia("(prefers-color-scheme: light)").matches&&(i.defaultTheme="light");var a=(e)=>{if((localStorage.setItem("DARK_LIGHT_THEME",e),(i.defaultTheme=e),"light"==e))for(var[o,t]of Object.entries(i.light))document.documentElement.style.setProperty("--"+o,t);else if("dark"==e)for(var[o,t]of Object.entries(i.dark))document.documentElement.style.setProperty("--"+o,t);document.documentElement.style.setProperty("color-scheme",e)};e.afterEach(function(e,o){o((e='<div id="docsify-darklight-theme" title="切换主题"><p>.</p></div>'+e))}),e.doneEach(function(){let e=localStorage.getItem("DARK_LIGHT_THEME");"light"==e||"dark"==e?((i.defaultTheme=e),a(i.defaultTheme)):a(i.defaultTheme);const o=document.getElementById("docsify-darklight-theme");null!==o&&o.addEventListener("click",function(){"light"===i.defaultTheme?a("dark"):a("light")})})},window.$docsify.plugins); |