:root{ --code-autor: '© 钟意博客🌙'; --code-tip: "优雅借鉴"; }
.hljs { position: relative; display: block; overflow-x: hidden; background: var(--block); color: #9c67a1; padding: 30px 5px 2px 5px; box-shadow: 0 10px 30px 0px rgb(0 0 0 / 40%) }
.hljs::before { content: var(--code-tip); position: absolute; left: 15px; top: 10px; overflow: visible; width: 12px; height: 12px; border-radius: 16px; box-shadow: 20px 0 #a9a6a1, 40px 0 #999; -webkit-box-shadow: 20px 0 #999, 40px 0 #999; background-color: #999; white-space: nowrap; text-indent: 75px; font-size: 16px; line-height: 12px; font-weight: 700; color: #999 }
.highlight:hover .hljs::before { color: #35cd4b; box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b; -webkit-box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b; background-color: #fc625d; }
.hljs-ln { display: inline-block; overflow-x: auto; padding-bottom: 5px }
.hljs-ln td { padding: 0; background-color: var(--block) }
.hljs-ln::-webkit-scrollbar { height: 10px; border-radius: 5px; background: #333; }
.hljs-ln::-webkit-scrollbar-thumb { background-color: #bbb; border-radius: 5px; }
.hljs-ln::-webkit-scrollbar-thumb:hover { background: #ddd; }
.hljs table tbody tr { border: none }
.hljs .hljs-ln-line { padding: 1px 10px; border: none }
td.hljs-ln-line.hljs-ln-numbers { border-right: 1px solid #666; }
.hljs-keyword, .hljs-literal, .hljs-symbol, .hljs-name { color: #c78300 }
.hljs-link { color: #569cd6; text-decoration: underline }
.hljs-built_in, .hljs-type { color: #4ec9b0 }
.hljs-number, .hljs-class { color: #2094f3 }
.hljs-string, .hljs-meta-string { color: #4caf50 }
.hljs-regexp, .hljs-template-tag { color: #9a5334 }
.hljs-subst, .hljs-function, .hljs-title, .hljs-params, .hljs-formula { color: #c78300 }
.hljs-property { color: #9c67a1; }
.hljs-comment, .hljs-quote { color: #57a64a; font-style: italic }
.hljs-doctag { color: #608b4e }
.hljs-meta, .hljs-meta-keyword, .hljs-tag { color: #9b9b9b }
.hljs-variable, .hljs-template-variable { color: #bd63c5 }
.hljs-attr, .hljs-attribute, .hljs-builtin-name { color: #d34141 }
.hljs-section { color: gold }
.hljs-emphasis { font-style: italic }
.hljs-strong { font-weight: bold }
.hljs-bullet, .hljs-selector-tag, .hljs-selector-id, .hljs-selector-class, .hljs-selector-attr, .hljs-selector-pseudo { color: #c78300 }
.hljs-addition { background-color: #144212; display: inline-block; width: 100% }
.hljs-deletion { background-color: #600; display: inline-block; width: 100% }
.hljs.language-html::before, .hljs.language-xml::before { content: "HTML/XML" }
.hljs.language-javascript::before { content: "JavaScript" }
.hljs.language-c::before { content: "C" }
.hljs.language-cpp::before { content: "C++" }
.hljs.language-java::before { content: "Java" }
.hljs.language-asp::before { content: "ASP" }
.hljs.language-actionscript::before { content: "ActionScript/Flash/Flex" }
.hljs.language-bash::before { content: "Bash" }
.hljs.language-css::before { content: "CSS" }
.hljs.language-asp::before { content: "ASP" }
.hljs.language-cs::before, .hljs.language-csharp::before { content: "C#" }
.hljs.language-d::before { content: "D" }
.hljs.language-golang::before, .hljs.language-go::before { content: "Go" }
.hljs.language-json::before { content: "JSON" }
.hljs.language-lua::before { content: "Lua" }
.hljs.language-less::before { content: "LESS" }
.hljs.language-md::before, .hljs.language-markdown::before, .hljs.language-mkdown::before, .hljs.language-mkd::before { content: "Markdown" }
.hljs.language-mm::before, .hljs.language-objc::before, .hljs.language-obj-c::before, .hljs.language-objective-c::before { content: "Objective-C" }
.hljs.language-php::before { content: "PHP" }
.hljs.language-perl::before, .hljs.language-pl::before, .hljs.language-pm::before { content: "Perl" }
.hljs.language-python::before, .hljs.language-py::before, .hljs.language-gyp::before, .hljs.language-ipython::before { content: "Python" }
.hljs.language-r::before { content: "R" }
.hljs.language-ruby::before, .hljs.language-rb::before, .hljs.language-gemspec::before, .hljs.language-podspec::before, .hljs.language-thor::before, .hljs.language-irb::before { content: "Ruby" }
.hljs.language-sql::before { content: "SQL" }
.hljs.language-sh::before, .hljs.language-shell::before, .hljs.language-Session::before, .hljs.language-shellsession::before, .hljs.language-console::before { content: "Shell" }
.hljs.language-swift::before { content: "Swift" }
.hljs.language-vb::before { content: "VB/VBScript" }
.hljs.language-yaml::before { content: "YAML" }
.md-text pre>.hljs { padding-top: 2rem !important; }
.md-text pre { padding: 0 !important; }
code { background-image: linear-gradient(90deg, rgba(60, 10, 30, .04) 3%, transparent 0), linear-gradient(1turn, rgba(60, 10, 30, .04) 3%, transparent 0) !important; background-size: 20px 20px !important; background-position: 50% !important; }
figure::after { content: var(--code-autor); text-align: right; font-size: 10px; float: right; margin-top: 3px; padding-right: 15px; padding-bottom: 8px; color: #999 }
figcaption span { border-radius: 0px 0px 12px 12px !important; }
.highlight { position: relative; }
.highlight .code .copy-btn { position: absolute; top: 0; right: 0; padding: 4px 0.5rem; opacity: 0.25; font-weight: 700; color: var(--theme); cursor: pointer; transination: opacity 0.3s; }
.highlight .code .copy-btn:hover { color: var(--text-code); opacity: 0.75; }
.highlight .code .copy-btn.success { color: var(--swiper-theme-color); opacity: 0.75; }
.md-text .highlight figcaption span { font-size: small; }
code.hljs { display: -webkit-box; overflow: hidden; text-overflow: ellipsis; -webkit-box-orient: vertical; padding: 1rem 1rem 0 1rem; }
.hljsOpen { -webkit-line-clamp: 99999 !important; } .CodeCloseDiv { color: #999; background: var(--block); display: flex; justify-content: center; margin-top: inherit; margin-bottom: -18px; } .CodeClose { color: #999; margin-top: 3px; background: var(--block); }
.highlight button:hover, .highlight table:hover+button { color: var(--swiper-theme-color); opacity: 0.75; }
|