feat: add typora theme support

This commit is contained in:
Trevor Wang 2022-01-20 20:20:42 +08:00
parent 78eb216f19
commit 73bfb70982
4 changed files with 4791 additions and 0 deletions

View file

@ -13,6 +13,7 @@
"compile": "rollup -c -w", "compile": "rollup -c -w",
"build:style": "node-sass --output-style=compressed lib/heti.scss umd/heti.min.css", "build:style": "node-sass --output-style=compressed lib/heti.scss umd/heti.min.css",
"build:site": "node-sass --output-style=expanded _site/scss/ -o _site/", "build:site": "node-sass --output-style=expanded _site/scss/ -o _site/",
"build:typora": "node-sass --output-style=expanded typora/heti.scss -o typora/",
"build:script": "rollup -c", "build:script": "rollup -c",
"build": "npm run build:style && npm run build:site && npm run build:script", "build": "npm run build:style && npm run build:site && npm run build:script",
"test": "npx stylelint --config package.json 'lib/**/*.scss'" "test": "npx stylelint --config package.json 'lib/**/*.scss'"

3836
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load diff

949
typora/heti.css Normal file
View file

@ -0,0 +1,949 @@
@charset "UTF-8";
/*!
* Project: Heti
* URL: https://github.com/sivan/heti
* Author: Sivan [sun.sivan@gmail.com]
*/
@font-face {
font-family: "Heti Hei";
src: local("PingFang SC Regular"), local("PingFang TC Regular"), local("Hiragino Sans GB W3"), local("Heiti SC Regular"), local("Heiti TC Regular"), local("Microsoft YaHei"), local("Microsoft Jhenghei"), local("Source Han Sans CN Regular"), local("Source Han Sans HK Regular"), local("Source Han Sans TW Regular"), local("Source Han Sans JP Regular"), local("Source Han Sans KR Regular"), local("Noto Sans CJK SC Regular"), local("Noto Sans CJK TC Regular"), local("Noto Sans CJK JP Regular"), local("Noto Sans CJK KR Regular"), local("WenQuanYi Micro Hei"), local("Droid Sans Fallback");
}
@font-face {
font-family: "Heti Hei";
font-weight: 200;
src: local("PingFang SC Light"), local("PingFang TC Light"), local("Heiti SC Light"), local("Heiti TC Light"), local("Microsoft YaHei Light"), local("Microsoft Jhenghei Light"), local("Source Han Sans CN Light"), local("Source Han Sans HK Light"), local("Source Han Sans TW Light"), local("Source Han Sans JP Light"), local("Source Han Sans KR Light"), local("Noto Sans CJK SC Light"), local("Noto Sans CJK TC Light"), local("Noto Sans CJK JP Light"), local("Noto Sans CJK KR Light");
}
@font-face {
font-family: "Heti Hei";
font-weight: 600;
src: local("PingFang SC Medium"), local("Hiragino Sans GB W6"), local("PingFang TC Medium"), local("Heiti SC Medium"), local("Heiti TC Medium"), local("Microsoft YaHei Bold"), local("Microsoft Jhenghei Bold"), local("Source Han Sans CN Bold"), local("Source Han Sans HK Bold"), local("Source Han Sans TW Bold"), local("Source Han Sans JP Bold"), local("Source Han Sans KR Bold"), local("Noto Sans CJK SC Bold"), local("Noto Sans CJK TC Bold"), local("Noto Sans CJK JP Bold"), local("Noto Sans CJK KR Bold");
}
@font-face {
font-family: "Heti Hei Black";
font-weight: 800;
src: local("Lantinghei SC Heavy"), local("Lantinghei TC Heavy"), local("PingFang SC Semibold"), local("PingFang TC Semibold"), local("Hiragino Sans GB W6"), local("Heiti SC Medium"), local("Heiti TC Medium"), local("Microsoft YaHei Bold"), local("Microsoft Jhenghei Bold"), local("Source Han Sans CN Heavy"), local("Source Han Sans HK Heavy"), local("Source Han Sans TW Heavy"), local("Source Han Sans JP Heavy"), local("Source Han Sans KR Heavy"), local("Noto Sans CJK SC Heavy"), local("Noto Sans CJK TC Heavy"), local("Noto Sans CJK JP Heavy"), local("Noto Sans CJK KR Heavy"), local("Droid Sans Fallback");
}
@font-face {
font-family: "Heti Song";
src: local("Songti SC Regular"), local("Songti TC Regular"), local("SimSun");
}
@font-face {
font-family: "Heti Song";
font-weight: 200;
src: local("Songti SC Light"), local("Songti TC Light"), local("STSong"), local("SimSun");
}
@font-face {
font-family: "Heti Song";
font-weight: 600;
src: local("Songti SC Bold"), local("Songti TC Bold"), local("SimSun");
}
@font-face {
font-family: "Heti Song Black";
font-weight: 800;
src: local("Songti SC Black"), local("SimSun");
}
@font-face {
font-family: "Heti Kai";
src: local("Kaiti SC Regular"), local("Kaiti TC Regular"), local("BiauKai");
}
@font-face {
font-family: "Heti Kai";
font-weight: 600;
src: local("Kaiti SC Bold"), local("Kaiti TC Bold");
}
@font-face {
font-family: "Heti Kai Black";
font-weight: 800;
src: local("Kaiti SC Black"), local("Kaiti TC Black");
}
.heti, #write {
max-width: 42em;
font-size: 16px;
font-weight: 400;
-webkit-font-smoothing: subpixel-antialiased;
line-height: 1.5;
overflow-wrap: break-word;
word-wrap: break-word;
hyphens: auto;
}
.heti::before, #write::before, .heti::after, #write::after {
content: "";
display: table;
}
.heti::after, #write::after {
clear: both;
}
.heti > *:first-child, #write > *:first-child,
.heti section > *:first-child,
#write section > *:first-child,
.heti td > *:first-child,
#write td > *:first-child {
margin-block-start: 0 !important;
}
.heti > *:last-child, #write > *:last-child,
.heti section > *:last-child,
#write section > *:last-child,
.heti td > *:last-child,
#write td > *:last-child {
margin-block-end: 0 !important;
}
.heti blockquote, #write blockquote {
margin-block-start: 12px;
margin-block-end: 24px;
margin-inline-start: 32px;
margin-inline-end: 32px;
padding-block-start: 12px;
padding-block-end: 12px;
padding-inline-start: 16px;
padding-inline-end: 16px;
background-color: rgba(0, 0, 0, 0.054);
}
@media (prefers-color-scheme: dark) {
.heti blockquote, #write blockquote {
background-color: rgba(255, 255, 255, 0.054);
}
}
.heti figure, #write figure {
display: block;
text-align: center;
}
.heti figure > img, #write figure > img {
display: block;
margin-inline-start: auto;
margin-inline-end: auto;
}
.heti hr, #write hr {
width: 30%;
height: 1px;
margin-block-start: 48px;
margin-block-end: 47px;
margin-inline-start: auto;
margin-inline-end: auto;
border: 0;
background-color: #cccccc;
}
@media (prefers-color-scheme: dark) {
.heti hr, #write hr {
background-color: #404040;
}
}
.heti p, #write p {
margin-block-start: 12px;
margin-block-end: 24px;
text-align: justify;
}
.heti p:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)), #write p:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)), .heti p:not(:lang(zh)), #write p:not(:lang(zh)) {
text-align: start;
}
.heti pre, #write pre {
margin-block-start: 12px;
margin-block-end: 12px;
margin-inline-start: 0;
margin-inline-end: 0;
padding-block-start: 12px;
padding-block-end: 12px;
padding-inline-start: 16px;
padding-inline-end: 16px;
overflow: auto;
font-family: "SFMono-Regular", consolas, "Liberation Mono", menlo, courier, monospace, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
white-space: pre;
word-wrap: normal;
border-radius: 4px;
background-color: rgba(0, 0, 0, 0.054);
}
@media (prefers-color-scheme: dark) {
.heti pre, #write pre {
background-color: rgba(255, 255, 255, 0.054);
}
}
.heti pre code, #write pre code {
margin: 0;
padding: 0;
border: 0;
border-radius: 0;
background-color: transparent;
color: inherit;
}
.heti h1, #write h1,
.heti h2,
#write h2,
.heti h3,
#write h3,
.heti h4,
#write h4,
.heti h5,
#write h5,
.heti h6,
#write h6 {
position: relative;
margin: 0;
margin-block-start: 24px;
margin-block-end: 12px;
font-weight: 600;
}
.heti h1, #write h1 {
margin-block-end: 24px;
font-size: 32px;
line-height: 48px;
}
.heti h2,
#write h2 {
font-size: 24px;
line-height: 36px;
}
.heti h3,
#write h3 {
font-size: 20px;
line-height: 36px;
}
.heti h4,
#write h4 {
font-size: 18px;
line-height: 24px;
}
.heti h5,
#write h5 {
font-size: 16px;
line-height: 24px;
}
.heti h6,
#write h6 {
font-size: 14px;
line-height: 24px;
}
.heti h1, #write h1,
.heti h2,
#write h2,
.heti h3,
#write h3 {
letter-spacing: 0.05em;
}
.heti h1:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)), #write h1:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)), .heti h1:not(:lang(zh)), #write h1:not(:lang(zh)),
.heti h2:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)),
#write h2:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)),
.heti h2:not(:lang(zh)),
#write h2:not(:lang(zh)),
.heti h3:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)),
#write h3:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)),
.heti h3:not(:lang(zh)),
#write h3:not(:lang(zh)) {
letter-spacing: 0;
}
.heti h1 + h2, #write h1 + h2,
.heti h2 + h3,
#write h2 + h3,
.heti h3 + h4,
#write h3 + h4,
.heti h4 + h5,
#write h4 + h5,
.heti h5 + h6,
#write h5 + h6 {
margin-block-start: 12px;
}
.heti ul, #write ul,
.heti ol,
#write ol,
.heti dl,
#write dl {
margin-block-start: 12px;
margin-block-end: 24px;
}
.heti ul, #write ul,
.heti ol,
#write ol {
padding-inline-start: 32px;
}
.heti ul ul, #write ul ul,
.heti ul ol,
#write ul ol,
.heti ol ul,
#write ol ul,
.heti ol ol,
#write ol ol {
margin-block-start: 0;
margin-block-end: 0;
}
.heti ul, #write ul {
list-style-type: disc;
}
.heti ol,
#write ol {
list-style-type: decimal;
}
.heti ul ul, #write ul ul,
.heti ol ul,
#write ol ul {
list-style-type: circle;
}
.heti ul ul ul, #write ul ul ul,
.heti ul ol ul,
#write ul ol ul,
.heti ol ul ul,
#write ol ul ul,
.heti ol ol ul,
#write ol ol ul {
list-style-type: square;
}
.heti li, #write li {
list-style-type: unset;
}
.heti table, #write table {
box-sizing: border-box;
table-layout: fixed;
margin-block-start: 12px;
margin-block-end: 24px;
margin-inline-start: auto;
margin-inline-end: auto;
border-collapse: collapse;
border-width: 1px;
border-style: solid;
border-color: #cccccc;
word-break: break-word;
}
@media (prefers-color-scheme: dark) {
.heti table, #write table {
border-color: #404040;
}
}
.heti th, #write th,
.heti td,
#write td {
padding-block-start: 6px;
padding-block-end: 6px;
padding-inline-start: 8px;
padding-inline-end: 8px;
border-width: 1px;
border-style: solid;
border-color: #cccccc;
}
@media (prefers-color-scheme: dark) {
.heti th, #write th,
.heti td,
#write td {
border-color: #404040;
}
}
.heti caption, #write caption {
caption-side: bottom;
margin-block-start: 2px;
margin-block-end: -4px;
font-size: 14px;
line-height: 24px;
}
.heti a, #write a {
text-decoration: none;
}
.heti a:hover, #write a:hover {
padding-block-end: 1px;
border-block-end: 1px solid currentColor;
text-decoration: none;
}
.heti abbr[title], #write abbr[title] {
padding-block-end: 1px;
border-block-end: 1px dotted;
text-decoration: none;
cursor: help;
}
.heti b, #write b,
.heti strong,
#write strong {
font-weight: 600;
}
.heti code, #write code {
margin-inline-start: 0.25em;
margin-inline-end: 0.25em;
font-family: "SFMono-Regular", consolas, "Liberation Mono", menlo, courier, monospace, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 0.875em;
}
.heti dfn, #write dfn {
font-weight: 600;
}
.heti dfn:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)), #write dfn:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)), .heti dfn:not(:lang(zh)), #write dfn:not(:lang(zh)) {
font-weight: 400;
}
.heti em, #write em {
font-weight: 600;
}
.heti figcaption, #write figcaption {
display: inline-block;
vertical-align: top;
font-size: 14px;
text-align: start;
}
.heti i, #write i {
font-style: italic;
}
.heti ins, #write ins,
.heti u,
#write u {
padding-block-end: 1px;
border-block-end: 1px solid;
text-decoration: none;
}
.heti mark, #write mark {
padding-block-start: 2px;
padding-block-end: 2px;
padding-inline-start: 1px;
padding-inline-end: 1px;
margin-inline-start: 1px;
margin-inline-end: 1px;
background-color: rgba(255, 247, 0, 0.88);
color: inherit;
}
@media (prefers-color-scheme: dark) {
.heti mark, #write mark {
background-color: rgba(77, 74, 0, 0.88);
}
}
.heti q, #write q {
quotes: "「" "」" "『" "』";
}
.heti q:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)), #write q:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)), .heti q:not(:lang(zh)), #write q:not(:lang(zh)) {
quotes: initial;
quotes: auto;
}
.heti rt, #write rt {
font-size: 0.875em;
font-weight: 400;
}
.heti small, #write small {
font-size: 0.875em;
}
.heti strong,
#write strong {
font-weight: 600;
}
.heti sub, #write sub,
.heti sup,
#write sup {
position: relative;
margin-inline-start: 0.25em;
margin-inline-end: 0.25em;
font-size: 0.75em;
font-family: "Helvetica Neue", helvetica, arial, "Heti Hei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-style: normal;
line-height: 1;
vertical-align: baseline;
}
.heti sub, #write sub {
bottom: -0.25em;
}
.heti sup,
#write sup {
top: -0.5em;
}
.heti sup:target, #write sup:target,
.heti sup a:target,
#write sup a:target {
background-color: #dbedff;
}
@media (prefers-color-scheme: dark) {
.heti sup:target, #write sup:target,
.heti sup a:target,
#write sup a:target {
background-color: #3a6188;
}
}
.heti summary, #write summary {
padding-inline-start: 1em;
outline: 0;
cursor: pointer;
}
.heti summary::-webkit-details-marker, #write summary::-webkit-details-marker {
width: 0.6em;
margin-inline-end: 0.4em;
}
.heti u[title], #write u[title] {
cursor: help;
border-block-end-width: 3px;
border-block-end-style: double;
border-block-end-color: rgba(0, 0, 0, 0.54);
}
@media (prefers-color-scheme: dark) {
.heti u[title], #write u[title] {
border-block-end-color: rgba(255, 255, 255, 0.54);
}
}
.heti address, #write address,
.heti cite,
#write cite, .heti dfn, #write dfn,
.heti dt,
#write dt, .heti em, #write em {
font-style: normal;
}
.heti address:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)), #write address:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)), .heti address:not(:lang(zh)), #write address:not(:lang(zh)),
.heti cite:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)),
#write cite:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)),
.heti cite:not(:lang(zh)),
#write cite:not(:lang(zh)), .heti dfn:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)), #write dfn:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)), .heti dfn:not(:lang(zh)), #write dfn:not(:lang(zh)),
.heti dt:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)),
#write dt:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)),
.heti dt:not(:lang(zh)),
#write dt:not(:lang(zh)),
.heti em:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)),
#write em:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)),
.heti em:not(:lang(zh)),
#write em:not(:lang(zh)) {
font-style: italic;
}
.heti abbr[title], #write abbr[title],
.heti del,
#write del, .heti ins, #write ins,
.heti s,
#write s,
.heti u,
#write u {
margin-inline-start: 1px;
margin-inline-end: 1px;
}
.heti, #write, .heti--sans {
font-family: "Helvetica Neue", helvetica, arial, "Heti Hei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.heti--serif {
font-family: "Times New Roman", times, "Heti Song", serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.heti--classic {
font-family: "Times New Roman", times, "Heti Song", serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.heti--classic h1,
.heti--classic h2,
.heti--classic h3,
.heti--classic h4,
.heti--classic h5,
.heti--classic h6 {
font-family: "Times New Roman", times, "Heti Kai Black", serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-weight: 800;
}
.heti--classic blockquote,
.heti--classic cite,
.heti--classic q {
font-family: "Times New Roman", times, "Heti Kai", serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.heti--classic figcaption,
.heti--classic caption,
.heti--classic th {
font-family: "Helvetica Neue", helvetica, arial, "Heti Hei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.heti--hei {
font-family: "Helvetica Neue", helvetica, arial, "Heti Hei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.heti--song {
font-family: "Times New Roman", times, "Heti Song", serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.heti--kai {
font-family: "Times New Roman", times, "Heti Kai", serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.heti--columns-1, .heti--columns-2, .heti--columns-3, .heti--columns-4, .heti--columns-16em, .heti--columns-20em, .heti--columns-24em, .heti--columns-28em, .heti--columns-32em, .heti--columns-36em, .heti--columns-40em, .heti--columns-44em, .heti--columns-48em, .heti comma, #write comma {
max-width: none;
column-gap: 2em;
}
.heti--columns-1 p, .heti--columns-2 p, .heti--columns-3 p, .heti--columns-4 p, .heti--columns-16em p, .heti--columns-20em p, .heti--columns-24em p, .heti--columns-28em p, .heti--columns-32em p, .heti--columns-36em p, .heti--columns-40em p, .heti--columns-44em p, .heti--columns-48em p, .heti comma p, #write comma p {
margin-block-start: 6px;
margin-block-end: 12px;
text-indent: 2em;
}
.heti--columns-1 {
column-count: 1;
}
.heti--columns-2 {
column-count: 2;
}
.heti--columns-3 {
column-count: 3;
}
.heti--columns-4 {
column-count: 4;
}
.heti--columns-16em {
column-width: 16em;
}
.heti--columns-20em {
column-width: 20em;
}
.heti--columns-24em {
column-width: 24em;
}
.heti--columns-28em {
column-width: 28em;
}
.heti--columns-32em {
column-width: 32em;
}
.heti--columns-36em {
column-width: 36em;
}
.heti--columns-40em {
column-width: 40em;
}
.heti--columns-44em {
column-width: 44em;
}
.heti--columns-48em {
column-width: 48em;
}
.heti--vertical {
max-width: none;
max-height: 42em;
writing-mode: vertical-rl;
letter-spacing: 0.125em;
}
.heti--vertical h1,
.heti--vertical h2,
.heti--vertical h3,
.heti--vertical h4,
.heti--vertical h5,
.heti--vertical h6 {
text-align: start;
}
.heti--vertical q {
quotes: "「" "」" "『" "』";
}
.heti--ancient, .heti--poetry {
font-family: "Times New Roman", times, "Heti Song", serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.heti--ancient h1,
.heti--ancient h2,
.heti--ancient h3,
.heti--ancient h4,
.heti--ancient h5,
.heti--ancient h6, .heti--poetry h1,
.heti--poetry h2,
.heti--poetry h3,
.heti--poetry h4,
.heti--poetry h5,
.heti--poetry h6 {
font-family: "Times New Roman", times, "Heti Kai Black", serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-weight: 800;
text-align: center;
}
.heti--ancient h1 .heti-meta,
.heti--ancient h2 .heti-meta,
.heti--ancient h3 .heti-meta,
.heti--ancient h4 .heti-meta,
.heti--ancient h5 .heti-meta,
.heti--ancient h6 .heti-meta, .heti--poetry h1 .heti-meta,
.heti--poetry h2 .heti-meta,
.heti--poetry h3 .heti-meta,
.heti--poetry h4 .heti-meta,
.heti--poetry h5 .heti-meta,
.heti--poetry h6 .heti-meta {
font-weight: 400;
}
@media screen and (min-width: 640px) {
.heti--ancient h1 .heti-meta,
.heti--ancient h2 .heti-meta,
.heti--ancient h3 .heti-meta,
.heti--ancient h4 .heti-meta,
.heti--ancient h5 .heti-meta,
.heti--ancient h6 .heti-meta, .heti--poetry h1 .heti-meta,
.heti--poetry h2 .heti-meta,
.heti--poetry h3 .heti-meta,
.heti--poetry h4 .heti-meta,
.heti--poetry h5 .heti-meta,
.heti--poetry h6 .heti-meta {
position: absolute;
line-height: inherit;
text-indent: 0;
display: inline;
margin-block-start: 4px;
margin-inline-start: 8px;
}
}
.heti--ancient .heti-meta, .heti--poetry .heti-meta {
line-height: 24px;
text-align: center;
text-indent: 0;
}
.heti--ancient p {
text-indent: 2em;
}
.heti--poetry p {
text-align: center;
text-indent: 0;
}
.heti--annotation p {
margin-block-start: 0;
margin-block-end: 0;
line-height: 2.25;
text-indent: 2em;
}
.heti--annotation em {
-webkit-text-emphasis: filled circle;
-webkit-text-emphasis-position: under;
font-weight: 400;
}
.heti--annotation em:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)), .heti--annotation em:not(:lang(zh)) {
-webkit-text-emphasis: none;
}
.heti--annotation .heti-meta {
margin-block-start: 12px;
margin-block-end: 24px;
}
.heti .heti-meta, #write .heti-meta {
display: block;
text-indent: 0;
}
.heti .heti-verse, #write .heti-verse {
text-align: center;
text-indent: 0;
}
.heti .heti-large, #write .heti-large {
font-size: 18px;
line-height: 24px;
}
.heti .heti-x-large, #write .heti-x-large {
font-size: 20px;
line-height: 30px;
letter-spacing: 0.05em;
}
.heti .heti-small, #write .heti-small {
font-size: 14px;
line-height: 24px;
}
.heti .heti-x-small, #write .heti-x-small {
font-size: 12px;
line-height: 18px;
}
.heti .heti-list-latin, #write .heti-list-latin {
list-style-type: upper-latin;
}
.heti .heti-list-latin ol, #write .heti-list-latin ol {
list-style-type: lower-roman;
}
.heti .heti-list-latin ol ol, #write .heti-list-latin ol ol {
list-style-type: lower-latin;
}
.heti .heti-list-han, #write .heti-list-han {
list-style-type: cjk-ideographic;
}
.heti .heti-list-han ol, #write .heti-list-han ol {
list-style-type: decimal;
}
.heti .heti-list-han ol ol, #write .heti-list-han ol ol {
list-style-type: decimal-leading-zero;
}
.heti .heti-fn, #write .heti-fn {
margin-block-start: 59px;
border-block-start: 1px solid;
border-block-start-color: #cccccc;
font-size: 14px;
font-family: "Helvetica Neue", helvetica, arial, "Heti Hei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
line-height: 24px;
}
@media (prefers-color-scheme: dark) {
.heti .heti-fn, #write .heti-fn {
border-block-start-color: #404040;
}
}
.heti .heti-fn ol, #write .heti-fn ol {
margin-block-start: 12px;
margin-block-end: 0;
}
.heti .heti-fn li:target, #write .heti-fn li:target {
background-color: #dbedff;
}
@media (prefers-color-scheme: dark) {
.heti .heti-fn li:target, #write .heti-fn li:target {
background-color: #3a6188;
}
}
.heti .heti-hang, #write .heti-hang {
position: absolute;
line-height: inherit;
text-indent: 0;
}
.heti .heti-em, #write .heti-em {
-webkit-text-emphasis: filled circle;
-webkit-text-emphasis-position: under;
}
.heti .heti-em:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)), #write .heti-em:not(:lang(zh)):not(:lang(ja)):not(:lang(kr)), .heti .heti-em:not(:lang(zh)), #write .heti-em:not(:lang(zh)) {
-webkit-text-emphasis: none;
}
.heti .heti-ruby--inline, #write .heti-ruby--inline {
display: inline-flex;
flex-direction: column-reverse;
height: 1.5em;
}
.heti .heti-ruby--inline rt, #write .heti-ruby--inline rt {
display: inline;
margin-bottom: -0.25em;
line-height: 1;
text-align: center;
}
.heti heti-spacing, #write heti-spacing {
display: inline;
}
.heti heti-spacing + sup, #write heti-spacing + sup,
.heti heti-spacing + sub,
#write heti-spacing + sub {
margin-inline-start: 0;
}
.heti .heti-spacing-start, #write .heti-spacing-start {
margin-inline-end: 0.25em;
}
.heti .heti-spacing-end, #write .heti-spacing-end {
margin-inline-start: 0.25em;
}
.heti heti-adjacent, #write heti-adjacent {
display: inline;
}
.heti .heti-adjacent-half, #write .heti-adjacent-half {
margin-inline-end: -0.5em;
}
.heti .heti-adjacent-quarter, #write .heti-adjacent-quarter {
margin-inline-end: -0.25em;
}

5
typora/heti.scss Normal file
View file

@ -0,0 +1,5 @@
@import "../lib/heti.scss";
#write {
@extend .heti;
}