mirror of
https://github.com/RyanGreenup/cadmus.git
synced 2025-02-22 13:42:26 +01:00
317 lines
8.7 KiB
CSS
317 lines
8.7 KiB
CSS
@font-face {
|
|
font-family: Source Han Sans SC;
|
|
font-weight: normal;
|
|
src: local('Source Han Sans SC Regular'), url("catfish/SourceHanSansSC-Regular.otf");
|
|
}
|
|
@font-face {
|
|
font-family: Source Han Sans;
|
|
font-weight: bold;
|
|
src: local('Source Han Sans SC Bold'), url("catfish/SourceHanSansSC-Bold.otf");
|
|
}
|
|
@font-face {
|
|
font-family: Source Han Serif;
|
|
font-weight: normal;
|
|
src: local('Source Han Serif SC Regular'), url("catfish/SourceHanSerifSC-Regular.otf");
|
|
}
|
|
@font-face {
|
|
font-family: Source Han Serif;
|
|
font-weight: bold;
|
|
src: local('Source Han Serif SC Bold'), url("catfish/SourceHanSerifSC-Bold.otf");
|
|
}
|
|
@font-face {
|
|
font-family: mononoki;
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
src: local('mononoki Regular'), url("catfish/mononoki-Regular.woff");
|
|
}
|
|
@font-face {
|
|
font-family: mononoki;
|
|
font-style: italic;
|
|
font-weight: normal;
|
|
src: local('mononoki Italic'), url("catfish/mononoki-Italic.woff");
|
|
}
|
|
@font-face {
|
|
font-family: mononoki;
|
|
font-style: normal;
|
|
font-weight: bold;
|
|
src: local('mononoki Bold'), url("catfish/mononoki-Bold.woff");
|
|
}
|
|
@font-face {
|
|
font-family: mononoki;
|
|
font-style: italic;
|
|
font-weight: bold;
|
|
src: local('mononoki Bold Italic'), url("catfish/mononoki-BoldItalic.woff");
|
|
}
|
|
html {
|
|
font-size: 16px;
|
|
}
|
|
body {
|
|
background: #fff;
|
|
font-family: Source Han Sans SC, sans-serif;
|
|
color: #555;
|
|
}
|
|
#write {
|
|
max-width: 60em;
|
|
margin: 0 auto;
|
|
padding: 20px 30px 50px;
|
|
}
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
position: relative;
|
|
margin-top: 1em;
|
|
margin-bottom: 1em;
|
|
font-weight: bold;
|
|
line-height: 1.4em;
|
|
}
|
|
h1 {
|
|
font-size: 2em;
|
|
line-height: 1.2em;
|
|
}
|
|
h2 {
|
|
font-size: 1.5em;
|
|
line-height: 1.225em;
|
|
}
|
|
h3 {
|
|
font-size: 1.3em;
|
|
line-height: 1.43em;
|
|
}
|
|
h4 {
|
|
font-size: 1.2em;
|
|
}
|
|
h5 {
|
|
font-size: 1em;
|
|
}
|
|
h6 {
|
|
font-size: 1em;
|
|
color: #999;
|
|
}
|
|
hr {
|
|
border: 1px solid #ddd;
|
|
}
|
|
a {
|
|
text-decoration: none;
|
|
color: #258fb8;
|
|
}
|
|
a:hover,
|
|
a:active {
|
|
text-decoration: underline;
|
|
}
|
|
ul,
|
|
ol {
|
|
padding-left: 2em;
|
|
}
|
|
.task-list {
|
|
padding-left: 2em;
|
|
}
|
|
.task-list-item {
|
|
padding-left: 1.6em;
|
|
}
|
|
.task-list-item input {
|
|
top: 3px;
|
|
left: 8px;
|
|
}
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
}
|
|
table th {
|
|
font-weight: bold;
|
|
border-bottom: 3px solid #ddd;
|
|
padding-bottom: 0.5em;
|
|
}
|
|
table td {
|
|
border-bottom: 1px solid #ddd;
|
|
padding: 10px 0;
|
|
}
|
|
blockquote {
|
|
border-left: 5px solid #ddd;
|
|
padding-left: 0.5em;
|
|
font-family: Source Han Serif SC, serif;
|
|
color: #555;
|
|
}
|
|
blockquote blockquote {
|
|
padding-right: 0;
|
|
}
|
|
.md-fences,
|
|
code,
|
|
tt {
|
|
margin: 0 0.2em;
|
|
padding: 0 0.3em;
|
|
background: #263238;
|
|
font-family: mononoki, monospace;
|
|
color: #e9eded;
|
|
}
|
|
.md-fences {
|
|
margin: 15px auto;
|
|
padding: 0.7em 1em;
|
|
text-shadow: none;
|
|
}
|
|
|
|
/** ported from https://codemirror.net/theme/material.css **/
|
|
/*
|
|
|
|
Name: material
|
|
Author: Michael Kaminsky (http://github.com/mkaminsky11)
|
|
|
|
Original material color scheme by Mattia Astorino (https://github.com/equinusocio/material-theme)
|
|
|
|
*/
|
|
|
|
.cm-s-inner.CodeMirror {
|
|
background-color: #263238;
|
|
color: rgba(233, 237, 237, 1);
|
|
}
|
|
.cm-s-inner .CodeMirror-gutters {
|
|
background: #263238;
|
|
color: rgb(83,127,126);
|
|
border: none;
|
|
}
|
|
.cm-s-inner .CodeMirror-guttermarker, .cm-s-inner .CodeMirror-guttermarker-subtle, .cm-s-inner .CodeMirror-linenumber { color: rgb(83,127,126); }
|
|
.cm-s-inner .CodeMirror-cursor { border-left: 1px solid #f8f8f0; }
|
|
.cm-s-inner div.CodeMirror-selected { background: rgba(255, 255, 255, 0.15); }
|
|
.cm-s-inner.CodeMirror-focused div.CodeMirror-selected { background: rgba(255, 255, 255, 0.10); }
|
|
.cm-s-inner .CodeMirror-line::selection, .cm-s-inner .CodeMirror-line > span::selection, .cm-s-inner .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); }
|
|
.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(255, 255, 255, 0.10); }
|
|
|
|
.cm-s-inner .CodeMirror-activeline-background { background: rgba(0, 0, 0, 0); }
|
|
.cm-s-inner .cm-keyword { color: rgba(199, 146, 234, 1); }
|
|
.cm-s-inner .cm-operator { color: rgba(233, 237, 237, 1); }
|
|
.cm-s-inner .cm-variable-2 { color: #80CBC4; }
|
|
.cm-s-inner .cm-variable-3, .cm-s-inner .cm-type { color: #82B1FF; }
|
|
.cm-s-inner .cm-builtin { color: #DECB6B; }
|
|
.cm-s-inner .cm-atom { color: #F77669; }
|
|
.cm-s-inner .cm-number { color: #F77669; }
|
|
.cm-s-inner .cm-def { color: rgba(233, 237, 237, 1); }
|
|
.cm-s-inner .cm-string { color: #C3E88D; }
|
|
.cm-s-inner .cm-string-2 { color: #80CBC4; }
|
|
.cm-s-inner .cm-comment { color: #546E7A; }
|
|
.cm-s-inner .cm-variable { color: #82B1FF; }
|
|
.cm-s-inner .cm-tag { color: #80CBC4; }
|
|
.cm-s-inner .cm-meta { color: #80CBC4; }
|
|
.cm-s-inner .cm-attribute { color: #FFCB6B; }
|
|
.cm-s-inner .cm-property { color: #80CBAE; }
|
|
.cm-s-inner .cm-qualifier { color: #DECB6B; }
|
|
.cm-s-inner .cm-variable-3, .cm-s-inner .cm-type { color: #DECB6B; }
|
|
.cm-s-inner .cm-tag { color: rgba(255, 83, 112, 1); }
|
|
.cm-s-inner .cm-error {
|
|
color: rgba(255, 255, 255, 1.0);
|
|
background-color: #EC5F67;
|
|
}
|
|
.cm-s-inner .CodeMirror-matchingbracket {
|
|
text-decoration: underline;
|
|
color: white !important;
|
|
}
|
|
|
|
/**apply to code fences with plan text**/
|
|
.md-fences {
|
|
background-color: #263238;
|
|
color: rgba(233, 237, 237, 1);
|
|
border: none;
|
|
}
|
|
|
|
.md-fences .code-tooltip {
|
|
background-color: #263238;
|
|
}
|
|
|
|
.cm-s-typora-default {
|
|
background-color: #263238;
|
|
color: rgba(233, 237, 237, 1);
|
|
}
|
|
.cm-s-typora-default .CodeMirror-gutters {
|
|
background: #263238;
|
|
color: rgb(83,127,126);
|
|
border: none;
|
|
}
|
|
.cm-s-typora-default .CodeMirror-guttermarker, .cm-s-typora-default .CodeMirror-guttermarker-subtle, .cm-s-typora-default .CodeMirror-linenumber { color: rgb(83,127,126); }
|
|
.cm-s-typora-default .CodeMirror-cursor { border-left: 1px solid #f8f8f0; }
|
|
.cm-s-typora-default div.CodeMirror-selected { background: rgba(255, 255, 255, 0.15); }
|
|
.cm-s-typora-default.CodeMirror-focused div.CodeMirror-selected { background: rgba(255, 255, 255, 0.10); }
|
|
.cm-s-typora-default .CodeMirror-line::selection, .cm-s-typora-default .CodeMirror-line > span::selection, .cm-s-typora-default .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); }
|
|
.cm-s-typora-default .CodeMirror-line::-moz-selection, .cm-s-typora-default .CodeMirror-line > span::-moz-selection, .cm-s-typora-default .CodeMirror-line > span > span::-moz-selection { background: rgba(255, 255, 255, 0.10); }
|
|
|
|
.cm-s-typora-default .CodeMirror-activeline-background { background: rgba(0, 0, 0, 0); }
|
|
.cm-s-typora-default .cm-keyword { color: rgba(199, 146, 234, 1); }
|
|
.cm-s-typora-default .cm-operator { color: rgba(233, 237, 237, 1); }
|
|
.cm-s-typora-default .cm-variable-2 { color: #80CBC4; }
|
|
.cm-s-typora-default .cm-variable-3 { color: #82B1FF; }
|
|
.cm-s-typora-default .cm-builtin { color: #DECB6B; }
|
|
.cm-s-typora-default .cm-atom { color: #F77669; }
|
|
.cm-s-typora-default .cm-number { color: #F77669; }
|
|
.cm-s-typora-default .cm-def { color: rgba(233, 237, 237, 1); }
|
|
.cm-s-typora-default .cm-string { color: #C3E88D; }
|
|
.cm-s-typora-default .cm-string-2 { color: #80CBC4; }
|
|
.cm-s-typora-default .cm-comment { color: #546E7A; }
|
|
.cm-s-typora-default .cm-variable { color: #82B1FF; }
|
|
.cm-s-typora-default .cm-tag { color: #80CBC4; }
|
|
.cm-s-typora-default .cm-meta { color: #80CBC4; }
|
|
.cm-s-typora-default .cm-attribute { color: #FFCB6B; }
|
|
.cm-s-typora-default .cm-property { color: #80CBAE; }
|
|
.cm-s-typora-default .cm-qualifier { color: #DECB6B; }
|
|
.cm-s-typora-default .cm-variable-3 { color: #DECB6B; }
|
|
.cm-s-typora-default .cm-tag { color: rgba(255, 83, 112, 1); }
|
|
.cm-s-typora-default .cm-error {
|
|
color: rgba(255, 255, 255, 1.0);
|
|
background-color: #EC5F67;
|
|
}
|
|
.cm-s-typora-default .CodeMirror-matchingbracket {
|
|
text-decoration: underline;
|
|
color: white !important;
|
|
}
|
|
|
|
/**apply to code fences with plan text**/
|
|
.md-fences {
|
|
background-color: #263238;
|
|
color: rgba(233, 237, 237, 1);
|
|
border: none;
|
|
}
|
|
|
|
.md-fences .code-tooltip {
|
|
background-color: #263238;
|
|
}
|
|
.CodeMirror div.CodeMirror-cursor {
|
|
border-left: 1px solid #e4629a;
|
|
}
|
|
|
|
#write pre.md-meta-block {
|
|
padding: 1em;
|
|
background-color: #fff;
|
|
border-bottom: 1px dashed #ddd;
|
|
color: #80cbc4;
|
|
margin-top: 0 !important;
|
|
}
|
|
.md-image>.md-meta {
|
|
color: inherit;
|
|
}
|
|
header,
|
|
.context-menu,
|
|
.megamenu-content,
|
|
footer {
|
|
font-family: Source Han Sans SC, sans-serif;
|
|
}
|
|
@media print {
|
|
html {
|
|
font-size: 13px;
|
|
}
|
|
table,
|
|
pre {
|
|
page-break-inside: avoid;
|
|
}
|
|
pre {
|
|
word-wrap: break-word;
|
|
}
|
|
}
|
|
header,
|
|
.context-menu,
|
|
.megamenu-content,
|
|
footer {
|
|
font-family: Helvetica Neue, Helvetica, Segoe UI, Arial, sans-serif;
|
|
}
|
|
.md-diagram-panel-preview {
|
|
color: #263238;
|
|
}
|