mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-blog.git
synced 2026-10-25 21:43:53 +00:00
159 lines
No EOL
2.7 KiB
CSS
159 lines
No EOL
2.7 KiB
CSS
@import url("https://unpkg.com/@fontsource/maple-mono@5.2.6/400.css");
|
|
@import url("https://unpkg.com/@fontsource/maple-mono@5.2.6/400-italic.css");
|
|
@import url("https://unpkg.com/@fontsource/maple-mono@5.2.6/700.css");
|
|
@import "./latest-comments.css";
|
|
@import "./variables.css";
|
|
@import "./dialog.css";
|
|
@import "./posts.css";
|
|
@import "./code.css";
|
|
|
|
|
|
article svg.flowchart,
|
|
article svg[class*="flowchart"],
|
|
article svg[id^="mermaid-"] {
|
|
display: block;
|
|
margin: 1.5rem auto;
|
|
}
|
|
|
|
html {
|
|
/* font-family: "Maple Mono", "Maple Mono CN", monospace; */
|
|
font-family:
|
|
"Noto Serif SC",
|
|
"Source Han Serif SC",
|
|
"Songti SC",
|
|
"STSong",
|
|
"SimSun",
|
|
serif;
|
|
font-weight: 500;
|
|
/* background-color: #ffffff; */
|
|
background-color: var(--background-color);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
html {
|
|
scrollbar-gutter: stable;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: #828282 transparent;
|
|
}
|
|
|
|
body {
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
max-width: 90ch;
|
|
padding: 1rem;
|
|
line-height: 1.7;
|
|
font-size: 1.15rem;
|
|
}
|
|
|
|
.page-content,
|
|
.page-shell {
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
|
|
.page-shell {
|
|
max-width: var(--page-content-width);
|
|
margin-inline: auto;
|
|
}
|
|
|
|
body::after {
|
|
content: "";
|
|
position: fixed;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: clamp(300px, 31vw, 400px);
|
|
height: clamp(300px, 31vw, 400px);
|
|
background-image: url("https://files.seeusercontent.com/2026/04/16/1sXb/touhou___kirisame_marisa__2__by_.webp");
|
|
background-repeat: no-repeat;
|
|
background-position: right bottom;
|
|
background-size: contain;
|
|
opacity: 0.3;
|
|
-webkit-mask-image: radial-gradient(ellipse at right bottom,
|
|
#000 0%,
|
|
#000 38%,
|
|
transparent 78%);
|
|
mask-image: radial-gradient(ellipse at right bottom,
|
|
#000 0%,
|
|
#000 38%,
|
|
transparent 78%);
|
|
pointer-events: none;
|
|
z-index: -1;
|
|
transition: opacity 0.25s ease;
|
|
}
|
|
|
|
html.dark body::after {
|
|
background-image: url("https://files.seeusercontent.com/2026/03/30/vd8W/touhou___alice_margatroid_x_kiri.webp");
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
body::after {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 700px) {
|
|
code {
|
|
font-size: 0.92rem;
|
|
}
|
|
|
|
body {
|
|
font-size: 1rem;
|
|
}
|
|
}
|
|
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
h1 {
|
|
margin: 1rem 0;
|
|
font-size: 1.5rem;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
|
|
a {
|
|
color: var(--url-color);
|
|
font-weight: inherit;
|
|
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;
|
|
}
|
|
|
|
.dark .nav-links a:hover,
|
|
.dark .nav-links a:focus {
|
|
color: #c2deff;
|
|
}
|
|
|
|
.dark a {
|
|
color: #9ecbff;
|
|
}
|
|
|
|
.dark a:hover,
|
|
.dark a:focus {
|
|
color: #c2deff;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
} |