enhance:调整标题的样式。

This commit is contained in:
徐涛 2021-10-25 15:03:48 +08:00
parent a2b6019eae
commit 8523852cf0

View File

@ -6,6 +6,16 @@ body {
.main-content { .main-content {
min-height: calc(100vh - 80px - 72px - 32px); min-height: calc(100vh - 80px - 72px - 32px);
} }
h1,
h2,
h3,
h4,
h5,
h6 {
code {
font-size: inherit;
}
}
footer { footer {
height: 40px; height: 40px;
background-color: #ffffff; background-color: #ffffff;
@ -27,10 +37,11 @@ footer {
width: max-content; width: max-content;
word-break: keep-all; word-break: keep-all;
} }
.category-list, .category-list-child { .category-list,
.category-list-child {
padding-left: 8px; padding-left: 8px;
list-style-position: inside; list-style-position: inside;
list-style-type: '\25bc'; list-style-type: "\25bc";
.category-list-item { .category-list-item {
line-height: 1.7em; line-height: 1.7em;
.category-list-link { .category-list-link {
@ -48,11 +59,12 @@ footer {
} }
.category-list-child { .category-list-child {
padding-left: 16px; padding-left: 16px;
list-style-type: '\25b7'; list-style-type: "\25b7";
} }
} }
} }
.categories-toc-list, .categories-toc-list-child { .categories-toc-list,
.categories-toc-list-child {
list-style: none; list-style: none;
padding-left: 0; padding-left: 0;
.categories-toc-list-item { .categories-toc-list-item {
@ -101,7 +113,8 @@ footer {
} }
} }
} }
.toc, .toc-child { .toc,
.toc-child {
padding-left: 0; padding-left: 0;
list-style-type: none; list-style-type: none;
list-style-position: outside; list-style-position: outside;
@ -111,7 +124,8 @@ footer {
.toc-link { .toc-link {
text-decoration: none; text-decoration: none;
color: #000000; color: #000000;
&:link, &:visited { &:link,
&:visited {
color: #000000; color: #000000;
} }
&:hover { &:hover {
@ -125,7 +139,7 @@ footer {
.tagcloud { .tagcloud {
a { a {
text-decoration: none; text-decoration: none;
&[class*=tag-item] { &[class*="tag-item"] {
padding: 0 2px; padding: 0 2px;
break-inside: avoid; break-inside: avoid;
} }
@ -149,10 +163,15 @@ footer {
} }
} }
article { article {
img, video { img,
video {
margin-top: 8px; margin-top: 8px;
} }
h2, h3, h4, h5, h6 { h2,
h3,
h4,
h5,
h6 {
&[id]:target { &[id]:target {
position: relative; position: relative;
padding-top: 92px; padding-top: 92px;