chore(partials): refactor partials

This commit is contained in:
Dillon
2020-02-21 23:42:35 +08:00
parent 611518ddd1
commit 4e6fe224cc
27 changed files with 554 additions and 534 deletions

View File

@@ -54,7 +54,6 @@
@import "../_partial/_single/toc";
.content {
h1,
h2,
h3,
h4,
@@ -66,22 +65,7 @@
.dark-theme & {
font-weight: bolder;
}
}
h2 > a:first-child::before {
content: "#";
margin-right: .3125rem;
color: $single-link-color;
.dark-theme & {
color: $single-link-color-dark;
}
}
h3,
h4,
h5,
h6 {
& > a:first-child::before {
content: "|";
margin-right: .3125rem;
@@ -93,6 +77,10 @@
}
}
h2 > a:first-child::before {
content: "#";
}
p {
font-size: 1rem;
margin: .5rem 0;

View File

@@ -59,31 +59,47 @@
overflow: hidden;
text-overflow: ellipsis;
overflow-wrap: break-word;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
font-size: 1rem;
display: inline;
h2,
h3,
h4,
h5,
h6,
p {
font-size: 1rem;
display: inline;
&::after {
content: "\A";
white-space: pre;
&::after {
content: "\A";
white-space: pre;
}
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
line-height: 2;
h2,
h3,
h4,
h5,
h6 {
line-height: 2;
&::before {
content: "|";
margin-right: .3125rem;
color: $single-link-color;
.dark-theme & {
color: $single-link-color-dark;
}
}
}
h2 {
font-size: 1.2rem;
&::before {
content: "#";
}
}
}
.post-footer {

View File

@@ -14,6 +14,10 @@
font-weight: 700;
}
.admonition-content {
margin: .5rem 0;
}
i.icon {
font-size: 16px;
color: map-get($admonition-color-map, 'note');