SanYeCao-blog/src/styles/global.css

137 lines
2.4 KiB
CSS
Raw Normal View History

2026-03-24 19:32:44 +00:00
@font-face {
font-family: "Maple Mono";
src: url("/fonts/MapleMono-Regular.ttf.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
}
2026-03-24 22:28:23 +00:00
@font-face {
font-family: "Maple Mono";
src: url("/fonts/MapleMono-Italic.ttf.woff2") format("woff2");
font-weight: 400;
font-style: italic;
font-display: swap;
}
2026-03-24 19:32:44 +00:00
@font-face {
font-family: "Maple Mono";
src: url("/fonts/MapleMono-Bold.ttf.woff2") format("woff2");
font-weight: 700;
font-style: normal;
font-display: swap;
}
2026-03-24 22:28:23 +00:00
@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;
}
2026-03-25 09:01:09 +00:00
@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;
}
2026-03-24 17:33:01 +00:00
html {
2026-03-24 22:28:23 +00:00
font-family: "Maple Mono", "Maple Mono CN", monospace;
background-color: #ffffff;
color: #1f2328;
2026-03-24 17:33:01 +00:00
}
body {
margin: 0 auto;
width: 100%;
max-width: 80ch;
padding: 1rem;
2026-03-24 22:28:23 +00:00
line-height: 1.7;
2026-03-24 17:33:01 +00:00
}
* {
box-sizing: border-box;
}
h1 {
margin: 1rem 0;
2026-03-24 22:50:33 +00:00
font-size: 1.5rem;
2026-03-24 22:28:23 +00:00
line-height: 1.2;
}
2026-03-24 22:50:33 +00:00
2026-03-24 22:28:23 +00:00
a {
color: #7fb3ff;
font-weight: 700;
text-decoration: none;
}
a:hover,
a:focus {
text-decoration: underline;
2026-03-24 18:01:45 +00:00
}
html.dark {
2026-03-24 22:28:23 +00:00
background-color: #1e1e1e;
color: #e6e6e6;
2026-03-24 18:01:45 +00:00
}
.dark .menu {
2026-03-24 22:28:23 +00:00
background-color: #2a2a2a;
color: #e6e6e6;
}
.dark .nav-links a {
color: #9ecbff;
font-weight: 700;
2026-03-24 18:01:45 +00:00
}
.dark .nav-links a:hover,
.dark .nav-links a:focus {
2026-03-24 22:28:23 +00:00
color: #c2deff;
2026-03-24 18:01:45 +00:00
}
2026-03-24 22:28:23 +00:00
.dark a {
color: #9ecbff;
font-weight: 700;
2026-03-24 18:01:45 +00:00
}
2026-03-24 22:28:23 +00:00
.dark a:hover,
.dark a:focus {
color: #c2deff;
2026-03-24 17:33:01 +00:00
}