From b1c027987f6270cae15e3f2ef263440f384c18eb Mon Sep 17 00:00:00 2001 From: wizardforcel <562826179@qq.com> Date: Thu, 17 Sep 2020 18:04:21 +0800 Subject: [PATCH] 2020-09-17 18:04:21 --- asset/prism-darcula.css | 160 ++++++++++++++++++++++++++++++++++++++++ asset/style.css | 96 ++++++++++++++++++++++++ index.html | 2 + 3 files changed, 258 insertions(+) create mode 100644 asset/prism-darcula.css create mode 100644 asset/style.css diff --git a/asset/prism-darcula.css b/asset/prism-darcula.css new file mode 100644 index 0000000..11a8f3e --- /dev/null +++ b/asset/prism-darcula.css @@ -0,0 +1,160 @@ +/** + * Darcula theme + * + * Adapted from a theme based on: + * IntelliJ Darcula Theme (https://github.com/bulenkov/Darcula) + * + * @author Alexandre Paradis + * @version 1.0 + */ + +code[class*="lang-"], +pre[data-lang] { + color: #a9b7c6 !important; + background-color: #2b2b2b !important; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + direction: ltr; + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + line-height: 1.5; + + -moz-tab-size: 4; + -o-tab-size: 4; + tab-size: 4; + + -webkit-hyphens: none; + -moz-hyphens: none; + -ms-hyphens: none; + hyphens: none; +} + +pre[data-lang]::-moz-selection, pre[data-lang] ::-moz-selection, +code[class*="lang-"]::-moz-selection, code[class*="lang-"] ::-moz-selection { + color: inherit; + background: rgba(33, 66, 131, .85); +} + +pre[data-lang]::selection, pre[data-lang] ::selection, +code[class*="lang-"]::selection, code[class*="lang-"] ::selection { + color: inherit; + background: rgba(33, 66, 131, .85); +} + +/* Code blocks */ +pre[data-lang] { + padding: 1em; + margin: .5em 0; + overflow: auto; +} + +:not(pre) > code[class*="lang-"], +pre[data-lang] { + background: #2b2b2b; +} + +/* Inline code */ +:not(pre) > code[class*="lang-"] { + padding: .1em; + border-radius: .3em; +} + +.token.comment, +.token.prolog, +.token.cdata { + color: #808080; +} + +.token.delimiter, +.token.boolean, +.token.keyword, +.token.selector, +.token.important, +.token.atrule { + color: #cc7832; +} + +.token.operator, +.token.punctuation, +.token.attr-name { + color: #a9b7c6; +} + +.token.tag, +.token.tag .punctuation, +.token.doctype, +.token.builtin { + color: #e8bf6a; +} + +.token.entity, +.token.number, +.token.symbol { + color: #6897bb; +} + +.token.property, +.token.constant, +.token.variable { + color: #9876aa; +} + +.token.string, +.token.char { + color: #6a8759; +} + +.token.attr-value, +.token.attr-value .punctuation { + color: #a5c261; +} + +.token.attr-value .punctuation:first-child { + color: #a9b7c6; +} + +.token.url { + color: #287bde; + text-decoration: underline; +} + +.token.function { + color: #ffc66d; +} + +.token.regex { + background: #364135; +} + +.token.bold { + font-weight: bold; +} + +.token.italic { + font-style: italic; +} + +.token.inserted { + background: #294436; +} + +.token.deleted { + background: #484a4a; +} + +code.lang-css .token.property, +code.lang-css .token.property + .token.punctuation { + color: #a9b7c6; +} + +code.lang-css .token.id { + color: #ffc66d; +} + +code.lang-css .token.selector > .token.class, +code.lang-css .token.selector > .token.attribute, +code.lang-css .token.selector > .token.pseudo-class, +code.lang-css .token.selector > .token.pseudo-element { + color: #ffc66d; +} \ No newline at end of file diff --git a/asset/style.css b/asset/style.css new file mode 100644 index 0000000..4587d31 --- /dev/null +++ b/asset/style.css @@ -0,0 +1,96 @@ + /*隐藏头部的目录*/ + #main>ul:nth-child(1) { + display: none; + } + + #main>ul:nth-child(2) { + display: none; + } + + .markdown-section h1 { + margin: 3rem 0 2rem 0; + } + + .markdown-section h2 { + margin: 2rem 0 1rem; + } + + img, + pre { + border-radius: 8px; + } + + .content, + .sidebar, + .markdown-section, + body, + .search input { + background-color: rgba(243, 242, 238, 1) !important; + } + + @media (min-width:600px) { + .sidebar-toggle { + background-color: #f3f2ee; + } + } + + .docsify-copy-code-button { + background: #f8f8f8 !important; + color: #7a7a7a !important; + } + + body { + /*font-family: Microsoft YaHei, Source Sans Pro, Helvetica Neue, Arial, sans-serif !important;*/ + } + + .markdown-section>p { + font-size: 16px !important; + } + + .markdown-section pre>code { + font-family: Consolas, Roboto Mono, Monaco, courier, monospace !important; + font-size: .9rem !important; + + } + + /*.anchor span { + color: rgb(66, 185, 131); +}*/ + + section.cover h1 { + margin: 0; + } + + body>section>div.cover-main>ul>li>a { + color: #42b983; + } + + .markdown-section img { + box-shadow: 7px 9px 10px #aaa !important; + } + + + pre { + background-color: #f3f2ee !important; + } + + @media (min-width:600px) { + pre code { + /*box-shadow: 2px 1px 20px 2px #aaa;*/ + /*border-radius: 10px !important;*/ + padding-left: 20px !important; + } + } + + @media (max-width:600px) { + pre { + padding-left: 0px !important; + padding-right: 0px !important; + } + } + + .markdown-section pre { + padding-left: 0 !important; + padding-right: 0px !important; + box-shadow: 2px 1px 20px 2px #aaa; + } \ No newline at end of file diff --git a/index.html b/index.html index b9329ab..6bb4659 100644 --- a/index.html +++ b/index.html @@ -7,6 +7,8 @@ + + -- GitLab