mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-blog.git
synced 2026-04-02 01:54:50 +00:00
166 lines
No EOL
2.8 KiB
CSS
166 lines
No EOL
2.8 KiB
CSS
@font-face {
|
|
font-family: "Maple Mono";
|
|
src: url("/fonts/MapleMono-Regular.ttf.woff2") format("woff2");
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Maple Mono";
|
|
src: url("/fonts/MapleMono-Italic.ttf.woff2") format("woff2");
|
|
font-weight: 400;
|
|
font-style: italic;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Maple Mono";
|
|
src: url("/fonts/MapleMono-Bold.ttf.woff2") format("woff2");
|
|
font-weight: 700;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Maple Mono CN";
|
|
src: url("/fonts/subset/MapleMono-CN-Regular.woff2") format("woff2");
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Maple Mono CN";
|
|
src: url("/fonts/subset/MapleMono-CN-Italic.woff2") format("woff2");
|
|
font-weight: 400;
|
|
font-style: italic;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Maple Mono CN";
|
|
src: url("/fonts/subset/MapleMono-CN-Bold.woff2") format("woff2");
|
|
font-weight: 700;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Recursive Mono";
|
|
src: url("/fonts/RecursiveMonoCslSt-Bold.woff2") format("woff2");
|
|
font-weight: 700;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Recursive Mono";
|
|
src: url("/fonts/RecursiveMonoCslSt-Regular.woff2") format("woff2");
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Recursive Mono";
|
|
src: url("/fonts/RecursiveMonoCslSt-Italic.woff2") format("woff2");
|
|
font-weight: 400;
|
|
font-style: italic;
|
|
font-display: swap;
|
|
}
|
|
|
|
pre {
|
|
padding: 1rem;
|
|
border-radius: 0.5rem;
|
|
overflow-x: auto;
|
|
line-height: 1.6;
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
code {
|
|
font-family: "Maple Mono", monospace;
|
|
font-size: 0.92rem;
|
|
}
|
|
|
|
/* 行内代码 */
|
|
p code,
|
|
li code,
|
|
blockquote code,
|
|
td code {
|
|
padding: 0.15em 0.4em;
|
|
border-radius: 0.25rem;
|
|
background: rgba(127, 127, 127, 0.12);
|
|
}
|
|
|
|
html {
|
|
font-family: "Maple Mono", "Maple Mono CN", monospace;
|
|
background-color: #ffffff;
|
|
color: #1f2328;
|
|
}
|
|
|
|
body {
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
max-width: 80ch;
|
|
padding: 1rem;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
h1 {
|
|
margin: 1rem 0;
|
|
font-size: 1.5rem;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
|
|
a {
|
|
color: #7fb3ff;
|
|
font-weight: 700;
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:hover,
|
|
a:focus {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
html.dark {
|
|
background-color: #1e1e1e;
|
|
color: #e6e6e6;
|
|
}
|
|
|
|
.dark .menu {
|
|
background-color: #2a2a2a;
|
|
color: #e6e6e6;
|
|
}
|
|
|
|
.dark .nav-links a {
|
|
color: #9ecbff;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.dark .nav-links a:hover,
|
|
.dark .nav-links a:focus {
|
|
color: #c2deff;
|
|
}
|
|
|
|
.dark a {
|
|
color: #9ecbff;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.dark a:hover,
|
|
.dark a:focus {
|
|
color: #c2deff;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
} |