1 Star 0 Fork 0

钟振升/Personal

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
theme.js 10.11 KB
一键复制 编辑 原始数据 按行查看 历史
Dmego 提交于 2019-12-22 18:22 . Update Blog
!function(o,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r();else if("function"==typeof define&&define.amd)define([],r);else{var t=r();for(var e in t)("object"==typeof exports?exports:o)[e]=t[e]}}(this.__inside__||(this.__inside__={}),function(){return function(o){var r={};function t(e){if(r[e])return r[e].exports;var i=r[e]={i:e,l:!1,exports:{}};return o[e].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=o,t.c=r,t.d=function(o,r,e){t.o(o,r)||Object.defineProperty(o,r,{enumerable:!0,get:e})},t.r=function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},t.t=function(o,r){if(1&r&&(o=t(o)),8&r)return o;if(4&r&&"object"==typeof o&&o&&o.__esModule)return o;var e=Object.create(null);if(t.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:o}),2&r&&"string"!=typeof o)for(var i in o)t.d(e,i,function(r){return o[r]}.bind(null,i));return e},t.n=function(o){var r=o&&o.__esModule?function(){return o.default}:function(){return o};return t.d(r,"a",r),r},t.o=function(o,r){return Object.prototype.hasOwnProperty.call(o,r)},t.p="",t(t.s=16)}([function(o,r,t){"use strict";o.exports=function(o){var r=[];return r.toString=function(){return this.map(function(r){var t=function(o,r){var t=o[1]||"",e=o[3];if(!e)return t;if(r&&"function"==typeof btoa){var i=(h=e,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(h))))+" */"),n=e.sources.map(function(o){return"/*# sourceURL="+e.sourceRoot+o+" */"});return[t].concat(n).concat([i]).join("\n")}var h;return[t].join("\n")}(r,o);return r[2]?"@media "+r[2]+"{"+t+"}":t}).join("")},r.i=function(o,t){"string"==typeof o&&(o=[[null,o,""]]);for(var e={},i=0;i<this.length;i++){var n=this[i][0];null!=n&&(e[n]=!0)}for(i=0;i<o.length;i++){var h=o[i];null!=h[0]&&e[h[0]]||(t&&!h[2]?h[2]=t:t&&(h[2]="("+h[2]+") and ("+t+")"),r.push(h))}},r}},function(o,r,t){(o.exports=t(0)(!1)).push([o.i,"body{color:MODE_FG}.ba:after,.z{background:MODE_CARD_BG}.y{border-color:MODE_BORDER}.bb:after{box-shadow:0 0 0 1px MODE_BORDER}.article-bounded ::-webkit-scrollbar-thumb{background-color:MODE_BORDER}.article-bounded ::-webkit-scrollbar-thumb:hover{background-color:MODE_FG}.article-bounded>div{box-shadow:inset 0 0 0 1px MODE_BORDER}",""])},function(o,r,t){(o.exports=t(0)(!1)).push([o.i,".q{max-width:CONTENT_WIDTHpx}",""])},function(o,r,t){(o.exports=t(0)(!1)).push([o.i,"::-moz-selection{background-color:COLOR;color:#fff}::selection{background-color:COLOR;color:#fff}::-webkit-scrollbar-thumb{background-color:COLOR_02}::-webkit-scrollbar-thumb:hover{background-color:COLOR_08}code{color:COLOR}.article-table tr:nth-child(2n),code{background-color:COLOR_005}@media (max-width:676px){.x{background:SIDEBAR_BACKGROUND}}.b,.e:after,.f:before,.g:active,.g:focus,.g:hover,.h:active:after,.h:focus:after,.h:hover:after,.i:active:before,.i:focus:before,.i:hover:before{background-color:COLOR}.d{background-color:COLOR_01}.c{background-color:COLOR_005}.o,.p:active,.p:focus,.p:hover{color:COLOR}.m{border-color:COLOR}.n{border-color:COLOR_04}.a a:hover{border-color:COLOR;color:COLOR}.bc{stroke:COLOR}.r{fill:COLOR}",""])},function(o,r,t){(o.exports=t(0)(!1)).push([o.i,".j,.k:after,body{background:BACKGROUND}@media (max-width:676px){.l{background:BACKGROUND}}",""])},function(o,r,t){(o.exports=t(0)(!1)).push([o.i,"body{font-family:FONT_BASE}",""])},function(o,r,t){(o.exports=t(0)(!1)).push([o.i,".v{font-family:FONT_LOGO}",""])},function(o,r,t){(o.exports=t(0)(!1)).push([o.i,".w{font-family:FONT_MENU}",""])},function(o,r,t){(o.exports=t(0)(!1)).push([o.i,".s,h1,h2,h3,h4,h5,h6{font-family:FONT_HEADING}",""])},function(o,r,t){(o.exports=t(0)(!1)).push([o.i,".t,.u:after{font-family:FONT_LABEL}",""])},function(o,r,t){(o.exports=t(0)(!1)).push([o.i,".highlight figcaption,code,pre{font-family:FONT_CODE}",""])},function(o,r,t){(o.exports=t(0)(!1)).push([o.i,"@media print{body{font-family:FONT_PRINT}}",""])},function(o,r,t){(o.exports=t(0)(!1)).push([o.i,".highlight{border-radius:3px;color:base05}.highlight .gutter{color:base03}.highlight figcaption{color:base04}.highlight figcaption a,.highlight figcaption a:hover{color:base0C}.highlight ::-webkit-scrollbar-thumb{background-color:base01}.highlight ::-webkit-scrollbar-thumb:hover{background-color:base02}.highlight ::-moz-selection{background-color:base02;color:inherit}.highlight ::selection{background-color:base02;color:inherit}.highlight .comment,.highlight .quote{color:base03}.highlight .deletion,.highlight .name,.highlight .regexp,.highlight .selector-class,.highlight .selector-id,.highlight .tag,.highlight .template-variable,.highlight .variable{color:base08}.highlight .built_in,.highlight .builtin-name,.highlight .link,.highlight .literal,.highlight .meta,.highlight .number,.highlight .params,.highlight .type{color:base09}.highlight .attribute{color:base0A}.highlight .addition,.highlight .bullet,.highlight .string,.highlight .symbol{color:base0B}.highlight .section,.highlight .title{color:base0D}.highlight .keyword,.highlight .selector-tag{color:base0E}",""])},function(o,r,t){(o.exports=t(0)(!1)).push([o.i,".highlight{background-color:base00}.highlight figcaption{border-radius:3px 3px 0 0;background-color:base01}",""])},function(o,r,t){(o.exports=t(0)(!1)).push([o.i,".highlight{border:1px solid base01}.highlight figcaption{background-color:base01}",""])},function(o,r,t){(o.exports=t(0)(!1)).push([o.i,".highlight{border:1px solid;border-color:inherit}.highlight figcaption{border-bottom:1px solid;border-color:inherit}",""])},function(o,r,t){"use strict";t.r(r);var e=function(){return(e=Object.assign||function(o){for(var r,t=1,e=arguments.length;t<e;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(o[i]=r[i]);return o}).apply(this,arguments)};t.d(r,"$appearance",function(){return a});var i=/^#(?:[0-9a-fA-F]{3}){1,2}$/,n=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,h={mode:t(1).toString(),content_width:t(2).toString(),accent_color:t(3).toString(),background:t(4).toString(),font:{base:t(5).toString(),logo:t(6).toString(),menu:t(7).toString(),heading:t(8).toString(),label:t(9).toString(),code:t(10).toString(),print:t(11).toString()},highlight:{base:t(12).toString(),flat:t(13).toString(),bordered:t(14).toString(),bordered_mix:t(15).toString()}},c={accent_color:"#2a2b33",foreground_color:"#363636",border_color:"#e0e0e0",background:"#f3f6f7",sidebar_background:"#2a2b33",card_background:"#fff",highlight:["#ffffff","#ffffff","#f3f6f7","#95a5b3","#363636","#262b2f","#000000","#000000","#5d6c7b","#40464a","#2980b9","#be516e","#237dac","#944770","#239371","#edf0f3"]};function a(o){if(o){var r=function(o,r){var t={},e=o.accent_color,i=o.foreground_color,n=o.border_color,h=o.background,c=o.sidebar_background,a=o.card_background,u=o.font,f=o.content_width,d=o.highlight;if(t.accent_color=e?l(e).hex:r.accent_color,t.foreground_color=i?l(i).hex:r.foreground_color,t.border_color=n?l(n).hex:r.border_color,t.background=h?g(h):r.background,t.sidebar_background=c?g(c):r.sidebar_background,t.card_background=a?g(a):r.card_background,u){var s=b(u.base);t.font={base:s.join(",")},u.logo&&(t.font.logo=b(u.logo,s).join(",")),u.menu&&(t.font.menu=b(u.menu,s).join(",")),u.heading&&(t.font.heading=b(u.heading,s).join(",")),u.label&&(t.font.label=b(u.label,s).join(",")),u.code&&(t.font.code=b(u.code).join(",")),u.print&&(t.font.print=b(u.print).join(","))}f&&f>640&&(t.content_width=f);Array.isArray(d)?(t.highlight=d.map(function(o){return l(o).hex}).filter(function(o){return o}),t.highlight.length<16&&(t.highlight=r.highlight)):t.highlight=r.highlight;return t}(o,c),t=[];if(t.push(h.mode.replace(/MODE_FG/g,r.foreground_color).replace(/MODE_CARD_BG/g,r.card_background).replace(/MODE_BORDER/g,r.border_color)),r.font){var e=r.font;e.base&&t.push(h.font.base.replace(/FONT_BASE/g,e.base)),e.logo&&t.push(h.font.logo.replace(/FONT_LOGO/g,e.logo)),e.menu&&t.push(h.font.menu.replace(/FONT_MENU/g,e.menu)),e.heading&&t.push(h.font.heading.replace(/FONT_HEADING/g,e.heading)),e.label&&t.push(h.font.label.replace(/FONT_LABEL/g,e.label)),e.code&&t.push(h.font.code.replace(/FONT_CODE/g,e.code)),e.print&&t.push(h.font.print.replace(/FONT_PRINT/g,e.print))}var i=l(r.accent_color);return t.push(h.background.replace(/BACKGROUND/g,r.background),h.accent_color.replace(/COLOR_005/g,"rgba("+i.r+","+i.g+","+i.b+",.05)").replace(/COLOR_01/g,"rgba("+i.r+","+i.g+","+i.b+",.1)").replace(/COLOR_02/g,"rgba("+i.r+","+i.g+","+i.b+",.2)").replace(/COLOR_04/g,"rgba("+i.r+","+i.g+","+i.b+",.4)").replace(/COLOR_08/g,"rgba("+i.r+","+i.g+","+i.b+",.8)").replace(/COLOR/g,i.hex).replace(/SIDEBAR_BACKGROUND/g,g(r.sidebar_background))),r.content_width&&t.push(h.content_width.replace(/CONTENT_WIDTH/g,r.content_width)),t.push(d(h.highlight.base,r.highlight)),s(r.card_background,r.highlight[0])||s(r.highlight[15],r.highlight[0])?s(r.card_background,r.highlight[1])||s(r.highlight[15],r.highlight[1])?t.push(h.highlight.bordered_mix):t.push(d(h.highlight.bordered,r.highlight)):(s(r.card_background,r.highlight[1])&&(r.highlight[1]=r.highlight[0]),t.push(d(h.highlight.flat,r.highlight))),t.join("")}}function g(o){var r=/(^data:image)|(^[^\(^'^"]*\.(jpg|png|gif|svg))/;return o.split(/\s+/).map(function(o){return o.match(r)?"url("+o+")":o}).join(" ")}function l(o,r){if(o=(o||"").trim(),i.test(o))return e({hex:o},f(o));if(n.test(o)){var t=o.match(n).slice(1,4).map(function(o){return+o}).filter(function(o){return o<256});if(3===t.length)return{hex:u.apply(null,t),r:t[0],g:t[1],b:t[2]}}return r?e({hex:r},f(r)):{}}function u(o,r,t){return"#"+((1<<24)+(o<<16)+(r<<8)+t).toString(16).slice(1)}function f(o){o=o.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(o,r,t,e){return r+r+t+t+e+e});var r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(o);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null}function b(o,r){void 0===r&&(r=[]);var t=o?o.split(","):[],e=[];return t.forEach(function(o){(o=o.trim())&&!~r.indexOf(o)&&e.push(o)}),e.concat(r)}function d(o,r){return r.reduce(function(o,r,t){var e=new RegExp("base0"+t.toString(16).toUpperCase(),"g");return o.replace(e,r)},o)}function s(o,r){var t=l(o),e=l(r);return t&&e&&t.r===e.r&&t.g===e.g&&t.b===e.b}}])});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Michael07/personal.git
git@gitee.com:Michael07/personal.git
Michael07
personal
Personal
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385