2021-02-18 21:44:01 +01:00
|
|
|
@import "../_partial/_single/toc";
|
|
|
|
|
|
|
|
.single {
|
|
|
|
.single-title {
|
2021-02-18 22:21:36 +01:00
|
|
|
margin: 1rem 0 0.5rem;
|
2021-02-18 21:44:01 +01:00
|
|
|
font-size: 1.6rem;
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: 140%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.single-subtitle {
|
2021-02-18 22:21:36 +01:00
|
|
|
margin: 0.4rem 0;
|
2021-02-18 21:44:01 +01:00
|
|
|
font-size: 1.2rem;
|
|
|
|
font-weight: normal;
|
|
|
|
font-style: italic;
|
|
|
|
line-height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post-meta {
|
2021-02-18 22:21:36 +01:00
|
|
|
font-size: 0.875rem;
|
2021-02-18 21:44:01 +01:00
|
|
|
color: $global-font-secondary-color;
|
|
|
|
|
|
|
|
span {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
[theme="dark"] & {
|
2021-02-18 21:44:01 +01:00
|
|
|
color: $global-font-secondary-color-dark;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include link(false, true);
|
|
|
|
|
|
|
|
.author {
|
|
|
|
font-size: 1.05rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.featured-image {
|
2021-02-18 22:21:36 +01:00
|
|
|
margin: 0.5rem 0 1rem 0;
|
2021-02-18 21:44:01 +01:00
|
|
|
|
|
|
|
img {
|
|
|
|
display: block;
|
|
|
|
max-width: 100%;
|
|
|
|
height: auto;
|
|
|
|
margin: 0 auto;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
img.lazyloaded {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.content {
|
|
|
|
> h2 {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
|
|
|
|
& code {
|
|
|
|
font-size: 1.25rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> h3 {
|
|
|
|
font-size: 1.375rem;
|
|
|
|
|
|
|
|
& code {
|
|
|
|
font-size: 1.125rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> h4 {
|
|
|
|
font-size: 1.25rem;
|
|
|
|
|
|
|
|
& code {
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> h5 {
|
|
|
|
font-size: 1.125rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
> h6 {
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
font-weight: bold;
|
|
|
|
margin: 1.2rem 0;
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
[theme="dark"] & {
|
2021-02-18 21:44:01 +01:00
|
|
|
font-weight: bolder;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> h2,
|
|
|
|
> h3,
|
|
|
|
> h4,
|
|
|
|
> h5,
|
|
|
|
> h6 {
|
|
|
|
> .header-mark::before {
|
|
|
|
content: "|";
|
2021-02-18 22:21:36 +01:00
|
|
|
margin-right: 0.3125rem;
|
2021-02-18 21:44:01 +01:00
|
|
|
color: $single-link-color;
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
[theme="dark"] & {
|
2021-02-18 21:44:01 +01:00
|
|
|
color: $single-link-color-dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> h2 > .header-mark::before {
|
|
|
|
content: "#";
|
|
|
|
}
|
2021-08-29 11:48:16 +02:00
|
|
|
> h3 > .header-mark::before {
|
|
|
|
content: "##";
|
|
|
|
}
|
|
|
|
> h4 > .header-mark::before {
|
|
|
|
content: "###";
|
|
|
|
}
|
|
|
|
> h5 > .header-mark::before {
|
|
|
|
content: "####";
|
|
|
|
}
|
2021-02-18 21:44:01 +01:00
|
|
|
p {
|
2021-02-18 22:21:36 +01:00
|
|
|
margin: 0.5rem 0;
|
2021-02-18 21:44:01 +01:00
|
|
|
}
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
b,
|
|
|
|
strong {
|
2021-02-18 21:44:01 +01:00
|
|
|
font-weight: bold;
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
[theme="dark"] & {
|
2021-02-18 21:44:01 +01:00
|
|
|
color: #ddd;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include link(false, false);
|
|
|
|
|
|
|
|
a {
|
|
|
|
@include overflow-wrap(break-word);
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
[theme="dark"] & b,
|
|
|
|
[theme="dark"] & strong {
|
2021-02-18 21:44:01 +01:00
|
|
|
color: $single-link-color-dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
[theme="dark"] a:hover b,
|
|
|
|
[theme="dark"] a:hover strong {
|
2021-02-18 21:44:01 +01:00
|
|
|
color: $single-link-hover-color-dark;
|
|
|
|
}
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
ul,
|
|
|
|
ol {
|
|
|
|
margin: 0.5rem 0;
|
2021-02-18 21:44:01 +01:00
|
|
|
padding-left: 2.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
list-style-type: disc;
|
|
|
|
}
|
|
|
|
|
|
|
|
ruby {
|
|
|
|
background: $code-background-color;
|
|
|
|
|
|
|
|
rt {
|
|
|
|
color: $global-font-secondary-color;
|
|
|
|
}
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
[theme="dark"] & {
|
2021-02-18 21:44:01 +01:00
|
|
|
background: $code-background-color-dark;
|
|
|
|
|
|
|
|
rt {
|
|
|
|
color: $global-font-secondary-color-dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.table-wrapper {
|
|
|
|
overflow-x: auto;
|
|
|
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
background-color: $table-background-color;
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
[theme="dark"] & {
|
2021-02-18 21:44:01 +01:00
|
|
|
background-color: $table-background-color-dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> table {
|
|
|
|
width: 100%;
|
|
|
|
max-width: 100%;
|
2021-02-18 22:21:36 +01:00
|
|
|
margin: 0.625rem 0;
|
2021-02-18 21:44:01 +01:00
|
|
|
border-spacing: 0;
|
|
|
|
background: $table-background-color;
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
[theme="dark"] & {
|
2021-02-18 21:44:01 +01:00
|
|
|
background: $table-background-color-dark;
|
|
|
|
}
|
|
|
|
|
|
|
|
thead {
|
|
|
|
background: $table-thead-color;
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
[theme="dark"] & {
|
2021-02-18 21:44:01 +01:00
|
|
|
background-color: $table-thead-color-dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
th,
|
|
|
|
td {
|
|
|
|
padding: 0.3rem 1rem;
|
2021-02-18 21:44:01 +01:00
|
|
|
border: 1px solid darken($table-thead-color, 2%);
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
[theme="dark"] & {
|
2021-02-18 21:44:01 +01:00
|
|
|
border-color: darken($table-thead-color-dark, 2%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
min-height: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
figure {
|
2021-02-18 22:21:36 +01:00
|
|
|
margin: 0.5rem;
|
2021-02-18 21:44:01 +01:00
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
.image-caption:not(:empty) {
|
|
|
|
min-width: 20%;
|
|
|
|
max-width: 80%;
|
|
|
|
display: inline-block;
|
2021-02-18 22:21:36 +01:00
|
|
|
padding: 0.5rem;
|
2021-02-18 21:44:01 +01:00
|
|
|
margin: 0 auto;
|
2021-02-18 22:21:36 +01:00
|
|
|
font-size: 0.875rem;
|
2021-02-18 21:44:01 +01:00
|
|
|
color: #969696;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
display: block;
|
|
|
|
height: auto;
|
|
|
|
margin: 0 auto;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.lazyloading {
|
|
|
|
@include object-fit(none);
|
|
|
|
}
|
|
|
|
|
|
|
|
blockquote {
|
|
|
|
display: block;
|
2021-02-18 22:21:36 +01:00
|
|
|
border-left: 0.5rem solid $blockquote-color;
|
|
|
|
background-color: rgba($blockquote-color, 0.2);
|
|
|
|
padding: 0.25rem 0.75rem;
|
2021-02-18 21:44:01 +01:00
|
|
|
margin: 1rem 0;
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
[theme="dark"] & {
|
2021-02-18 21:44:01 +01:00
|
|
|
border-left-color: $blockquote-color-dark;
|
2021-02-18 22:21:36 +01:00
|
|
|
background-color: rgba($blockquote-color-dark, 0.2);
|
2021-02-18 21:44:01 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.footnotes {
|
|
|
|
color: $global-font-secondary-color;
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
[theme="dark"] & {
|
2021-02-18 21:44:01 +01:00
|
|
|
color: $global-font-secondary-color-dark;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
2021-02-18 22:21:36 +01:00
|
|
|
margin: 0.25rem 0;
|
2021-02-18 21:44:01 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@import "../_partial/_single/code";
|
|
|
|
@import "../_partial/_single/instagram";
|
|
|
|
@import "../_partial/_single/admonition";
|
|
|
|
@import "../_partial/_single/echarts";
|
|
|
|
@import "../_partial/_single/mapbox";
|
|
|
|
@import "../_partial/_single/music";
|
|
|
|
@import "../_partial/_single/bilibili";
|
2021-08-29 11:48:16 +02:00
|
|
|
@import "../_partial/_single/katex";
|
2021-02-18 21:44:01 +01:00
|
|
|
|
|
|
|
hr {
|
|
|
|
margin: 1rem 0;
|
|
|
|
position: relative;
|
|
|
|
border-top: 1px dashed $global-border-color;
|
|
|
|
border-bottom: none;
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
[theme="dark"] & {
|
2021-02-18 21:44:01 +01:00
|
|
|
border-top: 1px dashed $global-border-color-dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
kbd {
|
|
|
|
display: inline-block;
|
2021-02-18 22:21:36 +01:00
|
|
|
padding: 0.25rem;
|
2021-02-18 21:44:01 +01:00
|
|
|
background-color: $global-background-color;
|
|
|
|
border: 1px solid $global-border-color;
|
|
|
|
border-bottom-color: $global-border-color;
|
|
|
|
@include border-radius(3px);
|
|
|
|
@include box-shadow(inset 0 -1px 0 $global-border-color);
|
2021-02-18 22:21:36 +01:00
|
|
|
font-size: 0.8rem;
|
2021-02-18 21:44:01 +01:00
|
|
|
font-family: $code-font-family;
|
|
|
|
color: $code-color;
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
[theme="dark"] & {
|
2021-02-18 21:44:01 +01:00
|
|
|
background-color: $global-background-color-dark;
|
|
|
|
border: 1px solid $global-border-color-dark;
|
|
|
|
border-bottom-color: $global-border-color-dark;
|
|
|
|
@include box-shadow(inset 0 -1px 0 $global-border-color-dark);
|
|
|
|
color: $code-color-dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.typeit {
|
|
|
|
.code {
|
2021-02-18 22:21:36 +01:00
|
|
|
padding: 0.375rem;
|
|
|
|
font-size: 0.875rem;
|
2021-02-18 21:44:01 +01:00
|
|
|
font-family: $code-font-family;
|
|
|
|
font-weight: bold;
|
|
|
|
word-break: break-all;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.version {
|
|
|
|
height: 1.25em;
|
|
|
|
vertical-align: text-bottom;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@import "../_partial/_single/footer";
|
|
|
|
@import "../_partial/_single/comment";
|
|
|
|
}
|
|
|
|
|
|
|
|
.lg-toolbar .lg-icon::after {
|
|
|
|
color: #999;
|
|
|
|
}
|