diff --git a/typora/lapis-cv-slim.css b/typora/lapis-cv-slim.css new file mode 100644 index 0000000..1e5b7f1 --- /dev/null +++ b/typora/lapis-cv-slim.css @@ -0,0 +1,270 @@ +/* + * Typora Theme - LapisCV / Author - YiNN (BingyanStudio) + * https://github.com/BingyanStudio/LapisCV + */ + +/* Custom Config */ + +:root { + --text-size: 9.8pt; + --line-height: 1.8; + --avatar-width: 24mm; + + --text-color: #1f252e; + --primary-color: #4870ac; + --link-color: #4c91da; + --shadow-color: #dae3eac9; + --border-color: #dae3ea; + + --h1-size: 26pt; + --h2-size: 13pt; + --h3-size: 11pt; + + --text-font: 'SourceHanSansCN'; + --title-font: 'SourceHanSansCN'; + --link-font: 'JetBrainsMono'; + --code-font: 'JetBrainsMono'; +} + +@media print { + @page { + margin: 15mm 10mm 0 10mm; + } +} + +/* Font Face */ + +@font-face { + font-family: "JetBrainsMono"; + src: url('lapis-cv/JetBrainsMono-Regular.ttf'); +} + +@font-face { + font-family: "SourceHanSansCN"; + src: url('lapis-cv/SourceHanSansCN-Regular.otf'); +} + +@font-face { + font-family: "SourceHanSansCN"; + src: url('lapis-cv/SourceHanSansCN-Medium.otf'); + font-weight: bold; +} + +@font-face { + font-family: "LapisCV Icon"; + font-weight: normal; + src: url('lapis-cv/iconfont.ttf?t=1727014108932') format('truetype'); +} + +@font-face { + font-family: "LapisCV Icon"; + font-weight: bold; + src: url('lapis-cv/iconfont.ttf?t=1727014108932') format('truetype'); +} + +@font-face { + font-family: "Serif"; + src: url('lapis-cv/SourceHanSerifEN.otf'); +} + +@font-face { + font-family: "Serif"; + font-weight: bold; + src: url('lapis-cv/SourceHanSerifEN.otf'); +} + + +/* Global */ + +#write { + max-width: 224mm; + text-align: justify; + font-size: var(--text-size); + line-height: var(--line-height); + font-family: "LapisCV Icon", var(--text-font); +} + +@media screen { + #write { + box-shadow: 0 0 4mm 0 var(--shadow-color); + padding-left: 20mm; + padding-right: 20mm; + padding-top: 18mm; + } +} + +/* Title */ + +#write h1, +#write h2 { + font-family: "LapisCV Icon", "Serif", var(--title-font); +} + +#write h1 { + font-weight: normal; + font-size: var(--h1-size); + line-height: 1.5; + padding: 1mm 0 0 0; + margin: 1mm; +} + +#write h2 { + color: var(--primary-color); + font-size: var(--h2-size); + border-bottom: 1px solid #a2b6d4; + margin-top: 3mm; + margin-bottom: 2mm; + line-height: 1; + padding: 1.2mm 0; +} + +#write h3, +#write h4, +#write h5, +#write h6 { + color: black; + font-size: var(--h3-size); +} + +#write strong { + color: black; +} + +#write h3 a, +#write h4 a, +#write h5 a, +#write h6 a { + font-size: var(--h3-size) - 0.5pt; +} + +#write .md-math-block, +#write .md-rawblock, +#write h1, +#write h3, +#write h4, +#write h5, +#write h6, +#write blockquote, +#write p { + margin-top: 0; + margin-bottom: 0; +} + +@media print { + + h1, + h2, + h3, + h4, + h5, + h6 { + page-break-after: avoid; + } +} + + +/* List */ + +#write ul { + list-style-type: '\2022'; + padding-inline-start: 3mm; + padding-inline-end: 1mm; +} + +#write ol { + padding-inline-start: 5mm; + padding-inline-end: 1mm; +} + +#write ol li { + padding-left: 0; +} + +#write ol, +#write ul { + margin-block-start: 0; + margin-block-end: 0; + margin-inline-start: 0; + margin-inline-end: 0; +} + +#write li { + padding-left: 1.5mm; +} + +ul ::marker { + font-weight: bolder; +} + +ol ::marker { + font-weight: normal; +} + +/* Avatar */ + +#write img[alt="avatar"] { + display: block; + position: absolute; + z-index: 9999; + float: right; + object-fit: cover; + overflow: hidden; + + width: var(--avatar-width); + height: var(--avatar-width); + border-radius: 50%; + border: 2px solid var(--border-color); + box-shadow: 0 0 0 3mm var(--bg-color); +} + +#write p:has(img[alt="avatar"]) { + height: 0; + padding: 0; + margin: 0; + text-align: center; +} + +#write img[alt="avatar"] { + top: 0; + right: 1mm; +} + +/* Link */ + +#write a { + color: var(--primary-color); + text-decoration: none; +} + +/* Code */ + +#write code { + background-color: var(--bg-color); + font-family: var(--code-font); +} + +/* Block Quote */ + +#write blockquote { + line-height: 1.5; + padding: 0mm 1mm 2mm 1mm; +} + +#write blockquote a { + color: var(--text-color); +} + +/* Horizontal Line */ + +#write hr { + border-top: 2px solid var(--shadow-color); + margin: 15mm 0 12mm 0; +} + +@media print { + #write hr { + page-break-after: always; + margin: 0; + visibility: hidden; + } +} \ No newline at end of file diff --git a/typora/lapis-cv/SourceHanSansCN-Medium.otf b/typora/lapis-cv/SourceHanSansCN-Medium.otf new file mode 100644 index 0000000..630d546 Binary files /dev/null and b/typora/lapis-cv/SourceHanSansCN-Medium.otf differ diff --git a/typora/lapis-cv/SourceHanSerifEN.otf b/typora/lapis-cv/SourceHanSerifEN.otf new file mode 100644 index 0000000..b88ac82 Binary files /dev/null and b/typora/lapis-cv/SourceHanSerifEN.otf differ diff --git a/typora/lapis-cv/iconfont.ttf b/typora/lapis-cv/iconfont.ttf new file mode 100644 index 0000000..1ed368b Binary files /dev/null and b/typora/lapis-cv/iconfont.ttf differ diff --git a/typora/template.md b/typora/template.md index 43b3061..73eccda 100644 --- a/typora/template.md +++ b/typora/template.md @@ -1,53 +1,62 @@ -# 八爪猫 + -> 电话:`(123)456-7890` 邮箱:`octocat@github.com` +# 八 爪 猫 - +> `12345678901` `octocat@github.com` -## 基本信息 +## 基本信息 + +