Compare commits

...

2 Commits

Author SHA1 Message Date
xy
3595435078 style: text-shadow替代加粗 2026-08-28 22:29:33 +08:00
xy
c7e51af0e0 style: 调整移动端样式 2026-08-28 22:20:35 +08:00
3 changed files with 12 additions and 4 deletions

View File

@@ -58,13 +58,17 @@ const lowLevel = Math.min(...toc.map((v) => v.level));
.toc-item:hover { .toc-item:hover {
color: var(--text-title-hover); color: var(--text-title-hover);
font-weight: bold; text-shadow:
0.3px 0 0 currentColor,
-0.3px 0 0 currentColor;
} }
.toc-item.is-active { .toc-item.is-active {
position: relative; position: relative;
color: var(--text-title-hover); color: var(--text-title-hover);
font-weight: bold; text-shadow:
0.3px 0 0 currentColor,
-0.3px 0 0 currentColor;
} }
.toc-item.is-active::before { .toc-item.is-active::before {
@@ -80,7 +84,7 @@ const lowLevel = Math.min(...toc.map((v) => v.level));
} }
@media (max-width: 1250px) { @media (max-width: 1250px) {
.toc-mount{ .toc-mount {
display: none; display: none;
} }
} }

View File

@@ -36,5 +36,9 @@ import PageFooter from "./PageFooter.astro";
.container { .container {
padding: 16px; padding: 16px;
} }
main{
padding-bottom: 0;
}
} }
</style> </style>

View File

@@ -46,7 +46,7 @@ const { siteTitle, git } = siteConfig;
@media (max-width: 640px) { @media (max-width: 640px) {
header { header {
margin-top: 12px; padding-top: 12px;
margin-bottom: 0; margin-bottom: 0;
} }