mirror of
https://github.com/evlic/typora_theme.git
synced 2024-11-24 17:22:10 +08:00
00c9515de3
初始化提交
626 lines
11 KiB
CSS
626 lines
11 KiB
CSS
/*
|
|
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;
|
|
} |