diff --git a/cobalt.css b/cobalt.css new file mode 100644 index 0000000..0d5428d --- /dev/null +++ b/cobalt.css @@ -0,0 +1,1024 @@ +:root { + --bg-color: #141d28; + --side-bar-bg-color: #090b10; + --control-text-color: #a9aaab; + --primary-color: #efb752; + --primary-btn-border-color: #f0b752; + --active-file-text-color: inherit; + --active-file-border-color: #f0b752; + --active-file-bg-color: #131c29; + --primary-btn-text-color: #f0b752; + --window-border: 1px solid #16161a; + --item-hover-bg-color: #1a283d; + --item-hover-text-color: #f0b752; + --meta-content-color: #f0b752; + --search-select-text-color: #f0b752; + /* --control-text-color: var(--text-color); */ + --control-text-color: #6db7d1; + /* --control-text-hover-color: var(--text-color); */ + --control-text-hover-color: #f0b752; + --heading-char-color: #f0b752; +} + +.dropdown-menu { + background-color: #1a283d !important; + border-color: #313d50 !important; +} + +@font-face { + font-family: 'Nunito'; + font-style: normal; + font-weight: normal; + src: local("Nunito Sans Regular"), url("./cobalt/nunito/NunitoSans-Regular.woff") format("woff"); +} + +@font-face { + font-family: 'Nunito'; + font-style: italic; + font-weight: normal; + src: local("Nunito Sans It"), url("./cobalt/nunito/NunitoSans-Italic.woff") format("woff"); +} + +@font-face { + font-family: 'Nunito'; + font-style: normal; + font-weight: bold; + src: local("Nunito Sans Bold"), url("./cobalt/nunito/NunitoSans-ExtraBold.woff") format("woff"); +} + +@font-face { + font-family: 'Nunito'; + font-style: italic; + font-weight: bold; + src: local("Nunito Sans Bold Italic"), url("./cobalt/nunito/NunitoSans-ExtraBoldItalic.woff") format("woff"); +} + +html { + background: #141b28; + font-size: 0.925rem; +} + +body { + background: #141b28; + color: #a9aaab; + font-family: "Nunito", "Clear Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 1em; + height: 100%; + line-height: 1.6; +} + +#write { + background: #131b29; + color: #a9aaab; + margin: 0 auto; + max-width: 800px; + padding: 30px; + padding-bottom: 100px; + position: static; + width: 90%; +} + +#write>ul:first-child, +#write>ol:first-child { + margin-top: 30px; +} + +a { + color: #71bfd9; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + cursor: text; + font-weight: bold; + line-height: 1.4; + margin-bottom: 1rem; + margin-top: 1rem; + position: relative; +} + +#write h1, +#write h2, +#write h3, +#write h4, +#write h5, +#write h6, +#write pre { + color: #efb752; + width: auto; +} + +#write h1::before, +#write h2::before, +#write h3::before, +#write h4::before, +#write h5::before, +#write h6::before { + border-radius: 0; + bottom: 0; + color: #517090; + float: none; + font-size: 1rem; + font-variant: 'small-caps'; + font-weight: bold; + left: auto; + line-height: 20px; + padding: 0; + position: absolute; + right: calc(100% + 10px); + vertical-align: baseline; +} + +#write h1 { + font-size: 3.2rem; + margin: 0.6rem 0; +} + +#write h1::before { + bottom: 1.45rem; + content: 'H1'; +} + +#write h2 { + font-size: 1.8rem; + margin: 0.7rem 0; +} + +#write h2::before { + bottom: 0.2rem; + content: 'H2'; +} + +#write h3 { + font-size: 1.2rem; + margin: 0.5rem 0; +} + +#write h3::before { + bottom: 0.18rem; + content: 'H3'; +} + +#write h4 { + font-size: 1rem; + margin: 0.2rem 0; +} + +#write h4::before { + content: 'H4'; + bottom: 0.15rem; +} + +#write h5, +#write h6 { + font-size: 1rem; + margin: 0; +} + +#write h5::before, +#write h6::before { + bottom: 0.1rem; +} + +#write h5::before { + content: 'H5'; +} + +#write h6::before { + content: 'H6'; +} + +h1:hover a.anchor, +h2:hover a.anchor, +h3:hover a.anchor, +h4:hover a.anchor, +h5:hover a.anchor, +h6:hover a.anchor { + text-decoration: none; +} + +h1 tt, +h1 code { + font-size: inherit; +} + +h2 tt, +h2 code { + font-size: inherit; +} + +h3 tt, +h3 code { + font-size: inherit; +} + +h4 tt, +h4 code { + font-size: inherit; +} + +h5 tt, +h5 code { + font-size: inherit; +} + +h6 tt, +h6 code { + font-size: inherit; +} + +h1 { + text-align: center; + border-bottom: 1px solid #f79f2a; + font-size: 3.25em; + line-height: 1.2; + padding-bottom: 0.3em; +} + +h2 { + border-bottom: 1px solid #f79f2a; + font-size: 2.75em; + line-height: 1.225; + padding-bottom: 0.3em; +} + +h3 { + font-size: 1.8em; + line-height: 1.43; +} + +h4 { + font-size: 1.45em; +} + +h5 { + font-size: 1.2em; +} + +h6 { + font-size: 1em; +} + +p, +blockquote, +ul, +ol, +dl, +table { + margin: 0.8em 0; +} + +#write ol, +#write ul { + padding-left: 2rem; + margin: .5rem 0; +} + +#write ol>li, +#write ul>li { + color: #f0b752; +} + +#write ol>li>*, +#write ul>li>* { + color: #b0b0b0; +} + +#write ol>li>*:not(ol):not(ul), +#write ul>li>*:not(ol):not(ul) { + padding-left: .25rem; +} + +#write ul { + list-style-type: disc; +} + +hr { + background-color: #f0b752; + border: 0 none; + box-sizing: content-box; + height: 2px; + margin: 16px 0; + overflow: hidden; + padding: 0; +} + +li p.first { + display: inline-block; +} + +ul, +ol { + padding-left: 30px; +} + +ul:first-child, +ol:first-child { + margin-top: 0; +} + +ul:last-child, +ol:last-child { + margin-bottom: 0; +} + +blockquote { + font-family: 'Nunito', 'Times New Roman', serif; + margin: 1rem 0 1rem 2rem; + position: relative; +} + +blockquote::before { + background: #f0b752; + content: ''; + height: 100%; + left: -2rem; + position: absolute; + width: 0.25rem; +} + +table { + font-size: 0.875rem; + padding: 0; + word-break: initial; +} + +table tr { + border-top: 1px solid #57708d; + margin: 0; + padding: 0; +} + +thead { + background-color: #324963; + color: #9dbbdd; +} + +table tr th { + border: 1px solid #57708d; + border-bottom: solid 2px #ccc; + border-bottom: 0; + font-weight: bold; + margin: 0; + padding: 10px 16px; +} + +table tr td { + background: #192534; + border: 1px solid #57708d; + margin: 0; + padding: 10px 16px; +} + +table tr th:first-child, +table tr td:first-child { + margin-top: 0; +} + +table tr th:last-child, +table tr td:last-child { + margin-bottom: 0; +} + +.CodeMirror-lines { + padding: 4px 0; +} + +.code-tooltip { + background: #1a283d; + border-top: 1px solid #1a283d; + box-shadow: 0 1px 1px 0 rgba(0, 28, 36, 0.3); +} + +.dropdown-menu { + color: #70c0d8; + margin-right: 5px; +} + +.file-action-item.not-empty-menu-group.show { + background: #1a283d; + border-color: #1a283d; +} + +.sidebar-footer-main-item #sidebar-files-menu { + background: #1a283d; + border-color: #303d50 !important; + color: #6db7d1; +} + +.file-action-item.not-empty-menu-group.show a:hover, +.dropdown-menu a:hover { + background-color: #1a283d !important; + color: #f4c25e !important; +} + +.info-panel-tab.active, +.info-panel-tab.active a { + background: #000 !important; +} + +.info-panel-tab.active { + background: #000 !important; +} + +.info-panel-tab-border { + background: #000 !important; + border-color: #000 !important; +} + +.file-action-item a { + color: #70bed9 !important; +} + +.md-fences, +/* code, */ + +tt { + border-radius: 3px; + color: #b9bcba; + font-size: 0.9em; + padding: 0; +} + +code { + background-color: #6952b6; + border-radius: 4px; + color: #fff; + font-weight: bold; + line-height: 1; + padding: 5px 7px 2px 7px; +} + +.md-fences { + margin-bottom: 15px; + margin-top: 15px; + padding-bottom: 6px; + padding-top: 8px; +} + +.md-task-list-item>input { + background: #1a283d; + margin-left: -1.3em; +} + +@media print { + html { + font-size: 13px; + } + + table, + pre { + page-break-inside: avoid; + } + + pre { + word-wrap: break-word; + } +} + +.md-fences { + /* background-color: #f8f8f8; */ +} + +#write pre.md-meta-block { + background-color: #1a283d; + border: 0; + border-radius: 3px; + color: #fff; + font-size: 85%; + line-height: 1.45; + margin-top: 0 !important; + padding: 1rem; +} + +.mathjax-block>.code-tooltip { + bottom: 0.375rem; +} + +.md-mathjax-midline { + background: #fafafa; +} + +#write>h3.md-focus:before { + left: -1.5625rem; + top: 0.375rem; +} + +#write>h4.md-focus:before { + left: -1.5625rem; + top: 0.285714286rem; +} + +#write>h5.md-focus:before { + left: -1.5625rem; + top: 0.285714286rem; +} + +#write>h6.md-focus:before { + left: -1.5625rem; + top: 0.285714286rem; +} + +.md-image>.md-meta { + border-radius: 3px; + color: inherit; + font-size: 0.9em; + padding: 2px 0px 0px 4px; +} + +.md-tag { + color: #70bfd9; + opacity: 1; +} + +.md-toc { + margin-top: 20px; + padding-bottom: 20px; +} + +.sidebar-tabs { + border-bottom: 1px solid #090b11; + font-weight: normal; +} + +#typora-sidebar .sidebar-tabs { + border-bottom: 1px solid #090b11; + font-family: 'Nunito' !important; + font-weight: bold; +} + +#typora-sidebar .file-list-item-file-name { + color: #71bfd9; + font-family: 'Nunito'; + font-weight: bold; +} + +#file-library-list-children { + background: #141d28; +} + +#typora-sidebar .file-list-item-summary, +#typora-sidebar .ty-search-item-line { + color: #c4d4ed; + font-family: 'Nunito'; +} + +.file-list-item-file-ext-part { + color: #57708d; + opacity: 1; +} + +.active .file-list-item-file-ext-part { + color: #1b1531; + font-weight: bold; +} + +.file-list-item.file-library-node.file-library-file-node { + background: #151b27; + border-color: #090c11; + opacity: 1; +} + +.file-list-item.file-library-node.file-library-file-node:hover { + background: #090c11; + color: #fff; +} + +#typora-sidebar #outline-content .outline-h1>.outline-item { + font-family: 'Nunito'; +} + +.info-panel-tab-wrapper { + background: #1a283d !important; + border-color: #1a283d !important; +} + +#typora-sidebar .file-tree-node.file-library-file-node.active .file-node-background, +#typora-sidebar .file-list-item.file-library-file-node.active { + background: #493a7e; + border-left: 4px solid #f0b752; + color: #fff; +} + +.file-library-node:not(.file-node-root):focus>.file-node-content { + outline: none; + border-color: #151d2b; +} + +#typora-sidebar .file-list-item.file-library-file-node:hover { + background: #18202d; +} + +#typora-sidebar .file-list-item.file-library-file-node.active .file-list-item-file-name-part { + color: #f0b752; +} + +#typora-sidebar .file-list-item.file-library-file-node.active:hover { + background: #403173; +} + +#typora-sidebar { + color: #83bed6; +} + +.file-node-title { + color: #83bed6; +} + + +/* menu button hover */ + +.sidebar-footer-item:hover { + background: none !important; +} + +#typora-sidebar .file-tree-node.file-library-file-node { + /* padding: 0; */ +} + +#typora-sidebar .file-tree-node.file-library-file-node.active .file-node-title { + color: #efb752; + color: #fff; +} + +#typora-sidebar .file-tree-node.file-library-node.file-node-root .file-node-content:hover .file-node-title { + color: #efb752; +} + +#typora-sidebar .file-tree-node.file-library-file-node.active:hover .file-node-title { + color: #fff; +} + +/* this is the sidebar file tree padding */ +#typora-sidebar .file-tree-node { + border: 0; + margin: 0; + padding: 0; + padding-left: 15px; +} + + + +#typora-sidebar .file-library-node.file-node-root .file-tree-node.file-library-file-node .file-node-icon::before { + background-image: url("data:image/svg+xml,%3Csvg version='1.1' fill='#70bfd9' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 512 512' style='enable-background:new 0 0 512 512;' xml:space='preserve'%3E%3Cg%3E%3Cg%3E%3Cpath d='M438.944,352c11.046,0,20-8.954,20-20V80c0-44.112-35.888-80-80-80H133.056c-44.112,0-80,35.888-80,80v352 c0,44.112,35.888,80,80,80h245.888c44.113,0,80-35.888,80.001-80c0-11.046-8.954-20-20-20c-11.046,0-20,8.954-20,20 c0,22.056-17.944,40-40,40H133.056c-22.056,0-40-17.944-40-40V80c0-22.056,17.944-40,40-40h245.889c22.056,0,40,17.944,40,40v252 C418.944,343.046,427.899,352,438.944,352z'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3Cg%3E%3Cpath d='M358.944,120h-206c-11.046,0-20,8.954-20,20s8.954,20,20,20h206c11.046,0,20-8.954,20-20S369.989,120,358.944,120z'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3Cg%3E%3Cpath d='M358.944,200h-206c-11.046,0-20,8.954-20,20s8.954,20,20,20h206c11.046,0,20-8.954,20-20S369.989,200,358.944,200z'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3Cg%3E%3Cpath d='M278.054,280H152.944c-11.046,0-20,8.954-20,20c0,11.046,8.954,20,20,20h125.112c11.046,0,19.999-8.954,19.999-20 C298.054,288.954,289.1,280,278.054,280z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); + content: ''; + display: inline-block; + height: 20px; + width: 20px; +} + +#typora-sidebar .file-library-node.file-node-root .file-tree-node.file-library-file-node:hover .file-node-icon::before { + background-image: url("data:image/svg+xml,%3Csvg version='1.1' fill='#f4c25d' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 512 512' style='enable-background:new 0 0 512 512;' xml:space='preserve'%3E%3Cg%3E%3Cg%3E%3Cpath d='M438.944,352c11.046,0,20-8.954,20-20V80c0-44.112-35.888-80-80-80H133.056c-44.112,0-80,35.888-80,80v352 c0,44.112,35.888,80,80,80h245.888c44.113,0,80-35.888,80.001-80c0-11.046-8.954-20-20-20c-11.046,0-20,8.954-20,20 c0,22.056-17.944,40-40,40H133.056c-22.056,0-40-17.944-40-40V80c0-22.056,17.944-40,40-40h245.889c22.056,0,40,17.944,40,40v252 C418.944,343.046,427.899,352,438.944,352z'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3Cg%3E%3Cpath d='M358.944,120h-206c-11.046,0-20,8.954-20,20s8.954,20,20,20h206c11.046,0,20-8.954,20-20S369.989,120,358.944,120z'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3Cg%3E%3Cpath d='M358.944,200h-206c-11.046,0-20,8.954-20,20s8.954,20,20,20h206c11.046,0,20-8.954,20-20S369.989,200,358.944,200z'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3Cg%3E%3Cpath d='M278.054,280H152.944c-11.046,0-20,8.954-20,20c0,11.046,8.954,20,20,20h125.112c11.046,0,19.999-8.954,19.999-20 C298.054,288.954,289.1,280,278.054,280z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); + content: ''; + display: inline-block; + height: 20px; + width: 20px; +} + +.file-library-node.file-node-root .file-node-content { + color: #6db7d1 !important; +} + +.file-library-node.file-node-root .file-node-content:hover { + color: #efb752 !important; +} + +.file-library-node.file-node-root { + color: yellow !important; +} + +.file-node-icon { + color: #70bfd9; + margin-right: 8px; +} + +/* .file-node-icon::before { */ +.file-library-node.file-node-root .file-node-content .file-node-icon::before { + background-image: url("data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 512 512' fill='%236db7d1' style='enable-background:new 0 0 512 512;' xml:space='preserve'%3E%3Cpath d='M448,106.7H264.8l-58.5-57.8c-4-3.9-9.4-6.2-15-6.2H61.8C27.7,42.7,0,71,0,105.7v300.5c0,34.8,27.7,63.1,61.8,63.1h388.4 c34.1,0,61.8-28.3,61.8-63.1V172.5C512,137.4,482.1,106.7,448,106.7z'/%3E%3C/svg%3E%0A"); + content: ''; + display: inline-block; + height: 20px; + width: 20px; +} + +.file-library-node.file-node-root .file-node-content:hover .file-node-icon::before { + background-image: url("data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 512 512' fill='%23efb752' style='enable-background:new 0 0 512 512;' xml:space='preserve'%3E%3Cpath d='M448,106.7H264.8l-58.5-57.8c-4-3.9-9.4-6.2-15-6.2H61.8C27.7,42.7,0,71,0,105.7v300.5c0,34.8,27.7,63.1,61.8,63.1h388.4 c34.1,0,61.8-28.3,61.8-63.1V172.5C512,137.4,482.1,106.7,448,106.7z'/%3E%3C/svg%3E%0A"); + content: ''; + display: inline-block; + height: 20px; + width: 20px; +} + +#typora-sidebar .file-tree-node.file-library-file-node:hover .file-node-icon::before { + background-image: url("data:image/svg+xml,%3Csvg version='1.1' fill='#f4c25d' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 512 512' style='enable-background:new 0 0 512 512;' xml:space='preserve'%3E%3Cg%3E%3Cg%3E%3Cpath d='M438.944,352c11.046,0,20-8.954,20-20V80c0-44.112-35.888-80-80-80H133.056c-44.112,0-80,35.888-80,80v352 c0,44.112,35.888,80,80,80h245.888c44.113,0,80-35.888,80.001-80c0-11.046-8.954-20-20-20c-11.046,0-20,8.954-20,20 c0,22.056-17.944,40-40,40H133.056c-22.056,0-40-17.944-40-40V80c0-22.056,17.944-40,40-40h245.889c22.056,0,40,17.944,40,40v252 C418.944,343.046,427.899,352,438.944,352z'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3Cg%3E%3Cpath d='M358.944,120h-206c-11.046,0-20,8.954-20,20s8.954,20,20,20h206c11.046,0,20-8.954,20-20S369.989,120,358.944,120z'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3Cg%3E%3Cpath d='M358.944,200h-206c-11.046,0-20,8.954-20,20s8.954,20,20,20h206c11.046,0,20-8.954,20-20S369.989,200,358.944,200z'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3Cg%3E%3Cpath d='M278.054,280H152.944c-11.046,0-20,8.954-20,20c0,11.046,8.954,20,20,20h125.112c11.046,0,19.999-8.954,19.999-20 C298.054,288.954,289.1,280,278.054,280z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); + content: ''; + display: inline-block; + height: 20px; + width: 20px; +} + +#typora-sidebar .file-tree-node.file-library-file-node.active:hover .file-node-icon::before { + background-image: url("data:image/svg+xml,%3Csvg version='1.1' fill='#ffffff' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 512 512' style='enable-background:new 0 0 512 512;' xml:space='preserve'%3E%3Cg%3E%3Cg%3E%3Cg%3E%3Cpath d='M352.459,220c0-11.046-8.954-20-20-20h-206c-11.046,0-20,8.954-20,20s8.954,20,20,20h206 C343.505,240,352.459,231.046,352.459,220z'/%3E%3Cpath d='M126.459,280c-11.046,0-20,8.954-20,20c0,11.046,8.954,20,20,20H251.57c11.046,0,20-8.954,20-20c0-11.046-8.954-20-20-20 H126.459z'/%3E%3Cpath d='M173.459,472H106.57c-22.056,0-40-17.944-40-40V80c0-22.056,17.944-40,40-40h245.889c22.056,0,40,17.944,40,40v123 c0,11.046,8.954,20,20,20c11.046,0,20-8.954,20-20V80c0-44.112-35.888-80-80-80H106.57c-44.112,0-80,35.888-80,80v352 c0,44.112,35.888,80,80,80h66.889c11.046,0,20-8.954,20-20C193.459,480.954,184.505,472,173.459,472z'/%3E%3Cpath d='M467.884,289.572c-23.394-23.394-61.458-23.395-84.837-0.016l-109.803,109.56c-2.332,2.327-4.052,5.193-5.01,8.345 l-23.913,78.725c-2.12,6.98-0.273,14.559,4.821,19.78c3.816,3.911,9,6.034,14.317,6.034c1.779,0,3.575-0.238,5.338-0.727 l80.725-22.361c3.322-0.92,6.35-2.683,8.79-5.119l109.573-109.367C491.279,351.032,491.279,312.968,467.884,289.572z M333.776,451.768l-40.612,11.25l11.885-39.129l74.089-73.925l28.29,28.29L333.776,451.768z M439.615,346.13l-3.875,3.867 l-28.285-28.285l3.862-3.854c7.798-7.798,20.486-7.798,28.284,0C447.399,325.656,447.399,338.344,439.615,346.13z'/%3E%3Cpath d='M332.459,120h-206c-11.046,0-20,8.954-20,20s8.954,20,20,20h206c11.046,0,20-8.954,20-20S343.505,120,332.459,120z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A"); + content: ''; + display: inline-block; + height: 20px; + width: 20px; +} + +#typora-sidebar .file-library-node.file-node-root .file-tree-node.file-library-file-node .active .file-node-icon::before, +.active .file-node-icon::before { + background-image: url("data:image/svg+xml,%3Csvg version='1.1' fill='#ffffff' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 512 512' style='enable-background:new 0 0 512 512;' xml:space='preserve'%3E%3Cg%3E%3Cg%3E%3Cg%3E%3Cpath d='M352.459,220c0-11.046-8.954-20-20-20h-206c-11.046,0-20,8.954-20,20s8.954,20,20,20h206 C343.505,240,352.459,231.046,352.459,220z'/%3E%3Cpath d='M126.459,280c-11.046,0-20,8.954-20,20c0,11.046,8.954,20,20,20H251.57c11.046,0,20-8.954,20-20c0-11.046-8.954-20-20-20 H126.459z'/%3E%3Cpath d='M173.459,472H106.57c-22.056,0-40-17.944-40-40V80c0-22.056,17.944-40,40-40h245.889c22.056,0,40,17.944,40,40v123 c0,11.046,8.954,20,20,20c11.046,0,20-8.954,20-20V80c0-44.112-35.888-80-80-80H106.57c-44.112,0-80,35.888-80,80v352 c0,44.112,35.888,80,80,80h66.889c11.046,0,20-8.954,20-20C193.459,480.954,184.505,472,173.459,472z'/%3E%3Cpath d='M467.884,289.572c-23.394-23.394-61.458-23.395-84.837-0.016l-109.803,109.56c-2.332,2.327-4.052,5.193-5.01,8.345 l-23.913,78.725c-2.12,6.98-0.273,14.559,4.821,19.78c3.816,3.911,9,6.034,14.317,6.034c1.779,0,3.575-0.238,5.338-0.727 l80.725-22.361c3.322-0.92,6.35-2.683,8.79-5.119l109.573-109.367C491.279,351.032,491.279,312.968,467.884,289.572z M333.776,451.768l-40.612,11.25l11.885-39.129l74.089-73.925l28.29,28.29L333.776,451.768z M439.615,346.13l-3.875,3.867 l-28.285-28.285l3.862-3.854c7.798-7.798,20.486-7.798,28.284,0C447.399,325.656,447.399,338.344,439.615,346.13z'/%3E%3Cpath d='M332.459,120h-206c-11.046,0-20,8.954-20,20s8.954,20,20,20h206c11.046,0,20-8.954,20-20S343.505,120,332.459,120z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A") !important; + content: ''; + display: inline-block; + height: 20px; + width: 20px; +} + + + +.active .file-node-icon { + color: #fff; +} + +.file-library-node.file-tree-node { + margin: 0; + padding: 0; +} + +.file-library-node.file-tree-node.file-library-file-node .file-node-title { + color: #e7f3fd; +} + +.file-library-node.file-tree-node.file-library-file-node:hover { + color: #fff; +} + +.file-node-background { + padding: 18px 10px 18px 0; +} + +.file-node-content { + padding: 8px 8px 8px 0; +} + +.file-node-content:hover { + cursor: pointer; +} + +.active .file-node-content { + font-weight: bold; +} + +#typora-quick-open { + background-color: #141d28; + color: #fff !important; +} + +#typora-quick-open-item { + background-color: #131c29; + border-color: #090c11; + border-color: #efb752 !important; + border-style: solid; + border-width: 1px; + color: #fff; + font-size: 15px; + font-weight: bold; +} + +/* focus mode */ +.on-focus-mode blockquote { + border-left-color: rgba(85, 85, 85, 0.12); +} + +header, +.context-menu, +.megamenu-content, +footer { + font-family: "Nunito", "Arial", sans-serif; +} + +.megamenu-opened header { + background-image: none; +} + +#typora-sidebar #ty-sidebar-footer { + background-color: #131b29 !important; + border-top: 1px solid #090b10; +} + +.megamenu-menu-header { + border-bottom: 1px solid #090b10; +} + +.megamenu-menu-list li:not(.saved) a:not(.active):hover, +.megamenu-menu-list li a.active { + background: #101010 !important; +} + +.file-node-content:hover .file-node-icon, +.file-node-content:hover .file-node-open-state { + visibility: visible; +} + +.mac-seamless-mode #typora-sidebar { + /* background-color: #f79f2a; */ + background-color: #090c12; + border-right: 1px solid #090c12; + font-weight: 100; +} + +.md-lang { + color: #b4654d; +} + +.html-for-mac .context-menu { + --item-hover-bg-color: #090c12; +} + +input { + color: #82bed6; +} + +#searchpanel-word-option-btn, +#find-and-replace-icon-word, +#find-and-replace-icon-case, +.searchpanel-search-option-btn, +.icon, +.glyphicon .popover, +.popover-title { + color: #82bed6 !important; + fill: #82bed6 !important; +} + +#md-notification .btn { + border: 0; +} + +.long-btn:hover { + background-color: #82bed6; +} + +.show-word-count #footer-word-count { + background: #000; +} + +#recent-file-panel-action-btn { + background-color: #82bed6; +} + +.dropdown-menu .divider { + border-color: #303d50; +} + +.ty-preferences .window-content { + background-color: #fafafa; +} + +.ty-preferences .nav-group-item.active { + background: #999; + color: white; +} + +.cm-s-inner { + border: 1px solid #324560; + border-radius: 0.25rem; + padding: 0.5rem 0.2rem; +} + +.cm-s-inner.CodeMirror, +.cm-s-inner .CodeMirror-gutters { + background-color: #192133 !important; + border: 1px solid #324560; + /* padding: 10px 20px; */ +} + +.cm-s-inner .CodeMirror-gutters { + border: 0; + color: #6d8a88; + width: 5ch; +} + +.cm-s-inner .CodeMirror-cursor { + border-left: solid thin #f8f8f2 !important; +} + +.cm-s-inner .CodeMirror-linenumber { + color: #6D8A88; +} + +.cm-s-inner .CodeMirror-line::selection, +.cm-s-inner .CodeMirror-line::-moz-selection, +.cm-s-inner .CodeMirror-line>span::selection, +.cm-s-inner .CodeMirror-line>span::-moz-selection, +.cm-s-inner .CodeMirror-line>span>span::selection, +.cm-s-inner .CodeMirror-line>span>span::-moz-selection { + background: rgba(255, 255, 255, 0.1); +} + +.cm-s-inner span.cm-comment { + color: #6272a4; +} + +.cm-s-inner span.cm-string, +.cm-s-inner span.cm-string-2 { + color: #f1fa8c; +} + +.cm-s-inner span.cm-number { + color: #bd93f9; +} + +.cm-s-inner span.cm-variable, +.cm-s-inner span.cm-variable-2 { + color: #50fa7b; +} + +.cm-s-inner span.cm-def { + color: white; +} + +.cm-s-inner span.cm-operator { + color: #ff79c6; +} + +.cm-s-inner span.cm-keyword { + color: #ff79c6; +} + +.cm-s-inner span.cm-atom { + color: #bd93f9; +} + +.cm-s-inner span.cm-meta { + color: #f8f8f2; +} + +.cm-s-inner span.cm-tag { + color: #ff79c6; +} + +.cm-s-inner span.cm-attribute { + color: #50fa7b; +} + +.cm-s-inner span.cm-qualifier { + color: #50fa7b; +} + +.cm-s-inner span.cm-property { + color: #66d9ef; +} + +.cm-s-inner span.cm-builtin { + color: #50fa7b; +} + +.cm-s-inner span.cm-variable-3, +.cm-s-inner span.cm-type { + color: #ffb86c; +} + +.md-fences.md-focus .cm-s-inner .CodeMirror-activeline-background { + background: rgba(255, 255, 255, 0.1); +} + +.cm-s-inner .CodeMirror-matchingbracket { + color: white !important; + text-decoration: underline; +} + +.cm-s-inner .CodeMirror-selected, +.cm-s-inner .CodeMirror-selectedtext { + background: #3b4254 !important; + color: inherit; + text-shadow: none; +} + +#write>p:first-child:empty { + position: static; +} + +#write>p:first-child:not(:only-child)::before, +#write>p:only-child::before { + background: url("cobalt/splash.png") no-repeat 45% 90% transparent; + background-size: cover; + bottom: 0; + content: ''; + display: block; + height: 100%; + left: 0; + max-width: 100%; + opacity: 0; + position: absolute; + right: 0; + top: 0; + width: 100%; +} + +#write>p:only-child:empty::before { + opacity: 1; +} \ No newline at end of file diff --git a/cobalt/aurum.psd b/cobalt/aurum.psd new file mode 100644 index 0000000..8d020f7 Binary files /dev/null and b/cobalt/aurum.psd differ diff --git a/cobalt/hack/hack-regular.woff b/cobalt/hack/hack-regular.woff new file mode 100644 index 0000000..e835381 Binary files /dev/null and b/cobalt/hack/hack-regular.woff differ diff --git a/cobalt/nunito/NunitoSans-ExtraBold.woff b/cobalt/nunito/NunitoSans-ExtraBold.woff new file mode 100644 index 0000000..f18a354 Binary files /dev/null and b/cobalt/nunito/NunitoSans-ExtraBold.woff differ diff --git a/cobalt/nunito/NunitoSans-ExtraBoldItalic.woff b/cobalt/nunito/NunitoSans-ExtraBoldItalic.woff new file mode 100644 index 0000000..0f6e8a6 Binary files /dev/null and b/cobalt/nunito/NunitoSans-ExtraBoldItalic.woff differ diff --git a/cobalt/nunito/NunitoSans-Italic.woff b/cobalt/nunito/NunitoSans-Italic.woff new file mode 100644 index 0000000..2e1a133 Binary files /dev/null and b/cobalt/nunito/NunitoSans-Italic.woff differ diff --git a/cobalt/nunito/NunitoSans-Regular.woff b/cobalt/nunito/NunitoSans-Regular.woff new file mode 100644 index 0000000..b573ec1 Binary files /dev/null and b/cobalt/nunito/NunitoSans-Regular.woff differ diff --git a/cobalt/splash.png b/cobalt/splash.png new file mode 100644 index 0000000..61621f5 Binary files /dev/null and b/cobalt/splash.png differ diff --git a/drake-ayu.css b/drake-ayu.css new file mode 100644 index 0000000..c254c80 --- /dev/null +++ b/drake-ayu.css @@ -0,0 +1,1133 @@ +/* + * Copyright (C) 2018 Drake, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@import url(./drake/font.css); + +:root { + --monospace: "JetBrainsMono NF", "Fira Code", Menlo, "Ubuntu Mono", Consolas; /*code font*/ + --text-font: var(--monospace); /*default font*/ + --title-font: var(--monospace); /*title font*/ + + --text-color: #b0b1ac; + --bg-color: #20242f; + --control-text-color: var(--text-color); + --meta-content-color: var(--text-color); + --active-file-border-color: var(--drake-accent); + --rawblock-edit-panel-bd: var(--code-block-bg-color); + --item-hover-bg-color: #151924; + --active-file-bg-color: var(--item-hover-bg-color); + --mermaid-theme: night; + + --blur-text-color: rgba(176, 177, 172, 0.5); + --md-char-color: #535455; + --side-bar-bg-color: var(--bg-color); + --search-select-bg-color: #ffffff; + --search-select-text-color: var(--bg-color); + --select-text-bg-color: #3473B068; + --window-border: 1px solid #1f2430; + + --drake-accent: #fcc65c; + --drake-highlight: #ffcc66; + --a-color: var(--drake-highlight); + --variable-color: var(--drake-highlight); + --outline-active-color: var(--a-color); + --code-block-bg-color: var(--item-hover-bg-color); + --code-block-color: var(--text-color); + --title-color: #cbcdbf; + --blockquote-border-color: var(--drake-accent); + --blockquote-color: var(--text-color); + --blockquote-bg-color: rgba(255, 204, 102, 0.05); + --strong-color: var(--title-color); + --h2-underline-color: var(--title-color); + --horizontal-divider-color: var(--title-color); + --height-light-color: var(--drake-highlight); + --height-light-border-color: var(--drake-highlight); + --yaml-color: #676773; + --yaml-bg-color: var(--code-block-bg-color); + --footnotes-bg-color: var(--item-hover-bg-color); + --footnotes-highlight: #FFD760; + --table-border-color: #111520; + --table-header-bg-color: #1a1e29; + --table-bg-color: var(--bg-color); + --table-n2-bg-color: var(--table-header-bg-color); + --input-bg-color: var(--item-hover-bg-color); + --btn-hover-bg-color: var(--item-hover-bg-color); + --checkbox-checked: url("data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M425.984 726.016l384-384-59.99-61.995-324.01 324.011-152.021-152.021L213.973 512zm384-598.016q36.01 0 61.013 25.984T896 213.974v596.01q0 34.005-25.003 59.99t-61.013 25.983h-596.01q-36.011 0-61.014-25.984t-25.003-59.989v-596.01q0-34.006 25.003-59.99T213.973 128h596.011z' fill='%2365b73b'/%3E%3C/svg%3E"); + --checkbox-unchecked: url("data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M810.667 213.333v597.334H213.333V213.333h597.334m0-85.333H213.333C166.4 128 128 166.4 128 213.333v597.334C128 857.6 166.4 896 213.333 896h597.334C857.6 896 896 857.6 896 810.667V213.333C896 166.4 857.6 128 810.667 128z' fill='%23acb7c4'/%3E%3C/svg%3E"); +} + +html { + font-size: 16px; +} + +body { + font-family: var(--text-font) !important; + color: var(--text-color); + -webkit-font-feature-settings: "liga" on, "calt" on; + -webkit-font-smoothing: subpixel-antialiased; + text-rendering: optimizeLegibility; + letter-spacing: 0; + margin: 0; + overflow-x: hidden; +} + +/*code block*/ +.md-fences { + font-size: 1rem; + padding: 0.5rem !important; + border-radius: 2px; + word-wrap: normal; + background-color: var(--code-block-bg-color); + color: var(--code-block-color); + border: none; +} + +/*mermaid*/ +.md-diagram-panel-preview text.actor > tspan { /*方块文字*/ + fill: var(--code-block-color) !important; + stroke: none !important; + font-family: var(--text-font) !important; + font-size: 1rem !important; +} +.md-diagram-panel-preview .actor { /*方块*/ + stroke: var(--table-border-color) !important; + fill: var(--code-block-bg-color) !important; +} +.md-diagram-panel-preview .actor-line { /*竖线*/ + stroke: var(--text-color) !important; + stroke-width: 1px; +} +.md-diagram-panel-preview .messageLine0 { /*横线*/ + stroke-width: 1.5; + stroke-dasharray: none; + stroke: var(--text-color) !important; +} +.md-diagram-panel-preview .messageLine1 { /*虚线*/ + stroke-width: 1.5 !important; + stroke-dasharray: 2, 2 !important; + stroke: var(--text-color) !important; +} +.md-diagram-panel-preview .messageText { /*描述文字*/ + fill: var(--text-color) !important; + font-family: var(--text-font) !important; + font-size: 1rem !important; +} +.md-diagram-panel-preview .activation0 { /*长方形*/ + fill: rgba(141, 141, 141, 0.22) !important; + stroke: var(--text-color) !important; +} +.md-diagram-panel-preview .labelText, .md-diagram-panel-preview .labelText > tspan { /*循环标记*/ + fill: var(--code-block-color) !important; + font-family: var(--text-font) !important; + font-size: 1rem !important; + dominant-baseline: unset; + alignment-baseline: unset; +} +.md-diagram-panel-preview .labelBox { /*循环标记背景*/ + stroke: var(--table-border-color) !important; + fill: var(--code-block-bg-color) !important; +} +.md-diagram-panel-preview .loopLine { /*循环标记虚线*/ + stroke: var(--text-color) !important; +} +.md-diagram-panel-preview .loopText, .md-diagram-panel-preview .loopText > tspan { /*循环名称*/ + fill: var(--text-color) !important; + font-size: 1rem !important; +} +.md-diagram-panel-preview .sequenceNumber { /*序号*/ + fill: var(--bg-color) !important; +} +pre.md-fences-advanced.md-focus .md-fences-adv-panel { + border: none; +} +.md-diagram-panel-preview .edgePath .path { /*箭头*/ + stroke: var(--text-color) !important; +} +.md-diagram-panel-preview .edgeLabel rect { /*条件文字背景*/ + fill: var(--bg-color) !important; +} +.md-diagram-panel-preview .edgeLabel span { /*条件文字*/ + color: var(--text-color); +} +.md-diagram-panel-preview .node rect, +.md-diagram-panel-preview .node circle, +.md-diagram-panel-preview .node ellipse, +.md-diagram-panel-preview .node polygon, +.md-diagram-panel-preview .node path { /*形状*/ + stroke: var(--table-border-color) !important; + fill: var(--code-block-bg-color) !important; +} +#write .md-diagram-panel .md-diagram-panel-preview div { /*形状内文字*/ + color: var(--code-block-color) !important; + font-family: var(--text-font) !important; + font-size: 1rem !important; +} + +/*code snippet*/ +#write code, tt { + margin: 0 2px; + color: var(--drake-highlight); +} + +/*variable*/ +var { + color: var(--variable-color); + font-weight: bold; +} + +/*raw block*/ +.md-rawblock-control:not(.md-rawblock-tooltip) { + border-radius: 2px 0 2px 2px; + padding: 0.2rem !important; +} +.md-rawblock:hover > .md-rawblock-container { + background: none; +} +.md-rawblock-input { + font-size: 1rem; +} +.md-rawblock-tooltip-btn:hover { + background: none; +} +.md-rawblock:hover > .md-rawblock-tooltip { + border-radius: 2px 2px 0 0; + margin-bottom: 2px !important; +} +.md-rawblock-tooltip.md-rawblock-control { + border-radius: 2px 2px 0 0; + color: var(--code-block-color); +} +.md-rawblock-tooltip-name { + color: var(--code-block-color); + opacity: 1; +} + +/*quote block*/ +blockquote:before { + display: block; + position: absolute; + content: ''; + width: 4px; + left: 0; + top: 0; + height: 100%; + background-color: var(--blockquote-border-color); + border-radius: 2px; +} + +blockquote { + color: var(--blockquote-color); + border-radius: 2px; + padding: 10px 16px; + background-color: var(--blockquote-bg-color); + position: relative; + border-left: none; +} + +#write strong { + color: var(--strong-color); + font-weight: bold; +} +#write blockquote strong { + color: var(--blockquote-color); +} + +/*link*/ +#write a { + color: var(--a-color); + text-decoration: none; +} +.on-focus-mode #write a .md-plain, .on-focus-mode .md-htmlblock-container a:hover { + border-bottom: .1rem solid var(--blur-text-color); +} +#write a .md-plain, .md-htmlblock-container a:hover, +.on-focus-mode #write .md-focus a .md-plain, .md-focus .md-htmlblock-container a:hover { + border-bottom: .1rem solid var(--a-color); +} +[md-inline=link] a { + margin: 0 .2rem; +} +a:any-link { + color: var(--a-color); +} + +img { + border-left: none; + border-right: none; + vertical-align: baseline; + border-radius: 2px; +} + +#write { + max-width: 1200px; + margin: 0 auto; + padding: 20px 30px 100px; +} +#typora-source .CodeMirror-lines { + max-width: 1200px; +} + +#write > ul:first-child, +#write > ol:first-child { + margin-top: 30px; +} + +body > *:first-child { + margin-top: 0 !important; +} + +body > *:last-child { + margin-bottom: 0 !important; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + font-family: var(--title-font); + position: relative; + margin-top: 2rem; + margin-bottom: 1rem; + font-weight: bold; + line-height: 1.4; + cursor: text; + color: var(--title-color); +} + +h3.md-focus:before, h4.md-focus:before, h5.md-focus:before, h6.md-focus:before { + visibility: hidden; +} + +h1 { + font-size: 2rem; + text-align: center; + margin-top: 0; +} + +h2.md-end-block.md-heading { + font-size: 1.6rem; + display: inline-block; +} + +h2.md-end-block.md-heading:after { + display: block; + content: ''; + height: 2px; + margin-top: 4px; + background-color: var(--h2-underline-color); + border-radius: 2px; +} +.on-focus-mode h2.md-end-block.md-heading:not(.md-focus):not(.md-focus-container):after { + background-color: var(--blur-text-color) !important; +} + +h3 { + font-size: 1.4rem; +} + +h4 { + font-size: 1.2rem; +} + +h5 { + font-size: 1rem; +} + +h6 { + font-size: 1rem; +} + +h1:hover a.anchor, +h2:hover a.anchor, +h3:hover a.anchor, +h4:hover a.anchor, +h5:hover a.anchor, +h6:hover a.anchor { + text-decoration: none; +} + +h1 tt, +h1 code { + font-size: inherit !important; +} + +h2 tt, +h2 code { + font-size: inherit !important; +} + +h3 tt, +h3 code { + font-size: inherit !important; +} + +h4 tt, +h4 code { + font-size: inherit !important; +} + +h5 tt, +h5 code { + font-size: inherit !important; +} + +h6 tt, +h6 code { + font-size: inherit !important; +} + +p, +blockquote, +ul, +ol, +dl, +table { + margin: 0.8em 0; +} + +li > ol, +li > ul { + margin: 0 0; +} + +hr { + height: 2px; + padding: 0; + margin: 16px 0; + background-color: var(--horizontal-divider-color); + border: 0 none; + overflow: hidden; + box-sizing: content-box; +} + +body > h2:first-child { + margin-top: 0; + padding-top: 0; +} + +body > h1:first-child { + margin-top: 0; + padding-top: 0; +} + +body > h1:first-child + h2 { + margin-top: 0; + padding-top: 0; +} + +body > h3:first-child, +body > h4:first-child, +body > h5:first-child, +body > h6:first-child { + margin-top: 0; + padding-top: 0; +} + +a:first-child h1, +a:first-child h2, +a:first-child h3, +a:first-child h4, +a:first-child h5, +a:first-child h6 { + margin-top: 0; + padding-top: 0; +} + +h1 p, +h2 p, +h3 p, +h4 p, +h5 p, +h6 p { + margin-top: 0; +} + +li p.first { + display: inline-block; +} + +ul, ol { + padding-inline-start: 2em; +} + +ul:first-child, +ol:first-child { + margin-top: 0; +} + +ul:last-child, +ol:last-child { + margin-bottom: 0; +} + +table { + padding: 0; + word-break: initial; + background-color: var(--table-bg-color); +} +table tr { + border-top: .1em solid var(--table-border-color); + margin: 0; + padding: 0; +} +table th { + font-weight: bold; + border: .1em solid var(--table-border-color); + border-bottom: 0; + margin: 0; + padding: 6px 13px; +} +table td { + border: .1em solid var(--table-border-color); + margin: 0; + padding: 6px 13px; +} +table thead { + background-color: var(--table-header-bg-color); +} +table tr:nth-child(2n) { + background-color: var(--table-n2-bg-color); +} +table tr th:first-child, +table tr td:first-child { + margin-top: 0; +} +table tr th:last-child, +table tr td:last-child { + margin-bottom: 0; +} + +#write em { + padding: 0 5px 0 2px; +} + +#write table thead th { + background-color: var(--table-header-bg-color); +} + +/* height light */ +#write mark { + border: .1em solid var(--height-light-border-color); + color: var(--height-light-color); + background-color: transparent; + padding: .1rem .5rem; + border-radius: 2rem; + margin: 0 .2rem; + font-size: .95rem; +} + +/*shortcut*/ +kbd { + border: .1em solid #5b5b5e; + background: transparent; + color: var(--text-color); + margin: 0 .4rem; + font-size: .95rem; + padding: .3em .4em; + border-radius: .4em; + vertical-align: top; + box-shadow: .1em .1em .2em rgba(0, 0, 0, 0.3); +} + +#write del { + padding: 1px 2px; +} + +.md-task-list-item > input { + margin-left: -1.3em; +} + +@media print { + html { + font-size: 12px; + } + + table, + pre { + page-break-inside: avoid; + } + + pre { + word-wrap: break-word; + } +} + +/*YAML*/ +#write pre.md-meta-block { + padding: 1rem; + font-size: 1rem; + line-height: 1.45; + background-color: var(--yaml-bg-color); + border: 0; + border-radius: 2px; + color: var(--yaml-color); + margin-top: 0 !important; +} + +.mathjax-block > .code-tooltip { + bottom: .375rem; +} + +#write > h3.md-focus:before { + left: -1.5625rem; + top: .375rem; +} + +#write > h4.md-focus:before { + left: -1.5625rem; + top: .285714286rem; +} + +#write > h5.md-focus:before { + left: -1.5625rem; + top: .285714286rem; +} + +#write > h6.md-focus:before { + left: -1.5625rem; + top: .285714286rem; +} + +.md-image > .md-meta { + border-radius: 2px; + font-family: initial; + padding: 2px 0 0 4px; + color: inherit; +} + +.md-tag { + color: inherit; +} + +.md-toc { + margin-top: 20px; + padding-bottom: 20px; +} + +.typora-quick-open-item { + font-size: 1rem !important; + height: 50px; + padding-left: 8px; + padding-top: 4px; + padding-bottom: 4px; +} + +#typora-quick-open { + box-shadow: 0 0 8px #00000045; + padding: 0; +} + +.ty-quick-open-category.ty-has-prev .ty-quick-open-category-title { + border-top: none; +} + +#typora-quick-open-input { + margin: 8px; + box-shadow: none; + border-radius: 2px; +} + +#typora-quick-open-input input { + font-size: 1rem; + box-shadow: none; + padding-top: 2px; + padding-left: 10px; + padding-right: 10px; + line-height: 32px; + max-height: 32px; + border: none; +} + +.modal-dialog#typora-quick-open { + border-radius: 8px; +} + +.ty-quick-open-category-title { + padding-left: 8px; + color: #BEBEBE; + font-size: 0.8rem; + margin-bottom: 4px; +} + +.typora-quick-open-item-path { + font-size: 0.8rem; + text-overflow: ellipsis; + white-space: nowrap; + margin-top: 1px; +} + +/*search input*/ +.form-control { + border: none; + border-radius: 2px; + box-shadow: none; +} + +#md-searchpanel .btn { + border-radius: 2px; +} + +#search-panel-replaceall-btn { + padding-right: 5px !important; + text-align: center !important; +} + +#search-panel-replace-btn { + text-align: center !important; +} + +#md-searchpanel input { + background: var(--input-bg-color); + border-radius: 2px; +} + +.searchpanel-search-option-btn { + border-radius: 2px; + border: none; + background: transparent; + color: var(--text-color); +} + +.searchpanel-search-option-btn.active { + background: var(--text-color); + color: var(--bg-color); +} + +.form-control:focus { + box-shadow: none; +} + +#md-notification:before { + top: 10px; +} + +/** focus mode */ +.on-focus-mode blockquote { + border-left-color: rgba(85, 85, 85, 0.12); +} + +header, +.context-menu, +.megamenu-content, +footer { + font-family: initial; +} + +/*sidebar*/ +.file-node-content:hover .file-node-icon, +.file-node-content:hover .file-node-open-state { + visibility: visible; +} + +#typora-sidebar { + font-size: 1.1rem; +} + +.sidebar-tabs { + border-bottom: none; +} + +.file-list-item-summary, .file-list-item-parent-loc, .file-list-item-time, .file-list-item-summary { + font-size: 0.9rem !important; + font-family: var(--text-font); +} + +.file-list-item-file-ext-part { + display: none; +} + +.outline-item { + font-size: 1rem; +} + +/*footnotes mark*/ +#write .md-footnote { + background-color: inherit; + color: var(--drake-highlight); + font-size: 0.9rem; + border-radius: 0.9rem; + padding-left: 0; +} + +#write .md-footnote:before { + content: "["; +} + +#write .md-footnote:after { + content: "]"; +} + +/*footnotes content*/ +.md-hover-tip .code-tooltip-content { + border-radius: 2px; +} + +/*footnotes title*/ +span.md-def-name { + padding-right: 3ch; + padding-left: 0; + position: relative; + font-weight: normal; +} + +/*footnotes desc*/ +.footnotes { + font-size: 1rem; + font-weight: normal; + color: var(--text-color); + position: relative; +} + +/*footnotes tooltip text*/ +.code-tooltip-content .md-plain { + font-size: 0.9rem; + font-family: inherit; +} + +.code-tooltip-content code { + padding: 0 2px; + font-family: inherit; + color: var(--footnotes-highlight); + background-color: inherit; +} + +.code-tooltip-content a { + color: var(--footnotes-highlight); +} + +div.code-tooltip-content { + box-shadow: 0 0 8px #00000045; + background: var(--footnotes-bg-color); +} + +.footnotes { + opacity: 1; +} + +.md-def-name:after { + content: ". ^"; + color: var(--text-color); +} + +.md-def-footnote .md-def-name:before { + content: ""; + color: var(--text-color); + position: absolute; +} + +.md-def-name:before { + content: ""; + color: var(--text-color); + position: absolute; +} + +.md-content.md-url, .md-def-content.md-def-url.md-auto-disp { + text-decoration: none; + border-bottom: .1rem solid var(--text-color); +} + +.CodeMirror-scroll::-webkit-scrollbar { + display: none; +} + +.file-list-item-summary { + font-size: 1em; +} + +.pin-outline #outline-content .outline-active strong, .pin-outline .outline-active { + font-weight: 500; + color: var(--outline-active-color); +} + +.file-list-item.active { + border-left: 4px solid var(--drake-accent); +} + +#md-searchpanel .btn:not(.close-btn):hover { + box-shadow: none; + background: var(--btn-hover-bg-color); +} + +/*checkbox*/ +#write input[type=checkbox] { + opacity: 0; + height: 1.6rem; + width: 1.6rem; + margin-left: -2em; + margin-top: 0; + top: 0; +} + +#write .ul-list li.md-task-list-item.task-list-done::before { + content: ""; + background: var(--checkbox-checked) 0 0 no-repeat; + background-size: 100%; + display: inline-block; + position: absolute; + height: 1.6rem; + width: 1.6rem; + margin-left: -2em; +} + +#write .ul-list li.md-task-list-item.task-list-not-done::before { + content: ""; + background: var(--checkbox-unchecked) 0 0 no-repeat; + background-size: 100%; + display: inline-block; + position: absolute; + height: 1.6rem; + width: 1.6rem; + margin-left: -2em; +} + +/*insert table*/ +.btn { + border-radius: 2px; +} + +.modal-content { + border-radius: 8px; +} + +.btn-primary:hover, .btn-primary:active { + background-color: var(--btn-hover-bg-color); + color: var(--drake-highlight); +} + +.btn-primary { + background-color: transparent; + color: var(--drake-highlight); +} + +.btn-default { + background-color: transparent; +} + +.btn:active { + box-shadow: none; + border-color: transparent; +} + +.modal-footer { + border-top: none; +} + +#table-insert-col, #table-insert-row { + background: var(--input-bg-color); + border-radius: 2px; +} + +/*preference panel*/ +#megamenu-content { + background-image: none !important; + background-color: var(--bg-color); +} +#top-titlebar { + height: inherit; + background-color: var(--bg-color); +} +#megamenu-menu-sidebar { + background-color: var(--bg-color); + color: var(--text-color); +} +.long-btn { + width: inherit; + min-width: 300px; + border: 1px solid var(--text-color); + border-radius: 6px; +} +.megamenu-menu-panel h1 { + margin-bottom: 3rem; + text-align: left; +} +.megamenu-menu-panel h1, .megamenu-menu-panel h2 { + font-weight: normal; +} +#recent-file-panel-search-input { + height: 45px; + border: none; + border-bottom: 1px solid var(--text-color); + padding-left: 8px; +} +#recent-file-panel-search-input::placeholder { + color: var(--text-color); + opacity: .5; +} +.megamenu-menu-header { + border-bottom: none; +} +#recent-file-panel-action-btn { + background: none; + border: none; +} +#recent-file-panel-action-btn-container { + float: none; + display: inline-block; +} +#top-titlebar .toolbar-icon.btn.hover, #top-titlebar .toolbar-icon.btn:hover { + background-color: var(--btn-hover-bg-color); + color: var(--text-color); +} +.megamenu-menu-panel .btn:hover { + background-color: var(--btn-hover-bg-color) !important; + color: var(--text-color); +} +#recent-file-panel tbody tr:nth-child(2n-1), +.megamenu-menu-panel table thead, +.megamenu-menu-panel table tr { + background-color: transparent; +} +.megamenu-menu-panel table { + font-weight: normal; +} +#megamenu-back-btn { + color: var(--text-color); + border: 1px solid var(--text-color); +} +.megamenu-menu-header #megamenu-menu-header-title { + color: var(--text-color); +} +header, .context-menu, .megamenu-content, footer { + font-family: var(--text-font); +} +.ty-preferences select { + padding-left: 2px; +} +.preference-item-hint { + font-size: 14px; +} +a.ty-link { + color: var(--a-color); + margin: 0 .2rem; +} + +/** + code render + Name: Ayu + From https://github.com/ayu-theme/ayu-colors + */ +.cm-s-inner.CodeMirror { + background: none; + color: var(--code-block-color); +} +.cm-s-inner span.cm-meta { + color: #BBB529; +} +.cm-s-inner span.cm-number { + color: #6897BB; +} +.cm-s-inner span.cm-keyword { + color: #ffa759; +} +.cm-s-inner span.cm-def { + color: #ffd580; +} +.cm-s-inner span.cm-variable { + color: var(--code-block-color); +} +.cm-s-inner span.cm-variable-2 { + color: var(--code-block-color); +} +.cm-s-inner span.cm-variable-3 { + color: #9876AA; +} +.cm-s-inner span.cm-type { + color: #AABBCC; +} +.cm-s-inner span.cm-property { + color: #FFC66D; +} +.cm-s-inner span.cm-operator { + color: var(--code-block-color); +} +.cm-s-inner span.cm-string { + color: #9cc16b; +} +.cm-s-inner span.cm-string-2 { + color: #9cc16b; +} +.cm-s-inner span.cm-comment { + color: #5c6773; +} +.cm-s-inner span.cm-link { + color: #ffa759; +} +.cm-s-inner span.cm-atom { + color: #ffa759; +} +.cm-s-inner span.cm-error { + color: #d1675a; +} +.cm-s-inner span.cm-tag { + color: #E8BF6A; +} +.cm-s-inner span.cm-quote { + color: #a6e22e; +} +.cm-s-inner span.cm-attribute { + color: #9876AA; +} +.cm-s-inner span.cm-qualifier { + color: #6A8759; +} +.cm-s-inner span.cm-bracket { + color: #E8BF6A; +} +.cm-s-inner span.cm-builtin { + color: #FF9E59; +} +.cm-s-inner span.cm-special { + color: #FF9E59; +} +.cm-s-inner span.cm-matchhighlight { + color: var(--code-block-color); + background-color: rgba(50, 89, 48, .7); + font-weight: normal; +} +.cm-s-inner span.cm-searching { + color: var(--code-block-color); + background-color: rgba(61, 115, 59, .7); + font-weight: normal; +} +.cm-s-inner .CodeMirror-gutters { + border-right: none; + border-radius: 2px; + padding-left: 0.5rem; + background: var(--bg-color); +} +.cm-s-inner .CodeMirror-linenumber { + color: #5c6773; +} +.cm-s-inner .CodeMirror-matchingbracket { + background-color: #3B514D; + color: #FFEF28 !important; +} +.cm-s-inner .CodeMirror-selected { + background: #214283 !important; +} +.cm-s-inner .CodeMirror-selectedtext { + background: #214283 !important; +} +.cm-s-typora-default .CodeMirror-selectedtext { + background: var(--select-text-bg-color) !important; +} +.cm-overlay.CodeMirror-selectedtext { + background: var(--select-text-bg-color) !important; +} +.cm-s-inner div.CodeMirror-cursor { + border-left: 1px solid var(--code-block-color); +} \ No newline at end of file diff --git a/drake-black.css b/drake-black.css new file mode 100644 index 0000000..b20199c --- /dev/null +++ b/drake-black.css @@ -0,0 +1,1127 @@ +/* + * Copyright (C) 2018 Drake, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@import url(./drake/font.css); + +:root { + --monospace: "JetBrainsMono NF", "Fira Code", Menlo, "Ubuntu Mono", Consolas; /*code font*/ + --text-font: var(--monospace); /*default font*/ + --title-font: var(--monospace); /*title font*/ + + --text-color: #b3bec4; + --bg-color: #212121; + --control-text-color: var(--text-color); + --meta-content-color: var(--text-color); + --active-file-border-color: var(--drake-accent); + --rawblock-edit-panel-bd: var(--code-block-bg-color); + --item-hover-bg-color: #323232; + --active-file-bg-color: var(--item-hover-bg-color); + --mermaid-theme: night; + + --blur-text-color: rgba(179, 190, 196, 0.5); + --md-char-color: #535455; + --side-bar-bg-color: var(--bg-color); + --search-select-bg-color: #ffffff; + --search-select-text-color: var(--bg-color); + --select-text-bg-color: #3473B068; + --window-border: 1px solid #282828; + + --drake-accent: #ff9800; + --drake-highlight: #ff9800; + --a-color: var(--drake-highlight); + --variable-color: var(--drake-highlight); + --outline-active-color: var(--a-color); + --code-block-bg-color: #1b1b1b; + --code-block-color: var(--text-color); + --title-color: #bbc6d2; + --blockquote-border-color: var(--drake-accent); + --blockquote-color: var(--text-color); + --blockquote-bg-color: rgba(255, 185, 82, 0.05); + --strong-color: var(--title-color); + --h2-underline-color: var(--title-color); + --horizontal-divider-color: var(--title-color); + --height-light-color: var(--drake-highlight); + --height-light-border-color: var(--drake-highlight); + --yaml-color: #676773; + --yaml-bg-color: var(--code-block-bg-color); + --footnotes-bg-color: var(--item-hover-bg-color); + --footnotes-highlight: #FFD760; + --table-border-color: var(--item-hover-bg-color); + --table-header-bg-color: #292929; + --table-bg-color: var(--bg-color); + --table-n2-bg-color: var(--table-header-bg-color); + --input-bg-color: var(--item-hover-bg-color); + --btn-hover-bg-color: var(--item-hover-bg-color); + --checkbox-checked: url("data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M425.984 726.016l384-384-59.99-61.995-324.01 324.011-152.021-152.021L213.973 512zm384-598.016q36.01 0 61.013 25.984T896 213.974v596.01q0 34.005-25.003 59.99t-61.013 25.983h-596.01q-36.011 0-61.014-25.984t-25.003-59.989v-596.01q0-34.006 25.003-59.99T213.973 128h596.011z' fill='%2365b73b'/%3E%3C/svg%3E"); + --checkbox-unchecked: url("data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M810.667 213.333v597.334H213.333V213.333h597.334m0-85.333H213.333C166.4 128 128 166.4 128 213.333v597.334C128 857.6 166.4 896 213.333 896h597.334C857.6 896 896 857.6 896 810.667V213.333C896 166.4 857.6 128 810.667 128z' fill='%23acb7c4'/%3E%3C/svg%3E"); +} + +html { + font-size: 16px; +} + +body { + font-family: var(--text-font) !important; + color: var(--text-color); + -webkit-font-feature-settings: "liga" on, "calt" on; + -webkit-font-smoothing: subpixel-antialiased; + text-rendering: optimizeLegibility; + letter-spacing: 0; + margin: 0; + overflow-x: hidden; +} + +/*code block*/ +.md-fences { + font-size: 1rem; + padding: 0.5rem !important; + border-radius: 2px; + word-wrap: normal; + background-color: var(--code-block-bg-color); + color: var(--code-block-color); + border: none; +} + +/*mermaid*/ +.md-diagram-panel-preview text.actor > tspan { /*方块文字*/ + fill: var(--code-block-color) !important; + stroke: none !important; + font-family: var(--text-font) !important; + font-size: 1rem !important; +} +.md-diagram-panel-preview .actor { /*方块*/ + stroke: var(--table-border-color) !important; + fill: var(--code-block-bg-color) !important; +} +.md-diagram-panel-preview .actor-line { /*竖线*/ + stroke: var(--text-color) !important; + stroke-width: 1px; +} +.md-diagram-panel-preview .messageLine0 { /*横线*/ + stroke-width: 1.5; + stroke-dasharray: none; + stroke: var(--text-color) !important; +} +.md-diagram-panel-preview .messageLine1 { /*虚线*/ + stroke-width: 1.5 !important; + stroke-dasharray: 2, 2 !important; + stroke: var(--text-color) !important; +} +.md-diagram-panel-preview .messageText { /*描述文字*/ + fill: var(--text-color) !important; + font-family: var(--text-font) !important; + font-size: 1rem !important; +} +.md-diagram-panel-preview .activation0 { /*长方形*/ + fill: rgba(141, 141, 141, 0.22) !important; + stroke: var(--text-color) !important; +} +.md-diagram-panel-preview .labelText, .md-diagram-panel-preview .labelText > tspan { /*循环标记*/ + fill: var(--code-block-color) !important; + font-family: var(--text-font) !important; + font-size: 1rem !important; + dominant-baseline: unset; + alignment-baseline: unset; +} +.md-diagram-panel-preview .labelBox { /*循环标记背景*/ + stroke: var(--table-border-color) !important; + fill: var(--code-block-bg-color) !important; +} +.md-diagram-panel-preview .loopLine { /*循环标记虚线*/ + stroke: var(--text-color) !important; +} +.md-diagram-panel-preview .loopText, .md-diagram-panel-preview .loopText > tspan { /*循环名称*/ + fill: var(--text-color) !important; + font-size: 1rem !important; +} +.md-diagram-panel-preview .sequenceNumber { /*序号*/ + fill: var(--bg-color) !important; +} +pre.md-fences-advanced.md-focus .md-fences-adv-panel { + border: none; +} +.md-diagram-panel-preview .edgePath .path { /*箭头*/ + stroke: var(--text-color) !important; +} +.md-diagram-panel-preview .edgeLabel rect { /*条件文字背景*/ + fill: var(--bg-color) !important; +} +.md-diagram-panel-preview .edgeLabel span { /*条件文字*/ + color: var(--text-color); +} +.md-diagram-panel-preview .node rect, +.md-diagram-panel-preview .node circle, +.md-diagram-panel-preview .node ellipse, +.md-diagram-panel-preview .node polygon, +.md-diagram-panel-preview .node path { /*形状*/ + stroke: var(--table-border-color) !important; + fill: var(--code-block-bg-color) !important; +} +#write .md-diagram-panel .md-diagram-panel-preview div { /*形状内文字*/ + color: var(--code-block-color) !important; + font-family: var(--text-font) !important; + font-size: 1rem !important; +} + +/*code snippet*/ +#write code, tt { + margin: 0 2px; + color: var(--drake-highlight); +} + +/*variable*/ +var { + color: var(--variable-color); + font-weight: bold; +} + +/*raw block*/ +.md-rawblock-control:not(.md-rawblock-tooltip) { + border-radius: 2px 0 2px 2px; + padding: 0.2rem !important; +} +.md-rawblock:hover > .md-rawblock-container { + background: none; +} +.md-rawblock-input { + font-size: 1rem; +} +.md-rawblock-tooltip-btn:hover { + background: none; +} +.md-rawblock:hover > .md-rawblock-tooltip { + border-radius: 2px 2px 0 0; + margin-bottom: 2px !important; +} +.md-rawblock-tooltip.md-rawblock-control { + border-radius: 2px 2px 0 0; + color: var(--code-block-color); +} +.md-rawblock-tooltip-name { + color: var(--code-block-color); + opacity: 1; +} + +/*quote block*/ +blockquote:before { + display: block; + position: absolute; + content: ''; + width: 4px; + left: 0; + top: 0; + height: 100%; + background-color: var(--blockquote-border-color); + border-radius: 2px; +} + +blockquote { + color: var(--blockquote-color); + border-radius: 2px; + padding: 10px 16px; + background-color: var(--blockquote-bg-color); + position: relative; + border-left: none; +} + +#write strong { + color: var(--strong-color); + font-weight: bold; +} +#write blockquote strong { + color: var(--blockquote-color); +} + +/*link*/ +#write a { + color: var(--a-color); + text-decoration: none; +} +.on-focus-mode #write a .md-plain, .on-focus-mode .md-htmlblock-container a:hover { + border-bottom: .1rem solid var(--blur-text-color); +} +#write a .md-plain, .md-htmlblock-container a:hover, +.on-focus-mode #write .md-focus a .md-plain, .md-focus .md-htmlblock-container a:hover { + border-bottom: .1rem solid var(--a-color); +} +[md-inline=link] a { + margin: 0 .2rem; +} +a:any-link { + color: var(--a-color); +} + +img { + border-left: none; + border-right: none; + vertical-align: baseline; + border-radius: 2px; +} + +#write { + max-width: 1200px; + margin: 0 auto; + padding: 20px 30px 100px; +} +#typora-source .CodeMirror-lines { + max-width: 1200px; +} + +#write > ul:first-child, +#write > ol:first-child { + margin-top: 30px; +} + +body > *:first-child { + margin-top: 0 !important; +} + +body > *:last-child { + margin-bottom: 0 !important; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + font-family: var(--title-font); + position: relative; + margin-top: 2rem; + margin-bottom: 1rem; + font-weight: bold; + line-height: 1.4; + cursor: text; + color: var(--title-color); +} + +h3.md-focus:before, h4.md-focus:before, h5.md-focus:before, h6.md-focus:before { + visibility: hidden; +} + +h1 { + font-size: 2rem; + text-align: center; + margin-top: 0; +} + +h2.md-end-block.md-heading { + font-size: 1.6rem; + display: inline-block; +} + +h2.md-end-block.md-heading:after { + display: block; + content: ''; + height: 2px; + margin-top: 4px; + background-color: var(--h2-underline-color); + border-radius: 2px; +} +.on-focus-mode h2.md-end-block.md-heading:not(.md-focus):not(.md-focus-container):after { + background-color: var(--blur-text-color) !important; +} + +h3 { + font-size: 1.4rem; +} + +h4 { + font-size: 1.2rem; +} + +h5 { + font-size: 1rem; +} + +h6 { + font-size: 1rem; +} + +h1:hover a.anchor, +h2:hover a.anchor, +h3:hover a.anchor, +h4:hover a.anchor, +h5:hover a.anchor, +h6:hover a.anchor { + text-decoration: none; +} + +h1 tt, +h1 code { + font-size: inherit !important; +} + +h2 tt, +h2 code { + font-size: inherit !important; +} + +h3 tt, +h3 code { + font-size: inherit !important; +} + +h4 tt, +h4 code { + font-size: inherit !important; +} + +h5 tt, +h5 code { + font-size: inherit !important; +} + +h6 tt, +h6 code { + font-size: inherit !important; +} + +p, +blockquote, +ul, +ol, +dl, +table { + margin: 0.8em 0; +} + +li > ol, +li > ul { + margin: 0 0; +} + +hr { + height: 2px; + padding: 0; + margin: 16px 0; + background-color: var(--horizontal-divider-color); + border: 0 none; + overflow: hidden; + box-sizing: content-box; +} + +body > h2:first-child { + margin-top: 0; + padding-top: 0; +} + +body > h1:first-child { + margin-top: 0; + padding-top: 0; +} + +body > h1:first-child + h2 { + margin-top: 0; + padding-top: 0; +} + +body > h3:first-child, +body > h4:first-child, +body > h5:first-child, +body > h6:first-child { + margin-top: 0; + padding-top: 0; +} + +a:first-child h1, +a:first-child h2, +a:first-child h3, +a:first-child h4, +a:first-child h5, +a:first-child h6 { + margin-top: 0; + padding-top: 0; +} + +h1 p, +h2 p, +h3 p, +h4 p, +h5 p, +h6 p { + margin-top: 0; +} + +li p.first { + display: inline-block; +} + +ul, ol { + padding-inline-start: 2em; +} + +ul:first-child, +ol:first-child { + margin-top: 0; +} + +ul:last-child, +ol:last-child { + margin-bottom: 0; +} + +table { + padding: 0; + word-break: initial; + background-color: var(--table-bg-color); +} +table tr { + border-top: .1em solid var(--table-border-color); + margin: 0; + padding: 0; +} +table th { + font-weight: bold; + border: .1em solid var(--table-border-color); + border-bottom: 0; + margin: 0; + padding: 6px 13px; +} +table td { + border: .1em solid var(--table-border-color); + margin: 0; + padding: 6px 13px; +} +table thead { + background-color: var(--table-header-bg-color); +} +table tr:nth-child(2n) { + background-color: var(--table-n2-bg-color); +} +table tr th:first-child, +table tr td:first-child { + margin-top: 0; +} +table tr th:last-child, +table tr td:last-child { + margin-bottom: 0; +} + +#write em { + padding: 0 5px 0 2px; +} + +#write table thead th { + background-color: var(--table-header-bg-color); +} + +/* height light */ +#write mark { + border: .1em solid var(--height-light-border-color); + color: var(--height-light-color); + background-color: transparent; + padding: .1rem .5rem; + border-radius: 2rem; + margin: 0 .2rem; + font-size: .95rem; +} + +/*shortcut*/ +kbd { + border: .1em solid #5b5b5e; + background: transparent; + color: var(--text-color); + margin: 0 .4rem; + font-size: .95rem; + padding: .3em .4em; + border-radius: .4em; + vertical-align: top; + box-shadow: .1em .1em .2em rgba(0, 0, 0, 0.3); +} + +#write del { + padding: 1px 2px; +} + +.md-task-list-item > input { + margin-left: -1.3em; +} + +@media print { + html { + font-size: 12px; + } + + table, + pre { + page-break-inside: avoid; + } + + pre { + word-wrap: break-word; + } +} + +/*YAML*/ +#write pre.md-meta-block { + padding: 1rem; + font-size: 1rem; + line-height: 1.45; + background-color: var(--yaml-bg-color); + border: 0; + border-radius: 2px; + color: var(--yaml-color); + margin-top: 0 !important; +} + +.mathjax-block > .code-tooltip { + bottom: .375rem; +} + +#write > h3.md-focus:before { + left: -1.5625rem; + top: .375rem; +} + +#write > h4.md-focus:before { + left: -1.5625rem; + top: .285714286rem; +} + +#write > h5.md-focus:before { + left: -1.5625rem; + top: .285714286rem; +} + +#write > h6.md-focus:before { + left: -1.5625rem; + top: .285714286rem; +} + +.md-image > .md-meta { + border-radius: 2px; + font-family: initial; + padding: 2px 0 0 4px; + color: inherit; +} + +.md-tag { + color: inherit; +} + +.md-toc { + margin-top: 20px; + padding-bottom: 20px; +} + +.typora-quick-open-item { + font-size: 1rem !important; + height: 50px; + padding-left: 8px; + padding-top: 4px; + padding-bottom: 4px; +} + +#typora-quick-open { + box-shadow: 0 0 8px #00000045; + padding: 0; +} + +.ty-quick-open-category.ty-has-prev .ty-quick-open-category-title { + border-top: none; +} + +#typora-quick-open-input { + margin: 8px; + box-shadow: none; + border-radius: 2px; +} + +#typora-quick-open-input input { + font-size: 1rem; + box-shadow: none; + padding-top: 2px; + padding-left: 10px; + padding-right: 10px; + line-height: 32px; + max-height: 32px; + border: none; +} + +.modal-dialog#typora-quick-open { + border-radius: 8px; +} + +.ty-quick-open-category-title { + padding-left: 8px; + color: #BEBEBE; + font-size: 0.8rem; + margin-bottom: 4px; +} + +.typora-quick-open-item-path { + font-size: 0.8rem; + text-overflow: ellipsis; + white-space: nowrap; + margin-top: 1px; +} + +/*search input*/ +.form-control { + border: none; + border-radius: 2px; + box-shadow: none; +} + +#md-searchpanel .btn { + border-radius: 2px; +} + +#search-panel-replaceall-btn { + padding-right: 5px !important; + text-align: center !important; +} + +#search-panel-replace-btn { + text-align: center !important; +} + +#md-searchpanel input { + background: var(--input-bg-color); + border-radius: 2px; +} + +.searchpanel-search-option-btn { + border-radius: 2px; + border: none; + background: transparent; + color: var(--text-color); +} + +.searchpanel-search-option-btn.active { + background: var(--text-color); + color: var(--bg-color); +} + +.form-control:focus { + box-shadow: none; +} + +#md-notification:before { + top: 10px; +} + +/** focus mode */ +.on-focus-mode blockquote { + border-left-color: rgba(85, 85, 85, 0.12); +} + +header, +.context-menu, +.megamenu-content, +footer { + font-family: initial; +} + +/*sidebar*/ +.file-node-content:hover .file-node-icon, +.file-node-content:hover .file-node-open-state { + visibility: visible; +} + +#typora-sidebar { + font-size: 1.1rem; +} + +.sidebar-tabs { + border-bottom: none; +} + +.file-list-item-summary, .file-list-item-parent-loc, .file-list-item-time, .file-list-item-summary { + font-size: 0.9rem !important; + font-family: var(--text-font); +} + +.file-list-item-file-ext-part { + display: none; +} + +.outline-item { + font-size: 1rem; +} + +/*footnotes mark*/ +#write .md-footnote { + background-color: inherit; + color: var(--drake-highlight); + font-size: 0.9rem; + border-radius: 0.9rem; + padding-left: 0; +} + +#write .md-footnote:before { + content: "["; +} + +#write .md-footnote:after { + content: "]"; +} + +/*footnotes content*/ +.md-hover-tip .code-tooltip-content { + border-radius: 2px; +} + +/*footnotes title*/ +span.md-def-name { + padding-right: 3ch; + padding-left: 0; + position: relative; + font-weight: normal; +} + +/*footnotes desc*/ +.footnotes { + font-size: 1rem; + font-weight: normal; + color: var(--text-color); + position: relative; +} + +/*footnotes tooltip text*/ +.code-tooltip-content .md-plain { + font-size: 0.9rem; + font-family: inherit; +} + +.code-tooltip-content code { + padding: 0 2px; + font-family: inherit; + color: var(--footnotes-highlight); + background-color: inherit; +} + +.code-tooltip-content a { + color: var(--footnotes-highlight); +} + +div.code-tooltip-content { + box-shadow: 0 0 8px #00000045; + background: var(--footnotes-bg-color); +} + +.footnotes { + opacity: 1; +} + +.md-def-name:after { + content: ". ^"; + color: var(--text-color); +} + +.md-def-footnote .md-def-name:before { + content: ""; + color: var(--text-color); + position: absolute; +} + +.md-def-name:before { + content: ""; + color: var(--text-color); + position: absolute; +} + +.md-content.md-url, .md-def-content.md-def-url.md-auto-disp { + text-decoration: none; + border-bottom: .1rem solid var(--text-color); +} + +.CodeMirror-scroll::-webkit-scrollbar { + display: none; +} + +.file-list-item-summary { + font-size: 1em; +} + +.pin-outline #outline-content .outline-active strong, .pin-outline .outline-active { + font-weight: 500; + color: var(--outline-active-color); +} + +.file-list-item.active { + border-left: 4px solid var(--drake-accent); +} + +#md-searchpanel .btn:not(.close-btn):hover { + box-shadow: none; + background: var(--btn-hover-bg-color); +} + +/*checkbox*/ +#write input[type=checkbox] { + opacity: 0; + height: 1.6rem; + width: 1.6rem; + margin-left: -2em; + margin-top: 0; + top: 0; +} + +#write .ul-list li.md-task-list-item.task-list-done::before { + content: ""; + background: var(--checkbox-checked) 0 0 no-repeat; + background-size: 100%; + display: inline-block; + position: absolute; + height: 1.6rem; + width: 1.6rem; + margin-left: -2em; +} + +#write .ul-list li.md-task-list-item.task-list-not-done::before { + content: ""; + background: var(--checkbox-unchecked) 0 0 no-repeat; + background-size: 100%; + display: inline-block; + position: absolute; + height: 1.6rem; + width: 1.6rem; + margin-left: -2em; +} + +/*insert table*/ +.btn { + border-radius: 2px; +} + +.modal-content { + border-radius: 8px; +} + +.btn-primary:hover, .btn-primary:active { + background-color: var(--btn-hover-bg-color); + color: var(--drake-highlight); +} + +.btn-primary { + background-color: transparent; + color: var(--drake-highlight); +} + +.btn-default { + background-color: transparent; +} + +.btn:active { + box-shadow: none; + border-color: transparent; +} + +.modal-footer { + border-top: none; +} + +#table-insert-col, #table-insert-row { + background: var(--input-bg-color); + border-radius: 2px; +} + +/*preference panel*/ +#megamenu-content { + background-image: none !important; + background-color: var(--bg-color); +} +#top-titlebar { + height: inherit; + background-color: var(--bg-color); +} +#megamenu-menu-sidebar { + background-color: var(--bg-color); + color: var(--text-color); +} +.long-btn { + width: inherit; + min-width: 300px; + border: 1px solid var(--text-color); + border-radius: 6px; +} +.megamenu-menu-panel h1 { + margin-bottom: 3rem; + text-align: left; +} +.megamenu-menu-panel h1, .megamenu-menu-panel h2 { + font-weight: normal; +} +#recent-file-panel-search-input { + height: 45px; + border: none; + border-bottom: 1px solid var(--text-color); + padding-left: 8px; +} +#recent-file-panel-search-input::placeholder { + color: var(--text-color); + opacity: .5; +} +.megamenu-menu-header { + border-bottom: none; +} +#recent-file-panel-action-btn { + background: none; + border: none; +} +#recent-file-panel-action-btn-container { + float: none; + display: inline-block; +} +#top-titlebar .toolbar-icon.btn.hover, #top-titlebar .toolbar-icon.btn:hover { + background-color: var(--btn-hover-bg-color); + color: var(--text-color); +} +.megamenu-menu-panel .btn:hover { + background-color: var(--btn-hover-bg-color) !important; + color: var(--text-color); +} +#recent-file-panel tbody tr:nth-child(2n-1), +.megamenu-menu-panel table thead, +.megamenu-menu-panel table tr { + background-color: transparent; +} +.megamenu-menu-panel table { + font-weight: normal; +} +#megamenu-back-btn { + color: var(--text-color); + border: 1px solid var(--text-color); +} +.megamenu-menu-header #megamenu-menu-header-title { + color: var(--text-color); +} +header, .context-menu, .megamenu-content, footer { + font-family: var(--text-font); +} +.ty-preferences select { + padding-left: 2px; +} +.preference-item-hint { + font-size: 14px; +} +a.ty-link { + color: var(--a-color); + margin: 0 .2rem; +} + +/* + Name: material + Author: Mattia Astorino (http://github.com/equinusocio) + Website: https://material-theme.site/ +*/ +.cm-s-inner.CodeMirror { + background: none; + color: var(--code-block-color); +} +.cm-s-inner .CodeMirror-gutters { + border-right: none; + border-radius: 2px; + padding-left: 0.5rem; + background: #212121; + color: #545454; +} +.cm-s-inner .CodeMirror-guttermarker, +.cm-s-inner .CodeMirror-guttermarker-subtle, +.cm-s-inner .CodeMirror-linenumber { + color: #545454; +} +.cm-s-inner .CodeMirror-line::selection, +.cm-s-inner .CodeMirror-line>span::selection, +.cm-s-inner .CodeMirror-line>span>span::selection { + background: rgba(128, 203, 196, 0.2); +} +.cm-s-inner .CodeMirror-line::-moz-selection, +.cm-s-inner .CodeMirror-line>span::-moz-selection, +.cm-s-inner .CodeMirror-line>span>span::-moz-selection { + background: rgba(128, 203, 196, 0.2); +} +.cm-s-inner .cm-keyword { + color: #C792EA; +} +.cm-s-inner .cm-operator { + color: #89DDFF; +} +.cm-s-inner .cm-variable-2 { + color: var(--code-block-color); +} +.cm-s-inner .cm-variable-3, +.cm-s-inner .cm-type { + color: #f07178; +} +.cm-s-inner .cm-builtin { + color: #FFCB6B; +} +.cm-s-inner .cm-atom { + color: #F78C6C; +} +.cm-s-inner .cm-number { + color: #FF5370; +} +.cm-s-inner .cm-def { + color: #82AAFF; +} +.cm-s-inner .cm-string { + color: #C3E88D; +} +.cm-s-inner .cm-string-2 { + color: #f07178; +} +.cm-s-inner .cm-comment { + color: #545454; +} +.cm-s-inner .cm-variable { + color: var(--code-block-color); +} +.cm-s-inner .cm-tag { + color: #FF5370; +} +.cm-s-inner .cm-meta { + color: #FFCB6B; +} +.cm-s-inner .cm-attribute { + color: #C792EA; +} +.cm-s-inner .cm-property { + color: #C792EA; +} +.cm-s-inner .cm-qualifier { + color: #DECB6B; +} +.cm-s-inner .cm-variable-3, +.cm-s-inner .cm-type { + color: #DECB6B; +} +.cm-s-inner .cm-error { + color: rgba(255, 255, 255, 1.0); + background-color: #FF5370; +} +.cm-s-inner .CodeMirror-matchingbracket { + text-decoration: underline; + color: white !important; +} +.cm-s-inner .CodeMirror-selected { + background: #214283 !important; +} +.cm-s-inner .CodeMirror-selectedtext { + background: #214283 !important; +} +.cm-s-typora-default .CodeMirror-selectedtext { + background: var(--select-text-bg-color) !important; +} +.cm-overlay.CodeMirror-selectedtext { + background: var(--select-text-bg-color) !important; +} +.cm-s-inner div.CodeMirror-cursor { + border-left: 1px solid var(--code-block-color); +} \ No newline at end of file diff --git a/drake-juejin.css b/drake-juejin.css new file mode 100644 index 0000000..5555a92 --- /dev/null +++ b/drake-juejin.css @@ -0,0 +1,1136 @@ +/* + * Copyright (C) 2018 Drake, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@import url(./drake/font.css); + +:root { + --monospace: "JetBrainsMono NF", "Fira Code", Menlo, "Ubuntu Mono", Consolas; /*code font*/ + --text-font: var(--monospace); /*default font*/ + --title-font: var(--monospace); /*title font*/ + + --text-color: #333333; + --bg-color: #ffffff; + --control-text-color: var(--text-color); + --meta-content-color: var(--text-color); + --active-file-border-color: var(--drake-accent); + --rawblock-edit-panel-bd: var(--code-block-bg-color); + --item-hover-bg-color: #E5E5E596; + --active-file-bg-color: var(--item-hover-bg-color); + + --blur-text-color: rgba(51, 51, 51, 0.5); + --drake-accent: #e95f59; + --drake-highlight: #d63200; + --a-color: #036aca; + --variable-color: var(--drake-highlight); + --outline-active-color: var(--a-color); + --code-block-bg-color: #2b2b2b; + --code-block-color: #A9B7C6; + --title-color: #135ce0; + --blockquote-border-color: #b2aec5; + --blockquote-color: #595959; + --blockquote-bg-color: #fff9f9; + --strong-color: var(--title-color); + --h2-underline-color: var(--title-color); + --horizontal-divider-color: var(--title-color); + --height-light-color: var(--drake-highlight); + --height-light-border-color: var(--drake-highlight); + --yaml-color: #777777; + --yaml-bg-color: #f7f7f7; + --footnotes-bg-color: #3c3d3e; + --footnotes-highlight: #FFD760; + --table-border-color: #dfe2e5; + --table-header-bg-color: #f6f8fa; + --table-bg-color: var(--bg-color); + --table-n2-bg-color: #f6f8fa; + --input-bg-color: var(--item-hover-bg-color); + --btn-hover-bg-color: var(--item-hover-bg-color); + --checkbox-checked: url("data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M425.984 726.016l384-384-59.99-61.995-324.01 324.011-152.021-152.021L213.973 512zm384-598.016q36.01 0 61.013 25.984T896 213.974v596.01q0 34.005-25.003 59.99t-61.013 25.983h-596.01q-36.011 0-61.014-25.984t-25.003-59.989v-596.01q0-34.006 25.003-59.99T213.973 128h596.011z' fill='%2365b73b'/%3E%3C/svg%3E"); + --checkbox-unchecked: url("data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M810.667 213.333v597.334H213.333V213.333h597.334m0-85.333H213.333C166.4 128 128 166.4 128 213.333v597.334C128 857.6 166.4 896 213.333 896h597.334C857.6 896 896 857.6 896 810.667V213.333C896 166.4 857.6 128 810.667 128z' fill='%23333333'/%3E%3C/svg%3E"); +} + +html { + font-size: 16px; +} + +body { + font-family: var(--text-font) !important; + color: var(--text-color); + -webkit-font-feature-settings: "liga" on, "calt" on; + -webkit-font-smoothing: subpixel-antialiased; + text-rendering: optimizeLegibility; + letter-spacing: 0; + margin: 0; + overflow-x: hidden; +} + +#write { + background-image: linear-gradient( + 90deg + ,rgba(60,10,30,.04) 3%,transparent 0),linear-gradient( + 1turn + ,rgba(60,10,30,.04) 3%,transparent 0); + background-size: 20px 20px; + background-position: 50%; +} + +/*code block*/ +.md-fences { + font-size: 1rem; + padding: 0.5rem !important; + border-radius: 2px; + word-wrap: normal; + background-color: var(--code-block-bg-color); + color: var(--code-block-color); + border: none; +} +.on-focus-mode .CodeMirror.cm-s-inner:not(.CodeMirror-focused) *, +.on-focus-mode .md-fences.md-focus .CodeMirror-code > :not(.CodeMirror-activeline) *, +.on-focus-mode .md-htmlblock.md-focus .CodeMirror-code > :not(.CodeMirror-activeline) * { + color: #909090 !important +} + +/*mermaid*/ +.md-diagram-panel-preview text.actor > tspan { /*方块文字*/ + fill: var(--code-block-color) !important; + stroke: none !important; + font-family: var(--text-font) !important; + font-size: 1rem !important; +} +.md-diagram-panel-preview .actor { /*方块*/ + stroke: var(--table-border-color) !important; + fill: var(--code-block-bg-color) !important; +} +.md-diagram-panel-preview .actor-line { /*竖线*/ + stroke: var(--text-color) !important; + stroke-width: 1px; +} +.md-diagram-panel-preview .messageLine0 { /*横线*/ + stroke-width: 1.5; + stroke-dasharray: none; + stroke: var(--text-color) !important; +} +.md-diagram-panel-preview .messageLine1 { /*虚线*/ + stroke-width: 1.5 !important; + stroke-dasharray: 2, 2 !important; + stroke: var(--text-color) !important; +} +.md-diagram-panel-preview .messageText { /*描述文字*/ + fill: var(--text-color) !important; + font-family: var(--text-font) !important; + font-size: 1rem !important; +} +.md-diagram-panel-preview .activation0 { /*长方形*/ + fill: rgba(141, 141, 141, 0.22) !important; + stroke: var(--text-color) !important; +} +.md-diagram-panel-preview .labelText, .md-diagram-panel-preview .labelText > tspan { /*循环标记*/ + fill: var(--code-block-color) !important; + font-family: var(--text-font) !important; + font-size: 1rem !important; + dominant-baseline: unset; + alignment-baseline: unset; +} +.md-diagram-panel-preview .labelBox { /*循环标记背景*/ + stroke: var(--table-border-color) !important; + fill: var(--code-block-bg-color) !important; +} +.md-diagram-panel-preview .loopLine { /*循环标记虚线*/ + stroke: var(--text-color) !important; +} +.md-diagram-panel-preview .loopText, .md-diagram-panel-preview .loopText > tspan { /*循环名称*/ + fill: var(--text-color) !important; + font-size: 1rem !important; +} +.md-diagram-panel-preview .sequenceNumber { /*序号*/ + fill: var(--bg-color) !important; +} +pre.md-fences-advanced.md-focus .md-fences-adv-panel { + border: none; +} +.md-diagram-panel-preview .edgePath .path { /*箭头*/ + stroke: var(--text-color) !important; +} +.md-diagram-panel-preview .edgeLabel rect { /*条件文字背景*/ + fill: var(--bg-color) !important; +} +.md-diagram-panel-preview .edgeLabel span { /*条件文字*/ + color: var(--text-color); +} +.md-diagram-panel-preview .node rect, +.md-diagram-panel-preview .node circle, +.md-diagram-panel-preview .node ellipse, +.md-diagram-panel-preview .node polygon, +.md-diagram-panel-preview .node path { /*形状*/ + stroke: var(--table-border-color) !important; + fill: var(--code-block-bg-color) !important; +} +#write .md-diagram-panel .md-diagram-panel-preview div { /*形状内文字*/ + color: var(--code-block-color) !important; + font-family: var(--text-font) !important; + font-size: 1rem !important; +} + +/*code snippet*/ +#write code, tt { + margin: 0 2px; + border-radius: 2px; + color: var(--drake-highlight); + background-color: #fff5f5; + padding: .065em .4em; +} + +/*variable*/ +var { + color: var(--variable-color); + font-weight: bold; +} + +/*raw block*/ +.md-rawblock-control:not(.md-rawblock-tooltip) { + border-radius: 2px 0 2px 2px; + padding: 0.2rem !important; +} +.md-rawblock:hover > .md-rawblock-container { + background: none; +} +.md-rawblock-input { + font-size: 1rem; +} +.md-rawblock-tooltip-btn:hover { + background: none; +} +.md-rawblock:hover > .md-rawblock-tooltip { + border-radius: 2px 2px 0 0; + margin-bottom: 2px !important; +} +.md-rawblock-tooltip.md-rawblock-control { + border-radius: 2px 2px 0 0; + color: var(--code-block-color); +} +.md-rawblock-tooltip-name { + color: var(--code-block-color); + opacity: 1; +} + +/*quote block*/ +blockquote:before { + display: block; + position: absolute; + content: ''; + width: 4px; + left: 0; + top: 0; + height: 100%; + background-color: var(--blockquote-border-color); + border-radius: 2px; +} + +blockquote { + color: var(--blockquote-color); + border-radius: 2px; + padding: 10px 16px; + background-color: var(--blockquote-bg-color); + position: relative; + border-left: none; +} + +#write strong { + color: var(--strong-color); + font-weight: bold; +} +#write blockquote strong { + color: var(--blockquote-color); +} + +/*link*/ +#write a { + color: var(--a-color); + text-decoration: none; +} +.on-focus-mode #write a .md-plain, .on-focus-mode .md-htmlblock-container a:hover { + border-bottom: .1rem solid var(--blur-text-color); +} +#write a .md-plain, .md-htmlblock-container a:hover, +.on-focus-mode #write .md-focus a .md-plain, .md-focus .md-htmlblock-container a:hover { + border-bottom: .1rem solid var(--a-color); +} +[md-inline=link] a { + margin: 0 .2rem; +} +a:any-link { + color: var(--a-color); +} + +img { + border-left: none; + border-right: none; + vertical-align: baseline; + border-radius: 2px; +} + +#write { + max-width: 1200px; + margin: 0 auto; + padding: 20px 30px 100px; +} +#typora-source .CodeMirror-lines { + max-width: 1200px; +} + +#write > ul:first-child, +#write > ol:first-child { + margin-top: 30px; +} + +body > *:first-child { + margin-top: 0 !important; +} + +body > *:last-child { + margin-bottom: 0 !important; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + font-family: var(--title-font); + position: relative; + margin-top: 2rem; + margin-bottom: 1rem; + font-weight: bold; + line-height: 1.4; + cursor: text; + color: var(--title-color); +} + +h3.md-focus:before, h4.md-focus:before, h5.md-focus:before, h6.md-focus:before { + visibility: hidden; +} + +h1 { + font-size: 2rem; + text-align: center; + margin-top: 0; +} + +h2.md-end-block.md-heading { + font-size: 1.6rem; + display: inline-block; +} + +h2.md-end-block.md-heading:after { + display: block; + content: ''; + height: 2px; + margin-top: 4px; + background-color: var(--h2-underline-color); + border-radius: 2px; +} +.on-focus-mode h2.md-end-block.md-heading:not(.md-focus):not(.md-focus-container):after { + background-color: var(--blur-text-color) !important; +} + +h3 { + font-size: 1.4rem; +} + +h4 { + font-size: 1.2rem; +} + +h5 { + font-size: 1rem; +} + +h6 { + font-size: 1rem; +} + +h1:hover a.anchor, +h2:hover a.anchor, +h3:hover a.anchor, +h4:hover a.anchor, +h5:hover a.anchor, +h6:hover a.anchor { + text-decoration: none; +} + +h1 tt, +h1 code { + font-size: inherit !important; +} + +h2 tt, +h2 code { + font-size: inherit !important; +} + +h3 tt, +h3 code { + font-size: inherit !important; +} + +h4 tt, +h4 code { + font-size: inherit !important; +} + +h5 tt, +h5 code { + font-size: inherit !important; +} + +h6 tt, +h6 code { + font-size: inherit !important; +} + +p, +blockquote, +ul, +ol, +dl, +table { + margin: 0.8em 0; +} + +li > ol, +li > ul { + margin: 0 0; +} + +hr { + height: 2px; + padding: 0; + margin: 16px 0; + background-color: var(--horizontal-divider-color); + border: 0 none; + overflow: hidden; + box-sizing: content-box; +} + +body > h2:first-child { + margin-top: 0; + padding-top: 0; +} + +body > h1:first-child { + margin-top: 0; + padding-top: 0; +} + +body > h1:first-child + h2 { + margin-top: 0; + padding-top: 0; +} + +body > h3:first-child, +body > h4:first-child, +body > h5:first-child, +body > h6:first-child { + margin-top: 0; + padding-top: 0; +} + +a:first-child h1, +a:first-child h2, +a:first-child h3, +a:first-child h4, +a:first-child h5, +a:first-child h6 { + margin-top: 0; + padding-top: 0; +} + +h1 p, +h2 p, +h3 p, +h4 p, +h5 p, +h6 p { + margin-top: 0; +} + +li p.first { + display: inline-block; +} + +ul, ol { + padding-inline-start: 2em; +} + +ul:first-child, +ol:first-child { + margin-top: 0; +} + +ul:last-child, +ol:last-child { + margin-bottom: 0; +} + +table { + padding: 0; + word-break: initial; + background-color: var(--table-bg-color); +} +table tr { + border-top: .1em solid var(--table-border-color); + margin: 0; + padding: 0; +} +table th { + font-weight: bold; + border: .1em solid var(--table-border-color); + border-bottom: 0; + margin: 0; + padding: 6px 13px; +} +table td { + border: .1em solid var(--table-border-color); + margin: 0; + padding: 6px 13px; +} +table thead { + background-color: var(--table-header-bg-color); +} +table tr:nth-child(2n) { + background-color: var(--table-n2-bg-color); +} +table tr th:first-child, +table tr td:first-child { + margin-top: 0; +} +table tr th:last-child, +table tr td:last-child { + margin-bottom: 0; +} + +#write em { + padding: 0 5px 0 2px; +} + +/* height light */ +#write mark { + border: .1em solid var(--height-light-border-color); + color: var(--height-light-color); + background-color: transparent; + padding: .1rem .5rem; + border-radius: 2rem; + margin: 0 .2rem; + font-size: .95rem; +} + +/*shortcut*/ +kbd { + border: .1em solid #5b5b5e; + background: transparent; + color: var(--text-color); + margin: 0 .4rem; + font-size: .95rem; + padding: .3em .4em; + border-radius: .4em; + vertical-align: top; + box-shadow: .1em .1em .2em rgba(0, 0, 0, 0.3); +} + +#write del { + padding: 1px 2px; +} + +.md-task-list-item > input { + margin-left: -1.3em; +} + +@media print { + html { + font-size: 12px; + } + + table, + pre { + page-break-inside: avoid; + } + + pre { + word-wrap: break-word; + } +} + +/*YAML*/ +#write pre.md-meta-block { + padding: 1rem; + font-size: 1rem; + line-height: 1.45; + background-color: var(--yaml-bg-color); + border: 0; + border-radius: 2px; + color: var(--yaml-color); + margin-top: 0 !important; +} + +.mathjax-block > .code-tooltip { + bottom: .375rem; +} + +#write > h3.md-focus:before { + left: -1.5625rem; + top: .375rem; +} + +#write > h4.md-focus:before { + left: -1.5625rem; + top: .285714286rem; +} + +#write > h5.md-focus:before { + left: -1.5625rem; + top: .285714286rem; +} + +#write > h6.md-focus:before { + left: -1.5625rem; + top: .285714286rem; +} + +.md-image > .md-meta { + border-radius: 2px; + font-family: initial; + padding: 2px 0 0 4px; + color: inherit; +} + +.md-tag { + color: inherit; +} + +.md-toc { + margin-top: 20px; + padding-bottom: 20px; +} + +.typora-quick-open-item { + font-size: 1rem !important; + height: 50px; + padding-left: 8px; + padding-top: 4px; + padding-bottom: 4px; +} + +#typora-quick-open { + box-shadow: 0 0 8px #00000045; + padding: 0; +} + +.ty-quick-open-category.ty-has-prev .ty-quick-open-category-title { + border-top: none; +} + +#typora-quick-open-input { + margin: 8px; + box-shadow: none; + border-radius: 2px; +} + +#typora-quick-open-input input { + font-size: 1rem; + box-shadow: none; + padding-top: 2px; + padding-left: 10px; + padding-right: 10px; + line-height: 32px; + max-height: 32px; + border: none; +} + +.modal-dialog#typora-quick-open { + border-radius: 8px; +} + +.ty-quick-open-category-title { + padding-left: 8px; + color: #BEBEBE; + font-size: 0.8rem; + margin-bottom: 4px; +} + +.typora-quick-open-item-path { + font-size: 0.8rem; + text-overflow: ellipsis; + white-space: nowrap; + margin-top: 1px; +} + +/*search input*/ +.form-control { + border: none; + border-radius: 2px; + box-shadow: none; +} + +#md-searchpanel .btn { + border-radius: 2px; +} + +#search-panel-replaceall-btn { + padding-right: 5px !important; + text-align: center !important; +} + +#search-panel-replace-btn { + text-align: center !important; +} + +#md-searchpanel input { + background: var(--input-bg-color); + border-radius: 2px; +} + +.searchpanel-search-option-btn { + border-radius: 2px; + border: none; + background: transparent; + color: var(--text-color); +} + +.searchpanel-search-option-btn.active { + background: var(--text-color); + color: var(--bg-color); +} + +.form-control:focus { + box-shadow: none; +} + +#md-notification:before { + top: 10px; +} + +/** focus mode */ +.on-focus-mode blockquote { + border-left-color: rgba(85, 85, 85, 0.12); +} + +header, +.context-menu, +.megamenu-content, +footer { + font-family: initial; +} + +/*sidebar*/ +.file-node-content:hover .file-node-icon, +.file-node-content:hover .file-node-open-state { + visibility: visible; +} + +#typora-sidebar { + font-size: 1.1rem; +} + +.sidebar-tabs { + border-bottom: none; +} + +.file-list-item-summary, .file-list-item-parent-loc, .file-list-item-time, .file-list-item-summary { + font-size: 0.9rem !important; + font-family: var(--text-font); +} + +.file-list-item-file-ext-part { + display: none; +} + +.outline-item { + font-size: 1rem; +} + +/*footnotes mark*/ +#write .md-footnote { + background-color: inherit; + color: var(--drake-highlight); + font-size: 0.9rem; + border-radius: 0.9rem; + padding-left: 0; +} + +#write .md-footnote:before { + content: "["; +} + +#write .md-footnote:after { + content: "]"; +} + +/*footnotes content*/ +.md-hover-tip .code-tooltip-content { + border-radius: 2px; +} + +/*footnotes title*/ +span.md-def-name { + padding-right: 3ch; + padding-left: 0; + position: relative; + font-weight: normal; +} + +/*footnotes desc*/ +.footnotes { + font-size: 1rem; + font-weight: normal; + color: var(--text-color); + position: relative; +} + +/*footnotes tooltip text*/ +.code-tooltip-content .md-plain { + font-size: 0.9rem; + font-family: inherit; +} + +.code-tooltip-content code { + padding: 0 2px; + font-family: inherit; + color: var(--footnotes-highlight); + background-color: inherit; +} + +.code-tooltip-content a { + color: var(--footnotes-highlight); +} + +div.code-tooltip-content { + box-shadow: 0 0 8px #00000045; + background: var(--footnotes-bg-color); +} + +.footnotes { + opacity: 1; +} + +.md-def-name:after { + content: ". ^"; + color: var(--text-color); +} + +.md-def-footnote .md-def-name:before { + content: ""; + color: var(--text-color); + position: absolute; +} + +.md-def-name:before { + content: ""; + color: var(--text-color); + position: absolute; +} + +.md-content.md-url, .md-def-content.md-def-url.md-auto-disp { + text-decoration: none; + border-bottom: .1rem solid var(--text-color); +} + +.CodeMirror-scroll::-webkit-scrollbar { + display: none; +} + +.file-list-item-summary { + font-size: 1em; +} + +.pin-outline #outline-content .outline-active strong, .pin-outline .outline-active { + font-weight: 500; + color: var(--outline-active-color); +} + +.file-list-item.active { + border-left: 4px solid var(--drake-accent); +} + +#md-searchpanel .btn:not(.close-btn):hover { + box-shadow: none; + background: var(--btn-hover-bg-color); +} + +/*checkbox*/ +#write input[type=checkbox] { + opacity: 0; + height: 1.6rem; + width: 1.6rem; + margin-left: -2em; + margin-top: 0; + top: 0; +} + +#write .ul-list li.md-task-list-item.task-list-done::before { + content: ""; + background: var(--checkbox-checked) 0 0 no-repeat; + background-size: 100%; + display: inline-block; + position: absolute; + height: 1.6rem; + width: 1.6rem; + margin-left: -2em; +} + +#write .ul-list li.md-task-list-item.task-list-not-done::before { + content: ""; + background: var(--checkbox-unchecked) 0 0 no-repeat; + background-size: 100%; + display: inline-block; + position: absolute; + height: 1.6rem; + width: 1.6rem; + margin-left: -2em; +} + +/*insert table*/ +.btn { + border-radius: 2px; +} + +.modal-content { + border-radius: 8px; +} + +.btn-primary:hover, .btn-primary:active { + background-color: var(--btn-hover-bg-color); + color: var(--drake-highlight); +} + +.btn-primary { + background-color: transparent; + color: var(--drake-highlight); +} + +.btn-default { + background-color: transparent; +} + +.btn:active { + box-shadow: none; + border-color: transparent; +} + +.modal-footer { + border-top: none; +} + +#table-insert-col, #table-insert-row { + background: var(--input-bg-color); + border-radius: 2px; +} + +/*preference panel*/ +#megamenu-content { + background-image: none !important; + background-color: var(--bg-color); +} +#top-titlebar { + height: inherit; + background-color: var(--bg-color); +} +#megamenu-menu-sidebar { + background-color: var(--bg-color); + color: var(--text-color); +} +.long-btn { + width: inherit; + min-width: 300px; + border: 1px solid var(--text-color); + border-radius: 6px; +} +.megamenu-menu-panel h1 { + margin-bottom: 3rem; + text-align: left; +} +.megamenu-menu-panel h1, .megamenu-menu-panel h2 { + font-weight: normal; +} +#recent-file-panel-search-input { + height: 45px; + border: none; + border-bottom: 1px solid var(--text-color); + padding-left: 8px; +} +#recent-file-panel-search-input::placeholder { + color: var(--text-color); + opacity: .5; +} +.megamenu-menu-header { + border-bottom: none; +} +#recent-file-panel-action-btn { + background: none; + border: none; +} +#recent-file-panel-action-btn-container { + float: none; + display: inline-block; +} +#top-titlebar .toolbar-icon.btn.hover, #top-titlebar .toolbar-icon.btn:hover { + background-color: var(--btn-hover-bg-color); + color: var(--text-color); +} +.megamenu-menu-panel .btn:hover { + background-color: var(--btn-hover-bg-color) !important; + color: var(--text-color); +} +#recent-file-panel tbody tr:nth-child(2n-1), +.megamenu-menu-panel table thead, +.megamenu-menu-panel table tr { + background-color: transparent; +} +.megamenu-menu-panel table { + font-weight: normal; +} +#megamenu-back-btn { + color: var(--text-color); + border: 1px solid var(--text-color); +} +.megamenu-menu-header #megamenu-menu-header-title { + color: var(--text-color); +} +header, .context-menu, .megamenu-content, footer { + font-family: var(--text-font); +} +.ty-preferences select { + padding-left: 2px; +} +.preference-item-hint { + font-size: 14px; +} +a.ty-link { + color: var(--a-color); + margin: 0 .2rem; +} + +/** + code render + Name: IntelliJ IDEA darcula theme + From IntelliJ IDEA by JetBrains + */ +.cm-s-inner.CodeMirror { + background: none; + color: var(--code-block-color); +} +.cm-s-inner span.cm-meta { + color: #BBB529; +} +.cm-s-inner span.cm-number { + color: #6897BB; +} +.cm-s-inner span.cm-keyword { + color: #CC7832; +} +.cm-s-inner span.cm-def { + color: #FFD760; +} +.cm-s-inner span.cm-variable { + color: var(--code-block-color); +} +.cm-s-inner span.cm-variable-2 { + color: var(--code-block-color); +} +.cm-s-inner span.cm-variable-3 { + color: #9876AA; +} +.cm-s-inner span.cm-type { + color: #AABBCC; +} +.cm-s-inner span.cm-property { + color: #FFC66D; +} +.cm-s-inner span.cm-operator { + color: var(--code-block-color); +} +.cm-s-inner span.cm-string { + color: #6A8759; +} +.cm-s-inner span.cm-string-2 { + color: #6A8759; +} +.cm-s-inner span.cm-comment { + color: #787878; +} +.cm-s-inner span.cm-link { + color: #CC7832; +} +.cm-s-inner span.cm-atom { + color: #CC7832; +} +.cm-s-inner span.cm-error { + color: #BC3F3C; +} +.cm-s-inner span.cm-tag { + color: #E8BF6A; +} +.cm-s-inner span.cm-quote { + color: #a6e22e; +} +.cm-s-inner span.cm-attribute { + color: #9876AA; +} +.cm-s-inner span.cm-qualifier { + color: #6A8759; +} +.cm-s-inner span.cm-bracket { + color: #E8BF6A; +} +.cm-s-inner span.cm-builtin { + color: #FF9E59; +} +.cm-s-inner span.cm-special { + color: #FF9E59; +} +.cm-s-inner span.cm-matchhighlight { + color: #FFFFFF; + background-color: rgba(50, 89, 48, .7); + font-weight: normal; +} +.cm-s-inner span.cm-searching { + color: #FFFFFF; + background-color: rgba(61, 115, 59, .7); + font-weight: normal; +} +.cm-s-inner .CodeMirror-gutters { + border-right: 1px solid rgba(120, 120, 120, 0.3); +} +.cm-s-inner .CodeMirror-linenumber { + color: #585b5d; +} +.cm-s-inner .CodeMirror-matchingbracket { + background-color: #3B514D; + color: #FFEF28 !important; +} +.cm-s-inner .CodeMirror-selected { + background: #214283 !important; +} +.cm-s-inner .CodeMirror-selectedtext { + background: #214283 !important; +} +.cm-s-typora-default .CodeMirror-selectedtext { + background: var(--select-text-bg-color) !important; +} +.cm-overlay.CodeMirror-selectedtext { + background: var(--select-text-bg-color) !important; +} +.cm-s-inner div.CodeMirror-cursor { + border-left: 1px solid var(--code-block-color); +} \ No newline at end of file diff --git a/drake/JetBrainsMono-Bold.woff2 b/drake/JetBrainsMono-Bold.woff2 new file mode 100644 index 0000000..023512c Binary files /dev/null and b/drake/JetBrainsMono-Bold.woff2 differ diff --git a/drake/JetBrainsMono-BoldItalic.woff2 b/drake/JetBrainsMono-BoldItalic.woff2 new file mode 100644 index 0000000..f3e87a3 Binary files /dev/null and b/drake/JetBrainsMono-BoldItalic.woff2 differ diff --git a/drake/JetBrainsMono-Italic.woff2 b/drake/JetBrainsMono-Italic.woff2 new file mode 100644 index 0000000..e8eeb4b Binary files /dev/null and b/drake/JetBrainsMono-Italic.woff2 differ diff --git a/drake/JetBrainsMono-Regular.woff2 b/drake/JetBrainsMono-Regular.woff2 new file mode 100644 index 0000000..8c862e3 Binary files /dev/null and b/drake/JetBrainsMono-Regular.woff2 differ diff --git a/drake/font.css b/drake/font.css new file mode 100644 index 0000000..22944e9 --- /dev/null +++ b/drake/font.css @@ -0,0 +1,32 @@ +@font-face{ + font-family: 'JetBrains Mono'; + src: local('JetBrains Mono'), + url('./JetBrainsMono-Regular.woff2') format('woff2'); + font-display: swap; + font-weight: normal; + font-style: normal; +} +@font-face{ + font-family: 'JetBrains Mono'; + src: local('JetBrains Mono'), + url('./JetBrainsMono-Italic.woff2') format('woff2'); + font-display: swap; + font-weight: normal; + font-style: italic; +} +@font-face{ + font-family: 'JetBrains Mono'; + src: local('JetBrains Mono'), + url('./JetBrainsMono-Bold.woff2') format('woff2'); + font-display: swap; + font-weight: bold; + font-style: normal; +} +@font-face{ + font-family: 'JetBrains Mono'; + src: local('JetBrains Mono'), + url('./JetBrainsMono-BoldItalic.woff2') format('woff2'); + font-display: swap; + font-weight: bold; + font-style: italic; +} \ No newline at end of file diff --git a/eva.css b/eva.css new file mode 100644 index 0000000..7ce234a --- /dev/null +++ b/eva.css @@ -0,0 +1,626 @@ +/* +author: jyzhu; + +I take the color palette of Evangelion. + +And this code is inspired by both `bear-dracula` and `mint-dark`. +*/ + +:root { + + --bg-color: #353846; + --text-color: white; + --blur-text-color: #818286; + --side-bar-bg-color: #353846; + --control-text-color: white; + --active-file-bg-color: #353846; + --active-file-border-color: #9d56ae; + --active-file-text-color: #8ce360; + --table-head-color:#7173e0; + --mint-light-color:#d9ede5; + --deep-theme-color: #9d56ae; + --code-block-bg-color: #0F111A; + --rawblock-edit-panel-bd: #1f202a; + --footer-box:#6a6b6e; + --select-text-bg-color:#7a88a3; + --item-hover-bg-color: #9d56ae; + --highlight-color:#9d56ae; + --primary-color: #9d56ae; + --primary-btn-border-color: #9d56ae; + --primary-btn-text-color: #9d56ae; + --meta-content-color: #9d56ae; + --search-select-text-color: #9d56ae; + --heading-char-color: #9d56ae; +} + + +html{ + font-size: 16px; +} + +body { + font-weight: normal; + line-height: 1.8rem; + letter-spacing: 0; + margin: 0; +} + +#write { + max-width: 900px; + padding: 30px 50px 20px; +} + +#write p{ + text-align:left; +} + +#write pre.md-meta-block { + padding: 1rem; + font-size: 85%; + line-height: 1.45; + background-color: #f7f7f7; + border: 0; + border-radius: 3px; + color: #777777; + margin-top: 0 !important; +} + +.md-image>.md-meta { + color: var(--active-file-text-color); +} + + +@media print { + html,body { + font-size: 16px; + } + + table, + pre { + page-break-inside: avoid; + } + + pre { + word-wrap: break-word; + } + +} +@page { + size: A4; + margin: 8mm 0mm; +} + +/*toc*/ +.md-toc { + margin-top:20px; + padding-bottom:20px; + color: var(--deep-theme-color); +} + +a { + color: var(--deep-theme-color); + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +/*headers*/ +h1,h2,h3,h4,h5,h6 { + display: block; + font-weight:bold; + color: #8ce360; +} + +h1 { + text-align: center; + font-size: 2em; + line-height: 110%; + margin-top: 0.67em; + margin-bottom: 0.67em; +} + +h2 { + font-size: 1.5em; + margin-top: 0.83em; + margin-bottom: 0.83em; + border-bottom: 1px solid #8ce360; +} + +h3 { + font-size: 1.17em; + margin-top: 1em; + margin-bottom: 1em; +} + +h4 { + font-size: 1em; + margin-top: 1.33em; + margin-bottom: 1.33em; +} + +h5 { + font-size: 1em; + margin-top: 1.33em; + margin-bottom: 1.33em; +} + +h6 { + font-size: 1em; + margin-top: 1.33em; + margin-bottom: 1.33em; +} + +p, +blockquote, +ul, +ol, +dl, +table { + margin: 0.5rem 0; +} + +/*table*/ +table { + border-collapse: collapse; + padding: 0; + word-break: initial; + width: 100%; +} + +table tr:nth-child(even){ + background-color: var(--bg-color); +} + +thead{ + background-color: var(--table-head-color); +} + +table th{ + text-align: center; + padding:6px 13px; + border: 1px solid var(--mint-light-color); +} + +table td{ + padding:6px 13px; + border: 1px solid var(--mint-light-color); +} +table tr{ + padding:6px 13px; + border: 1px solid var(--mint-light-color); +} +#write th, #write td { + border-color: rgba(187, 145, 248, 0.4); + border-width: 1px; + border-style: solid; +} +/*blockquote*/ +blockquote { + border-left: 0.2rem solid var(--deep-theme-color); + color: #cccccc; + font-size: 1rem; + padding-left: 2rem; +} + + +/*list*/ + +li p.first { + display: inline-block; +} +ul, +ol { + padding-left: 30px; +} +ul:first-child, +ol:first-child { + margin-top: 0; +} +ul:last-child, +ol:last-child { + margin-bottom: 0; +} + +#write ul { + margin-left: 0; + padding-left: 22px; + list-style: none; +} +#write ul > li:not([class*=task-list-item]) { + word-wrap: break-all; + padding-left: 0px; +} +#write ul > li:not([class*=task-list-item]):before { + position: absolute; + top: 2px; + content: "•"; + color: #9d56ae; + display: inline-block; + margin-left: -20px; + margin-right: 20px; + width: 0px; + font-size: 0.8em; + transform: scale(1.25); + font-family: PingFangSC-Regular, PingFang SC; +} +#write ul > li:not([class*=task-list-item]) li:not([class*=task-list-item])::before { + content: "◦"; + transform: scale(1); + font-weight: 700; +} +#write ul > li:not([class*=task-list-item]) li:not([class*=task-list-item]) li:not([class*=task-list-item])::before { + content: "▪"; + transform: scale(1.25); + font-weight: normal; +} +#write ol { + counter-reset: ol_counter; + margin-left: 0; + padding-left: 22px; + list-style: none; +} +#write ol > li:not([class*=task-list-item]) { + word-wrap: break-all; + padding-left: 0px; + position: relative; +} +#write ol > li:not([class*=task-list-item]):before { + content: counter(ol_counter) "."; + counter-increment: ol_counter; + color: #9d56ae; + position: absolute; + margin-left: -22px; + margin-right: 4px; + padding-left: 2px; + padding-right: 2px; + text-align: left; + white-space: nowrap; + overflow: visible; + min-width: 18px; + border-radius: 2px; + transform: translateX(-2px); + font-family: Helvetica Neue, Consolas; +} + +/*checkbox*/ +.md-task-list-item:hover > input:before, +input[type='checkbox']:hover:before { + opacity: 1; + transition: 0.5s; + background-color: #505052; +} + + +.task-list-item input::before { + background-color:var(--bg-color); + width: 1.2rem; + height: 1.2rem; + margin-left: -0.15rem; + margin-right: 0.1rem; + margin-top: -0.48rem; + content: ""; + display: inline-block; + border-radius: 1.1rem; + vertical-align: middle; + border: 1.2px solid var(--deep-theme-color); +} + +.task-list-item input:checked::before { + color:var(--bg-color); + font-weight: 600; + font-size: 1.2rem; + line-height: 0.95rem; + margin-top: -0.48rem; + padding-left: 0.125em; + content: '✔'; + background-color: var(--deep-theme-color); + transition: background-color 200ms ease-in-out; +} + +.task-list-done { + text-decoration: line-through; + color: #777777; +} + + + +hr { + border-style: none; + border-top-style: solid; + border-color: #e7e7e7; + border-width: 1px; + margin: 13px 0 12px; + border: 0px; + height: 1px; + background-origin: content-box; + background-image: linear-gradient(90deg, rgba(187, 145, 248, 0.4), rgba(187, 145, 248, 0.4)); + background-repeat: no-repeat; +} + +/*highlight*/ +#write mark { + background-color: var(--highlight-color); + border-radius: 2px; + color:#fff; + padding: 0 4px; + margin: 0 2px; +} + +/*inline code*/ +#write code,tt { + padding: 2px 4px; + border: 1px solid rgba(187, 145, 248, 0.4); + background-color: var(--code-block-bg-color); + color: var(--text-color); + font-size: 1rem; + border-radius: 2px; + margin: 0 2px; +} + +/*footnote*/ +#write .md-footnote { + color: #777777; + background-color: var(--code-block-bg-color); +} + + +/*source code mode*/ +.cm-s-typora-default .cm-header { + color:var(--mint-light-color); +} +.cm-s-typora-default .cm-link { + color:var(--deep-theme-color); + +} +/*code block*/ +#write .md-fences { + font-size: 1rem; + margin: 0.2em 0; + padding: 0.5em; + border-radius: 3px; + font-size: 1em; + background-color: var(--code-block-bg-color); + color: #A9B7C6; + border: none; + text-shadow: none; +} + +.md-fences .code-tooltip { + background-color: var(--code-block-bg-color); +} + + + + +/*scroll bar*/ +::-webkit-scrollbar-thumb +{ + border-radius: 8px; + background-color: var(--control-text-color); +} + +#write pre.md-meta-block { + background-color: var(--item-hover-bg-color); + color: var(--text-color); +} + + +/* footer */ +footer.ty-footer { + border: none; +} + +.footer-item:hover { + background-color: var(--footer-box); +} + +/*megamenu*/ +.megamenu-menu { + box-shadow: none; + background-color:var(--side-bar-bg-color); +} + +.megamenu-content, +.megamenu-opened header { + background: var(--bg-color); + background-image: none; +} + +.megamenu-menu-panel table td:nth-child(1) { + background-color: var(--bg-color); +} + +.megamenu-menu-panel table td:nth-child(2) { + background-color: var(--bg-color); +} + +#recent-file-panel-action-btn { + background-color: var(--bg-color); +} + +/* preferences */ +.ty-preferences .window-header{ + background-color: var(--active-file-bg-color); +} + +.ty-preferences .nav-group-item:hover { + background-color: var(--item-hover-bg-color); +} + +.btn:hover, +.button-hover, +.md-image-btn:hover { + background-color:#39393a !important; + color: var(--text-color); +} + +.menu-style-btn:hover { + background-color: var(--item-hover-bg-color); + border: none; +} + + + + + + + +#write del, #write s { + color: #b2b8a3; +} +#write a { + color: #c16124; + text-decoration: underline; +} + + + +#write code { + border-radius: 4px; + margin-left: 2px; + margin-right: 2px; + border: 1px solid rgba(187, 145, 248, 0.4); + background-color: #1f202a; + word-spacing: normal; + line-height: 1.6; + padding: 0 2px; + color: #f9f9f5; +} + + + + +/* + Name: material-ocean + Author: Mattia Astorino (http://github.com/equinusocio) + Website: https://material-theme.site/ +*/ + +.cm-s-inner.CodeMirror { + background-color: #0F111A; + color: #8F93A2; +} + +.cm-s-inner .CodeMirror-gutters { + background: #0F111A; + color: #464B5D; + border: none; +} + +.cm-s-inner .CodeMirror-linenumber {color: #464B5D;} +.cm-s-inner .CodeMirror-guttermarker { color: #FFEE80; } +.cm-s-inner .CodeMirror-guttermarker-subtle { color: #D0D0D0; } + + +.cm-s-inner .CodeMirror-cursor { border-left: 1px solid #A9B7C6; } +.cm-s-inner div.CodeMirror-cursor { border-left: 1px solid #ffffff; } +.cm-s-inner div.CodeMirror-selected { + background: rgba(113, 124, 180, 0.2); +} + +.cm-s-inner.CodeMirror-focused div.CodeMirror-selected { + background: rgba(113, 124, 180, 0.2); +} + +.cm-s-inner .CodeMirror-selected{ background: #214283 !important; } +.cm-s-inner .CodeMirror-selectedtext { background: #214283 !important; } +.cm-overlay.CodeMirror-selectedtext { background: #B5D6FC !important; } + +.cm-s-inner .CodeMirror-line::selection, +.cm-s-inner .CodeMirror-line>span::selection, +.cm-s-inner .CodeMirror-line>span>span::selection { + background: rgba(128, 203, 196, 0.2); +} + +.cm-s-inner .CodeMirror-line::-moz-selection, +.cm-s-inner .CodeMirror-line>span::-moz-selection, +.cm-s-inner .CodeMirror-line>span>span::-moz-selection { + background: rgba(128, 203, 196, 0.2); +} + +.cm-s-inner .cm-keyword { + color: #C792EA; +} + +.cm-s-inner .cm-operator { + color: #89DDFF; +} + +.cm-s-inner .cm-variable-2 { + color: #EEFFFF; +} + +.cm-s-inner .cm-variable-3, +.cm-s-inner .cm-type { + color: #f07178; +} + +.cm-s-inner .cm-builtin { + color: #FFCB6B; +} + +.cm-s-inner .cm-atom { + color: #F78C6C; +} + +.cm-s-inner .cm-number { + color: #FF5370; +} + +.cm-s-inner .cm-def { + color: #82AAFF; +} + +.cm-s-inner .cm-string { + color: #C3E88D; +} + +.cm-s-inner .cm-string-2 { + color: #f07178; +} + +.cm-s-inner .cm-comment { + color: #585d6d; +} + +.cm-s-inner .cm-variable { + color: #f07178; +} + +.cm-s-inner .cm-tag { + color: #FF5370; +} + +.cm-s-inner .cm-meta { + color: #FFCB6B; +} + +.cm-s-inner .cm-attribute { + color: #C792EA; +} + +.cm-s-inner .cm-property { + color: #C792EA; +} + +.cm-s-inner .cm-qualifier { + color: #DECB6B; +} + +.cm-s-inner .cm-variable-3, +.cm-s-inner .cm-type { + color: #DECB6B; +} + + +.cm-s-inner .cm-error { + color: rgba(255, 255, 255, 1.0); + background-color: #FF5370; +} + +.cm-s-inner .CodeMirror-matchingbracket { + text-decoration: underline; + color: white !important; +} \ No newline at end of file diff --git a/github.css b/github.css new file mode 100644 index 0000000..a77ec26 --- /dev/null +++ b/github.css @@ -0,0 +1,415 @@ +:root { + --side-bar-bg-color: #fafafa; + --control-text-color: #777; +} + +@include-when-export url(https://fonts.loli.net/css?family=Open+Sans:400italic,700italic,700,400&subset=latin,latin-ext); + +/* open-sans-regular - latin-ext_latin */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: normal; + src: local('Open Sans Regular'), local('OpenSans-Regular'), url('./github/open-sans-v17-latin-ext_latin-regular.woff2') format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; + } + /* open-sans-italic - latin-ext_latin */ + @font-face { + font-family: 'Open Sans'; + font-style: italic; + font-weight: normal; + src: local('Open Sans Italic'), local('OpenSans-Italic'), url('./github/open-sans-v17-latin-ext_latin-italic.woff2') format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; + } + /* open-sans-700 - latin-ext_latin */ + @font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: bold; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url('./github/open-sans-v17-latin-ext_latin-700.woff2') format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; + } + /* open-sans-700italic - latin-ext_latin */ + @font-face { + font-family: 'Open Sans'; + font-style: italic; + font-weight: bold; + src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url('./github/open-sans-v17-latin-ext_latin-700italic.woff2') format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; + } + +html { + font-size: 16px; + -webkit-font-smoothing: antialiased; +} + +body { + font-family: "Open Sans","Clear Sans", "Helvetica Neue", Helvetica, Arial, 'Segoe UI Emoji', sans-serif; + color: rgb(51, 51, 51); + line-height: 1.6; +} + +#write { + max-width: 860px; + margin: 0 auto; + padding: 30px; + padding-bottom: 100px; +} + +@media only screen and (min-width: 1400px) { + #write { + max-width: 1024px; + } +} + +@media only screen and (min-width: 1800px) { + #write { + max-width: 1200px; + } +} + +#write > ul:first-child, +#write > ol:first-child{ + margin-top: 30px; +} + +a { + color: #4183C4; +} +h1, +h2, +h3, +h4, +h5, +h6 { + position: relative; + margin-top: 1rem; + margin-bottom: 1rem; + font-weight: bold; + line-height: 1.4; + cursor: text; +} +h1:hover a.anchor, +h2:hover a.anchor, +h3:hover a.anchor, +h4:hover a.anchor, +h5:hover a.anchor, +h6:hover a.anchor { + text-decoration: none; +} +h1 tt, +h1 code { + font-size: inherit; +} +h2 tt, +h2 code { + font-size: inherit; +} +h3 tt, +h3 code { + font-size: inherit; +} +h4 tt, +h4 code { + font-size: inherit; +} +h5 tt, +h5 code { + font-size: inherit; +} +h6 tt, +h6 code { + font-size: inherit; +} +h1 { + font-size: 2.25em; + line-height: 1.2; + border-bottom: 1px solid #eee; +} +h2 { + font-size: 1.75em; + line-height: 1.225; + border-bottom: 1px solid #eee; +} + +/*@media print { + .typora-export h1, + .typora-export h2 { + border-bottom: none; + padding-bottom: initial; + } + + .typora-export h1::after, + .typora-export h2::after { + content: ""; + display: block; + height: 100px; + margin-top: -96px; + border-top: 1px solid #eee; + } +}*/ + +h3 { + font-size: 1.5em; + line-height: 1.43; +} +h4 { + font-size: 1.25em; +} +h5 { + font-size: 1em; +} +h6 { + font-size: 1em; + color: #777; +} +p, +blockquote, +ul, +ol, +dl, +table{ + margin: 0.8em 0; +} +li>ol, +li>ul { + margin: 0 0; +} +hr { + height: 2px; + padding: 0; + margin: 16px 0; + background-color: #e7e7e7; + border: 0 none; + overflow: hidden; + box-sizing: content-box; +} + +li p.first { + display: inline-block; +} +ul, +ol { + padding-left: 30px; +} +ul:first-child, +ol:first-child { + margin-top: 0; +} +ul:last-child, +ol:last-child { + margin-bottom: 0; +} +blockquote { + border-left: 4px solid #dfe2e5; + padding: 0 15px; + color: #777777; +} +blockquote blockquote { + padding-right: 0; +} +table { + padding: 0; + word-break: initial; +} +table tr { + border: 1px solid #dfe2e5; + margin: 0; + padding: 0; +} +table tr:nth-child(2n), +thead { + background-color: #f8f8f8; +} +table th { + font-weight: bold; + border: 1px solid #dfe2e5; + border-bottom: 0; + margin: 0; + padding: 6px 13px; +} +table td { + border: 1px solid #dfe2e5; + margin: 0; + padding: 6px 13px; +} +table th:first-child, +table td:first-child { + margin-top: 0; +} +table th:last-child, +table td:last-child { + margin-bottom: 0; +} + +.CodeMirror-lines { + padding-left: 4px; +} + +.code-tooltip { + box-shadow: 0 1px 1px 0 rgba(0,28,36,.3); + border-top: 1px solid #eef2f2; +} + +.md-fences, +code, +tt { + border: 1px solid #e7eaed; + background-color: #f8f8f8; + border-radius: 3px; + padding: 0; + padding: 2px 4px 0px 4px; + font-size: 0.9em; +} + +code { + background-color: #f3f4f4; + padding: 0 2px 0 2px; +} + +.md-fences { + margin-bottom: 15px; + margin-top: 15px; + padding-top: 8px; + padding-bottom: 6px; +} + + +.md-task-list-item > input { + margin-left: -1.3em; +} + +@media print { + html { + font-size: 13px; + } + table, + pre { + page-break-inside: avoid; + } + pre { + word-wrap: break-word; + } +} + +.md-fences { + background-color: #f8f8f8; +} +#write pre.md-meta-block { + padding: 1rem; + font-size: 85%; + line-height: 1.45; + background-color: #f7f7f7; + border: 0; + border-radius: 3px; + color: #777777; + margin-top: 0 !important; +} + +.mathjax-block>.code-tooltip { + bottom: .375rem; +} + +.md-mathjax-midline { + background: #fafafa; +} + +#write>h3.md-focus:before{ + left: -1.5625rem; + top: .375rem; +} +#write>h4.md-focus:before{ + left: -1.5625rem; + top: .285714286rem; +} +#write>h5.md-focus:before{ + left: -1.5625rem; + top: .285714286rem; +} +#write>h6.md-focus:before{ + left: -1.5625rem; + top: .285714286rem; +} +.md-image>.md-meta { + /*border: 1px solid #ddd;*/ + border-radius: 3px; + padding: 2px 0px 0px 4px; + font-size: 0.9em; + color: inherit; +} + +.md-tag { + color: #a7a7a7; + opacity: 1; +} + +.md-toc { + margin-top:20px; + padding-bottom:20px; +} + +.sidebar-tabs { + border-bottom: none; +} + +#typora-quick-open { + border: 1px solid #ddd; + background-color: #f8f8f8; +} + +#typora-quick-open-item { + background-color: #FAFAFA; + border-color: #FEFEFE #e5e5e5 #e5e5e5 #eee; + border-style: solid; + border-width: 1px; +} + +/** focus mode */ +.on-focus-mode blockquote { + border-left-color: rgba(85, 85, 85, 0.12); +} + +header, .context-menu, .megamenu-content, footer{ + font-family: "Segoe UI", "Arial", sans-serif; +} + +.file-node-content:hover .file-node-icon, +.file-node-content:hover .file-node-open-state{ + visibility: visible; +} + +.mac-seamless-mode #typora-sidebar { + background-color: #fafafa; + background-color: var(--side-bar-bg-color); +} + +.md-lang { + color: #b4654d; +} + +/*.html-for-mac { + --item-hover-bg-color: #E6F0FE; +}*/ + +#md-notification .btn { + border: 0; +} + +.dropdown-menu .divider { + border-color: #e5e5e5; + opacity: 0.4; +} + +.ty-preferences .window-content { + background-color: #fafafa; +} + +.ty-preferences .nav-group-item.active { + color: white; + background: #999; +} + +.menu-item-container a.menu-style-btn { + background-color: #f5f8fa; + background-image: linear-gradient( 180deg , hsla(0, 0%, 100%, 0.8), hsla(0, 0%, 100%, 0)); +} diff --git a/github/open-sans-v17-latin-ext_latin-700.woff2 b/github/open-sans-v17-latin-ext_latin-700.woff2 new file mode 100644 index 0000000..c824c31 Binary files /dev/null and b/github/open-sans-v17-latin-ext_latin-700.woff2 differ diff --git a/github/open-sans-v17-latin-ext_latin-700italic.woff2 b/github/open-sans-v17-latin-ext_latin-700italic.woff2 new file mode 100644 index 0000000..4115f24 Binary files /dev/null and b/github/open-sans-v17-latin-ext_latin-700italic.woff2 differ diff --git a/github/open-sans-v17-latin-ext_latin-italic.woff2 b/github/open-sans-v17-latin-ext_latin-italic.woff2 new file mode 100644 index 0000000..7584008 Binary files /dev/null and b/github/open-sans-v17-latin-ext_latin-italic.woff2 differ diff --git a/github/open-sans-v17-latin-ext_latin-regular.woff2 b/github/open-sans-v17-latin-ext_latin-regular.woff2 new file mode 100644 index 0000000..9b58220 Binary files /dev/null and b/github/open-sans-v17-latin-ext_latin-regular.woff2 differ diff --git a/night.css b/night.css new file mode 100644 index 0000000..e84b146 --- /dev/null +++ b/night.css @@ -0,0 +1,1017 @@ +@import "night/mermaid.dark.css"; +@import "night/codeblock.dark.css"; +@import "night/sourcemode.dark.css"; + +:root { + --bg-color: #363B40; + --side-bar-bg-color: #2E3033; + --text-color: #b8bfc6; + + --select-text-bg-color:#4a89dc; + + --item-hover-bg-color: #0a0d16; + --control-text-color: #b7b7b7; + --control-text-hover-color: #eee; + --window-border: 1px solid #555; + + --active-file-bg-color: rgb(34, 34, 34); + --active-file-border-color: #8d8df0; + + --primary-color: #a3d5fe; + + --active-file-text-color: white; + --item-hover-bg-color: #70717d; + --item-hover-text-color: white; + --primary-color: #6dc1e7; + + --rawblock-edit-panel-bd: #333; + + --search-select-bg-color: #428bca; +} + +html { + font-size: 16px; + -webkit-font-smoothing: antialiased; +} + +html, +body { + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; + background: #363B40; + background: var(--bg-color); + fill: currentColor; + line-height: 1.625rem; +} + +#write { + max-width: 914px; +} + + +@media only screen and (min-width: 1400px) { + #write { + max-width: 1024px; + } +} + +@media only screen and (min-width: 1800px) { + #write { + max-width: 1200px; + } +} + +html, +body, +button, +input, +select, +textarea, +div.code-tooltip-content { + color: #b8bfc6; + border-color: transparent; +} + +div.code-tooltip, +.md-hover-tip .md-arrow:after { + background: #333; +} + +.native-window #md-notification { + border: 1px solid #70717d; +} + +.popover.bottom > .arrow:after { + border-bottom-color: #333; +} + +html, +body, +button, +input, +select, +textarea { + font-family: "Helvetica Neue", Helvetica, Arial, 'Segoe UI Emoji', sans-serif; +} + +hr { + height: 2px; + border: 0; + margin: 24px 0 !important; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + font-family: "Lucida Grande", "Corbel", sans-serif; + font-weight: normal; + clear: both; + -ms-word-wrap: break-word; + word-wrap: break-word; + margin: 0; + padding: 0; + color: #DEDEDE +} + +h1 { + font-size: 2.5rem; + /* 36px */ + line-height: 2.75rem; + /* 40px */ + margin-bottom: 1.5rem; + /* 24px */ + letter-spacing: -1.5px; +} + +h2 { + font-size: 1.63rem; + /* 24px */ + line-height: 1.875rem; + /* 30px */ + margin-bottom: 1.5rem; + /* 24px */ + letter-spacing: -1px; + font-weight: bold; +} + +h3 { + font-size: 1.17rem; + /* 18px */ + line-height: 1.5rem; + /* 24px */ + margin-bottom: 1.5rem; + /* 24px */ + letter-spacing: -1px; + font-weight: bold; +} + +h4 { + font-size: 1.12rem; + /* 16px */ + line-height: 1.375rem; + /* 22px */ + margin-bottom: 1.5rem; + /* 24px */ + color: white; +} + +h5 { + font-size: 0.97rem; + /* 16px */ + line-height: 1.25rem; + /* 22px */ + margin-bottom: 1.5rem; + /* 24px */ + font-weight: bold; +} + +h6 { + font-size: 0.93rem; + /* 16px */ + line-height: 1rem; + /* 16px */ + margin-bottom: 0.75rem; + color: white; +} + +@media (min-width: 980px) { + h3.md-focus:before, + h4.md-focus:before, + h5.md-focus:before, + h6.md-focus:before { + color: #ddd; + border: 1px solid #ddd; + border-radius: 3px; + position: absolute; + left: -1.642857143rem; + top: .357142857rem; + float: left; + font-size: 9px; + padding-left: 2px; + padding-right: 2px; + vertical-align: bottom; + font-weight: normal; + line-height: normal; + } + + h3.md-focus:before { + content: 'h3'; + } + + h4.md-focus:before { + content: 'h4'; + } + + h5.md-focus:before { + content: 'h5'; + top: 0px; + } + + h6.md-focus:before { + content: 'h6'; + top: 0px; + } +} + +a { + text-decoration: none; + outline: 0; +} + +a:hover { + outline: 0; +} + +a:focus { + outline: thin dotted; +} + +sup.md-footnote { + background-color: #555; + color: #ddd; +} + +p { + -ms-word-wrap: break-word; + word-wrap: break-word; +} + +p, +ul, +dd, +ol, +hr, +address, +pre, +table, +iframe, +.wp-caption, +.wp-audio-shortcode, +.wp-video-shortcode { + margin-top: 0; + margin-bottom: 1.5rem; + /* 24px */ +} + +audio:not([controls]) { + display: none; +} + +[hidden] { + display: none; +} + +::-moz-selection { + background: #4a89dc; + color: #fff; + text-shadow: none; +} + +*.in-text-selection, +::selection { + background: #4a89dc; + color: #fff; + text-shadow: none; +} + +ul, +ol { + padding: 0 0 0 1.875rem; + /* 30px */ +} + +ul { + list-style: square; +} + +ol { + list-style: decimal; +} + +ul ul, +ol ol, +ul ol, +ol ul { + margin: 0; +} + +b, +th, +dt, +strong { + font-weight: bold; +} + +i, +em, +dfn, +cite { + font-style: italic; +} + +blockquote { + padding-left: 1.875rem; + margin: 0 0 1.875rem 1.875rem; + border-left: solid 2px #474d54; + padding-left: 30px; + margin-top: 35px; +} + +pre, +code, +kbd, +tt, +var { + font-size: 0.875em; + font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; +} + +code, +tt, +var { + background: rgba(0, 0, 0, 0.05); +} + +kbd { + padding: 2px 4px; + font-size: 90%; + color: #fff; + background-color: #333; + border-radius: 3px; + box-shadow: inset 0 -1px 0 rgba(0,0,0,.25); +} + +pre.md-fences { + padding: 10px 10px 10px 30px; + margin-bottom: 20px; + background: #333; +} + +.CodeMirror-gutters { + background: #333; + border-right: 1px solid transparent; +} + +.enable-diagrams pre.md-fences[lang="sequence"] .code-tooltip, +.enable-diagrams pre.md-fences[lang="flow"] .code-tooltip, +.enable-diagrams pre.md-fences[lang="mermaid"] .code-tooltip { + bottom: -2.2em; + right: 4px; +} + +code, +kbd, +tt, +var { + padding: 2px 5px; +} + +table { + max-width: 100%; + width: 100%; + border-collapse: collapse; + border-spacing: 0; +} + +th, +td { + padding: 5px 10px; + vertical-align: top; +} + +a { + -webkit-transition: all .2s ease-in-out; + transition: all .2s ease-in-out; +} + +hr { + background: #474d54; + /* variable */ +} + +h1 { + margin-top: 2em; +} + +a { + color: #e0e0e0; + text-decoration: underline; +} + +a:hover { + color: #fff; +} + +.md-inline-math script { + color: #81b1db; +} + +b, +th, +dt, +strong { + color: #DEDEDE; + /* variable */ +} + +mark { + background: #D3D40E; +} + +blockquote { + color: #9DA2A6; +} + +table a { + color: #DEDEDE; + /* variable */ +} + +th, +td { + border: solid 1px #474d54; + /* variable */ +} + +.task-list { + padding-left: 0; +} + +.md-task-list-item { + padding-left: 1.25rem; +} + +.md-task-list-item > input { + top: auto; +} + +.md-task-list-item > input:before { + content: ""; + display: inline-block; + width: 0.875rem; + height: 0.875rem; + vertical-align: middle; + text-align: center; + border: 1px solid #b8bfc6; + background-color: #363B40; + margin-top: -0.4rem; +} + +.md-task-list-item > input:checked:before, +.md-task-list-item > input[checked]:before { + content: '\221A'; + /*◘*/ + font-size: 0.625rem; + line-height: 0.625rem; + color: #DEDEDE; +} + +/** quick open **/ +.auto-suggest-container { + border: 0px; + background-color: #525C65; +} + +#typora-quick-open { + background-color: #525C65; +} + +#typora-quick-open input{ + background-color: #525C65; + border: 0; + border-bottom: 1px solid grey; +} + +.typora-quick-open-item { + background-color: inherit; + color: inherit; +} + +.typora-quick-open-item.active, +.typora-quick-open-item:hover { + background-color: #4D8BDB; + color: white; +} + +.typora-quick-open-item:hover { + background-color: rgba(77, 139, 219, 0.8); +} + +.typora-search-spinner > div { + background-color: #fff; +} + +#write pre.md-meta-block { + border-bottom: 1px dashed #ccc; + background: transparent; + padding-bottom: 0.6em; + line-height: 1.6em; +} + +.btn, +.btn .btn-default { + background: transparent; + color: #b8bfc6; +} + +.ty-table-edit { + border-top: 1px solid gray; + background-color: #363B40; +} + +.popover-title { + background: transparent; +} + +.md-image>.md-meta { + color: #BBBBBB; + background: transparent; +} + +.md-expand.md-image>.md-meta { + color: #DDD; +} + +#write>h3:before, +#write>h4:before, +#write>h5:before, +#write>h6:before { + border: none; + border-radius: 0px; + color: #888; + text-decoration: underline; + left: -1.4rem; + top: 0.2rem; +} + +#write>h3.md-focus:before { + top: 2px; +} + +#write>h4.md-focus:before { + top: 2px; +} + +.md-toc-item { + color: #A8C2DC; +} + +#write div.md-toc-tooltip { + background-color: #363B40; +} + +.dropdown-menu .btn:hover, +.dropdown-menu .btn:focus, +.md-toc .btn:hover, +.md-toc .btn:focus { + color: white; + background: black; +} + +#toc-dropmenu { + background: rgba(50, 54, 59, 0.93); + border: 1px solid rgba(253, 253, 253, 0.15); +} + +#toc-dropmenu .divider { + background-color: #9b9b9b; +} + +.outline-expander:before { + top: 2px; +} + +#typora-sidebar { + box-shadow: none; + border-right: 1px dashed; + border-right: none; +} + +.sidebar-tabs { + border-bottom:0; +} + +#typora-sidebar:hover .outline-title-wrapper { + border-left: 1px dashed; +} + +.outline-title-wrapper .btn { + color: inherit; +} + +.outline-item:hover { + border-color: #363B40; + background-color: #363B40; + color: white; +} + +h1.md-focus .md-attr, +h2.md-focus .md-attr, +h3.md-focus .md-attr, +h4.md-focus .md-attr, +h5.md-focus .md-attr, +h6.md-focus .md-attr, +.md-header-span .md-attr { + color: #8C8E92; + display: inline; +} + +.md-comment { + color: #5a95e3; + opacity: 0.8; +} + +.md-inline-math svg { + color: #b8bfc6; +} + +#math-inline-preview .md-arrow:after { + background: black; +} + +.modal-content { + background: var(--bg-color); + border: 0; +} + +.modal-title { + font-size: 1.5em; +} + +.modal-content input { + background-color: rgba(26, 21, 21, 0.51); + color: white; +} + +.modal-content .input-group-addon { + color: white; +} + +.modal-backdrop { + background-color: rgba(174, 174, 174, 0.7); +} + +.modal-content .btn-primary { + border-color: var(--primary-color); +} + +.md-table-resize-popover { + background-color: #333; +} + +.form-inline .input-group .input-group-addon { + color: white; +} + +#md-searchpanel { + border-bottom: 1px dashed grey; +} + +/** UI for electron */ + +.context-menu, +#spell-check-panel, +#footer-word-count-info { + background-color: #42464A; +} + +.context-menu.dropdown-menu .divider, +.dropdown-menu .divider { + background-color: #777777; + opacity: 1; +} + +footer { + color: inherit; +} + +@media (max-width: 1000px) { + footer { + border-top: none; + } + footer:hover { + color: inherit; + } +} + +#file-info-file-path .file-info-field-value:hover { + background-color: #555; + color: #dedede; +} + +.megamenu-content, +.megamenu-opened header { + background: var(--bg-color); +} + +.megamenu-menu-panel h2, +.megamenu-menu-panel h1, +.long-btn { + color: inherit; +} + +.megamenu-menu-panel input[type='text'] { + background: inherit; + border: 0; + border-bottom: 1px solid; +} + +#recent-file-panel-action-btn { + background: inherit; + border: 1px grey solid; +} + +.megamenu-menu-panel .dropdown-menu > li > a { + color: inherit; + background-color: #2F353A; + text-decoration: none; +} + +.megamenu-menu-panel table td:nth-child(1) { + color: inherit; + font-weight: bold; +} + +.megamenu-menu-panel tbody tr:hover td:nth-child(1) { + color: white; +} + +.modal-footer .btn-default, +.modal-footer .btn-primary, +.modal-footer .btn-default:not(:hover) { + border: 1px solid; + border-color: transparent; +} + +.btn-primary { + color: white; +} + +.btn-default:hover, .btn-default:focus, .btn-default.focus, .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default { + color: white; + border: 1px solid #ddd; + background-color: inherit; +} + +.modal-header { + border-bottom: 0; +} + +.modal-footer { + border-top: 0; +} + +#recent-file-panel tbody tr:nth-child(2n-1) { + background-color: transparent !important; +} + +.megamenu-menu-panel tbody tr:hover td:nth-child(2) { + color: inherit; +} + +.megamenu-menu-panel .btn { + border: 1px solid #eee; + background: transparent; +} + +.mouse-hover .toolbar-icon.btn:hover, +#w-full.mouse-hover, +#w-pin.mouse-hover { + background-color: inherit; +} + +.typora-node::-webkit-scrollbar { + width: 5px; +} + +.typora-node::-webkit-scrollbar-thumb:vertical { + background: rgba(250, 250, 250, 0.3); +} + +.typora-node::-webkit-scrollbar-thumb:vertical:active { + background: rgba(250, 250, 250, 0.5); +} + +#w-unpin { + background-color: #4182c4; +} + +#top-titlebar, #top-titlebar * { + color: var(--item-hover-text-color); +} + +.typora-sourceview-on #toggle-sourceview-btn, +#footer-word-count:hover, +.ty-show-word-count #footer-word-count { + background: #333333; +} + +#toggle-sourceview-btn:hover { + color: #eee; + background: #333333; +} + +/** focus mode */ +.on-focus-mode .md-end-block:not(.md-focus):not(.md-focus-container) * { + color: #686868 !important; +} + +.on-focus-mode .md-end-block:not(.md-focus) img, +.on-focus-mode .md-task-list-item:not(.md-focus-container)>input { + opacity: #686868 !important; +} + +.on-focus-mode li[cid]:not(.md-focus-container){ + color: #686868; +} + +.on-focus-mode .md-fences.md-focus .CodeMirror-code>*:not(.CodeMirror-activeline) *, +.on-focus-mode .CodeMirror.cm-s-inner:not(.CodeMirror-focused) * { + color: #686868 !important; +} + +.on-focus-mode .md-focus, +.on-focus-mode .md-focus-container { + color: #fff; +} + +.on-focus-mode #typora-source .CodeMirror-code>*:not(.CodeMirror-activeline) * { + color: #686868 !important; +} + + +/*diagrams*/ +#write .md-focus .md-diagram-panel { + border: 1px solid #ddd; + margin-left: -1px; + width: calc(100% + 2px); +} + +/*diagrams*/ +#write .md-focus.md-fences-with-lineno .md-diagram-panel { + margin-left: auto; +} + +.md-diagram-panel-error { + color: #f1908e; +} + +.active-tab-files #info-panel-tab-file, +.active-tab-files #info-panel-tab-file:hover, +.active-tab-outline #info-panel-tab-outline, +.active-tab-outline #info-panel-tab-outline:hover { + color: #eee; +} + +.sidebar-footer-item:hover, +.footer-item:hover { + background: inherit; + color: white; +} + +.ty-side-sort-btn.active, +.ty-side-sort-btn:hover, +.selected-folder-menu-item a:after { + color: white; +} + +#sidebar-files-menu { + border:solid 1px; + box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.79); + background-color: var(--bg-color); +} + +.file-list-item { + border-bottom:none; +} + +.file-list-item-summary { + opacity: 1; +} + +.file-list-item.active:first-child { + border-top: none; +} + +.file-node-background { + height: 32px; +} + +.file-library-node.active>.file-node-content, +.file-list-item.active { + color: white; + color: var(--active-file-text-color); +} + +.file-library-node.active>.file-node-background{ + background-color: rgb(34, 34, 34); + background-color: var(--active-file-bg-color); +} +.file-list-item.active { + background-color: rgb(34, 34, 34); + background-color: var(--active-file-bg-color); +} + +#ty-tooltip { + background-color: black; + color: #eee; +} + +.md-task-list-item>input { + margin-left: -1.3em; + margin-top: 0.3rem; + -webkit-appearance: none; +} + +.md-mathjax-midline { + background-color: #57616b; + border-bottom: none; +} + +footer.ty-footer { + border-color: #656565; +} + +.ty-preferences .btn-default { + background: transparent; +} +.ty-preferences .btn-default:hover { + background: #57616b; +} + +.ty-preferences select { + border: 1px solid #989698; + height: 21px; +} + +.ty-preferences .nav-group-item.active, +.export-item.active, +.export-items-list-control, +.export-detail { + background: var(--item-hover-bg-color); +} + +.ty-preferences input[type="search"] { + border-color: #333; + background: #333; + line-height: 22px; + border-radius: 6px; + color: white; +} + +.ty-preferences input[type="search"]:focus { + box-shadow: none; +} + +[data-is-directory="true"] .file-node-content { + margin-bottom: 0; +} + +.file-node-title { + line-height: 22px; +} + +.html-for-mac .file-node-open-state, .html-for-mac .file-node-icon { + line-height: 26px; +} + +::-webkit-scrollbar-thumb { + background: rgba(230, 230, 230, 0.30); +} + +::-webkit-scrollbar-thumb:active { + background: rgba(230, 230, 230, 0.50); +} + +#typora-sidebar:hover div.sidebar-content-content::-webkit-scrollbar-thumb:horizontal { + background: rgba(230, 230, 230, 0.30); +} + +.nav-group-item:active { + background-color: #474d54 !important; +} + +.md-search-hit { + background: rgba(199, 140, 60, 0.81); + color: #eee; +} + +.md-search-hit * { + color: #eee; +} + +#md-searchpanel input { + color: white; +} + +.modal-backdrop.in { + opacity: 1; + backdrop-filter: blur(1px); +} + +.clear-btn-icon { + top: 8px; +} \ No newline at end of file diff --git a/night/codeblock.dark.css b/night/codeblock.dark.css new file mode 100644 index 0000000..a1b1bb3 --- /dev/null +++ b/night/codeblock.dark.css @@ -0,0 +1,113 @@ +@charset "UTF-8"; +/* CSS Document */ + +/** code highlight */ + +.cm-s-inner .cm-variable, +.cm-s-inner .cm-operator, +.cm-s-inner .cm-property { + color: #b8bfc6; +} + +.cm-s-inner .cm-keyword { + color: #C88FD0; +} + +.cm-s-inner .cm-tag { + color: #7DF46A; +} + +.cm-s-inner .cm-attribute { + color: #7575E4; +} + +.CodeMirror div.CodeMirror-cursor { + border-left: 1px solid #b8bfc6; + z-index: 3; +} + +.cm-s-inner .cm-string { + color: #D26B6B; +} + +.cm-s-inner .cm-comment, +.cm-s-inner.cm-comment { + color: #DA924A; +} + +.cm-s-inner .cm-header, +.cm-s-inner .cm-def, +.cm-s-inner.cm-header, +.cm-s-inner.cm-def { + color: #8d8df0; +} + +.cm-s-inner .cm-quote, +.cm-s-inner.cm-quote { + color: #57ac57; +} + +.cm-s-inner .cm-hr { + color: #d8d5d5; +} + +.cm-s-inner .cm-link { + color: #d3d3ef; +} + +.cm-s-inner .cm-negative { + color: #d95050; +} + +.cm-s-inner .cm-positive { + color: #50e650; +} + +.cm-s-inner .cm-string-2 { + color: #f50; +} + +.cm-s-inner .cm-meta, +.cm-s-inner .cm-qualifier { + color: #b7b3b3; +} + +.cm-s-inner .cm-builtin { + color: #f3b3f8; +} + +.cm-s-inner .cm-bracket { + color: #997; +} + +.cm-s-inner .cm-atom, +.cm-s-inner.cm-atom { + color: #84B6CB; +} + +.cm-s-inner .cm-number { + color: #64AB8F; +} + +.cm-s-inner .cm-variable { + color: #b8bfc6; +} + +.cm-s-inner .cm-variable-2 { + color: #9FBAD5; +} + +.cm-s-inner .cm-variable-3 { + color: #1cc685; +} + +.CodeMirror-selectedtext, +.CodeMirror-selected { + background: #4a89dc; + color: #fff !important; + text-shadow: none; +} + +.CodeMirror-gutters { + border-right: none; +} \ No newline at end of file diff --git a/night/credit.html b/night/credit.html new file mode 100644 index 0000000..00bc43c --- /dev/null +++ b/night/credit.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/night/cursor.png b/night/cursor.png new file mode 100644 index 0000000..1cc3629 Binary files /dev/null and b/night/cursor.png differ diff --git a/night/cursor@2x.png b/night/cursor@2x.png new file mode 100644 index 0000000..b8fca0b Binary files /dev/null and b/night/cursor@2x.png differ diff --git a/night/mermaid.dark.css b/night/mermaid.dark.css new file mode 100644 index 0000000..a412b30 --- /dev/null +++ b/night/mermaid.dark.css @@ -0,0 +1,7 @@ +:root { + --mermaid-theme: night; +} + +[lang='mermaid'] .label { + color: #333; +} \ No newline at end of file diff --git a/night/sourcemode.dark.css b/night/sourcemode.dark.css new file mode 100644 index 0000000..6de223d --- /dev/null +++ b/night/sourcemode.dark.css @@ -0,0 +1,38 @@ +@charset "UTF-8"; +/* CSS Document */ + +/** markdown source **/ +.cm-s-typora-default .cm-header, +.cm-s-typora-default .cm-property +{ + color: #cebcca; +} + +.CodeMirror.cm-s-typora-default div.CodeMirror-cursor{ + border-left: 3px solid #b8bfc6; +} + +.cm-s-typora-default .cm-comment { + color: #9FB1FF; +} + +.cm-s-typora-default .cm-string { + color: #A7A7D9 +} + +.cm-s-typora-default .cm-atom, .cm-s-typora-default .cm-number { + color: #848695; + font-style: italic; +} + +.cm-s-typora-default .cm-link { + color: #95B94B; +} + +.cm-s-typora-default .CodeMirror-activeline-background { + background: rgba(51, 51, 51, 0.72); +} + +.cm-s-typora-default .cm-comment, .cm-s-typora-default .cm-code { + color: #8aa1e1; +} \ No newline at end of file