2020-04-15 09:46:50 +02:00
|
|
|
@import "../_partial/_single/toc";
|
|
|
|
|
2020-02-13 18:30:33 +01:00
|
|
|
.single {
|
|
|
|
.single-title {
|
2022-05-04 21:30:13 +02:00
|
|
|
margin: 2rem 0 .5rem;
|
2020-03-10 13:33:37 +01:00
|
|
|
font-size: 1.6rem;
|
2020-04-25 21:25:10 +02:00
|
|
|
font-weight: bold;
|
2020-03-10 13:33:37 +01:00
|
|
|
line-height: 140%;
|
2019-08-11 19:36:19 +02:00
|
|
|
}
|
|
|
|
|
2020-03-16 09:14:37 +01:00
|
|
|
.single-subtitle {
|
2022-05-04 21:30:13 +02:00
|
|
|
margin: .5rem 0;
|
2020-03-16 09:14:37 +01:00
|
|
|
font-size: 1.2rem;
|
|
|
|
font-weight: normal;
|
|
|
|
line-height: 100%;
|
|
|
|
}
|
|
|
|
|
2020-02-21 05:49:55 +01:00
|
|
|
.post-meta {
|
|
|
|
font-size: .875rem;
|
2020-02-13 06:30:58 +01:00
|
|
|
color: $global-font-secondary-color;
|
2019-08-11 19:36:19 +02:00
|
|
|
|
2020-02-13 06:30:58 +01:00
|
|
|
span {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2019-08-16 21:40:34 +02:00
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
2020-02-13 06:30:58 +01:00
|
|
|
color: $global-font-secondary-color-dark;
|
2019-08-11 19:36:19 +02:00
|
|
|
}
|
|
|
|
|
2020-03-17 14:16:04 +01:00
|
|
|
@include link(false, true);
|
2019-08-24 13:32:41 +02:00
|
|
|
|
2020-02-13 06:30:58 +01:00
|
|
|
.author {
|
|
|
|
font-size: 1.05rem;
|
|
|
|
}
|
2019-08-24 13:32:41 +02:00
|
|
|
}
|
2019-08-22 20:01:22 +02:00
|
|
|
|
2020-02-13 18:30:33 +01:00
|
|
|
.featured-image {
|
2020-04-25 21:25:10 +02:00
|
|
|
margin: .5rem 0 1rem 0;
|
2019-08-19 21:01:15 +02:00
|
|
|
|
2020-02-13 06:30:58 +01:00
|
|
|
img {
|
|
|
|
display: block;
|
2020-05-28 11:05:37 +02:00
|
|
|
max-width: 100%;
|
2020-02-13 06:30:58 +01:00
|
|
|
height: auto;
|
|
|
|
margin: 0 auto;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2020-05-28 11:05:37 +02:00
|
|
|
|
|
|
|
img.lazyloaded {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2019-08-21 19:22:33 +02:00
|
|
|
}
|
|
|
|
|
2020-02-13 18:30:33 +01:00
|
|
|
.content {
|
2020-03-19 05:35:37 +01:00
|
|
|
> 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;
|
|
|
|
}
|
|
|
|
|
2020-02-13 06:30:58 +01:00
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
font-weight: bold;
|
2020-02-15 20:03:18 +01:00
|
|
|
margin: 1.2rem 0;
|
2019-08-11 19:36:19 +02:00
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
2020-02-13 06:30:58 +01:00
|
|
|
font-weight: bolder;
|
|
|
|
}
|
2020-03-21 09:59:23 +01:00
|
|
|
}
|
2019-08-11 19:36:19 +02:00
|
|
|
|
2020-03-21 09:59:23 +01:00
|
|
|
> h2,
|
|
|
|
> h3,
|
|
|
|
> h4,
|
|
|
|
> h5,
|
|
|
|
> h6 {
|
|
|
|
> .header-mark::before {
|
2020-02-15 20:03:18 +01:00
|
|
|
content: "|";
|
|
|
|
margin-right: .3125rem;
|
|
|
|
color: $single-link-color;
|
2019-08-24 13:32:41 +02:00
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
2020-02-15 20:03:18 +01:00
|
|
|
color: $single-link-color-dark;
|
|
|
|
}
|
2020-02-13 06:30:58 +01:00
|
|
|
}
|
|
|
|
}
|
2019-08-11 19:36:19 +02:00
|
|
|
|
2020-03-21 09:59:23 +01:00
|
|
|
> h2 > .header-mark::before {
|
2020-02-21 16:42:35 +01:00
|
|
|
content: "#";
|
|
|
|
}
|
|
|
|
|
2020-02-13 06:30:58 +01:00
|
|
|
p {
|
|
|
|
margin: .5rem 0;
|
2019-08-11 19:36:19 +02:00
|
|
|
}
|
|
|
|
|
2020-03-14 17:56:57 +01:00
|
|
|
b, strong {
|
|
|
|
font-weight: bold;
|
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
2020-03-14 17:56:57 +01:00
|
|
|
color: #ddd;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-17 14:16:04 +01:00
|
|
|
@include link(false, false);
|
|
|
|
|
2020-02-13 06:30:58 +01:00
|
|
|
a {
|
2020-04-28 20:41:07 +02:00
|
|
|
@include overflow-wrap(break-word);
|
2019-08-11 19:36:19 +02:00
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & b, [theme=dark] & strong {
|
2020-02-13 18:30:33 +01:00
|
|
|
color: $single-link-color-dark;
|
2020-02-13 06:30:58 +01:00
|
|
|
}
|
2019-08-18 19:36:52 +02:00
|
|
|
}
|
2019-08-17 17:16:09 +02:00
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] a:hover b, [theme=dark] a:hover strong {
|
2020-03-17 14:16:04 +01:00
|
|
|
color: $single-link-hover-color-dark;
|
2020-02-13 06:30:58 +01:00
|
|
|
}
|
2019-08-19 07:26:39 +02:00
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
ul, ol {
|
2020-03-21 09:59:23 +01:00
|
|
|
margin: .5rem 0;
|
2020-04-27 19:38:22 +02:00
|
|
|
padding-left: 2.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
2020-02-13 06:30:58 +01:00
|
|
|
list-style-type: disc;
|
2019-08-19 07:26:39 +02:00
|
|
|
}
|
|
|
|
|
2020-02-13 06:30:58 +01:00
|
|
|
ruby {
|
|
|
|
background: $code-background-color;
|
2019-08-19 07:26:39 +02:00
|
|
|
|
|
|
|
rt {
|
2020-02-13 06:30:58 +01:00
|
|
|
color: $global-font-secondary-color;
|
2019-08-19 07:26:39 +02:00
|
|
|
}
|
2020-02-01 12:47:58 +01:00
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
2020-02-13 06:30:58 +01:00
|
|
|
background: $code-background-color-dark;
|
|
|
|
|
|
|
|
rt {
|
|
|
|
color: $global-font-secondary-color-dark;
|
|
|
|
}
|
2020-02-01 12:47:58 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-13 06:30:58 +01:00
|
|
|
.table-wrapper {
|
|
|
|
overflow-x: auto;
|
2019-08-17 17:16:09 +02:00
|
|
|
|
2020-02-13 06:30:58 +01:00
|
|
|
&::-webkit-scrollbar {
|
|
|
|
background-color: $table-background-color;
|
2019-08-17 17:16:09 +02:00
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
2020-02-13 06:30:58 +01:00
|
|
|
background-color: $table-background-color-dark;
|
2019-08-17 17:16:09 +02:00
|
|
|
}
|
2019-08-11 19:36:19 +02:00
|
|
|
}
|
|
|
|
|
2020-02-13 06:30:58 +01:00
|
|
|
> table {
|
|
|
|
width: 100%;
|
|
|
|
max-width: 100%;
|
|
|
|
margin: .625rem 0;
|
|
|
|
border-spacing: 0;
|
|
|
|
background: $table-background-color;
|
2020-03-14 10:29:39 +01:00
|
|
|
border-collapse: collapse;
|
2019-08-11 19:36:19 +02:00
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
2020-02-13 06:30:58 +01:00
|
|
|
background: $table-background-color-dark;
|
2019-08-18 19:36:52 +02:00
|
|
|
}
|
2019-08-11 19:36:19 +02:00
|
|
|
|
2020-02-13 06:30:58 +01:00
|
|
|
thead {
|
|
|
|
background: $table-thead-color;
|
2019-08-11 19:36:19 +02:00
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
2020-02-13 06:30:58 +01:00
|
|
|
background-color: $table-thead-color-dark;
|
|
|
|
}
|
|
|
|
}
|
2019-08-11 19:36:19 +02:00
|
|
|
|
2020-02-13 06:30:58 +01:00
|
|
|
th, td {
|
|
|
|
padding: .3rem 1rem;
|
2020-04-25 21:25:10 +02:00
|
|
|
border: 1px solid darken($table-thead-color, 2%);
|
2019-08-16 21:40:34 +02:00
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
2020-04-25 21:25:10 +02:00
|
|
|
border-color: darken($table-thead-color-dark, 2%);
|
2020-02-13 06:30:58 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-09 14:30:08 +01:00
|
|
|
img {
|
2020-03-09 15:19:14 +01:00
|
|
|
max-width: 100%;
|
2020-04-26 17:00:29 +02:00
|
|
|
min-height: 1em;
|
2020-03-09 14:30:08 +01:00
|
|
|
}
|
|
|
|
|
2020-02-13 06:30:58 +01:00
|
|
|
figure {
|
2020-04-29 14:42:55 +02:00
|
|
|
margin: .5rem;
|
2019-08-18 19:36:52 +02:00
|
|
|
text-align: center;
|
2019-08-16 21:40:34 +02:00
|
|
|
|
2020-02-24 10:00:39 +01:00
|
|
|
.image-caption:not(:empty) {
|
|
|
|
min-width: 20%;
|
|
|
|
max-width: 80%;
|
|
|
|
display: inline-block;
|
2020-03-14 07:42:12 +01:00
|
|
|
padding: .5rem;
|
2020-02-24 10:00:39 +01:00
|
|
|
margin: 0 auto;
|
|
|
|
font-size: .875rem;
|
|
|
|
color: #969696;
|
|
|
|
}
|
|
|
|
|
2020-03-08 14:02:21 +01:00
|
|
|
img {
|
|
|
|
display: block;
|
2022-05-12 20:01:35 +02:00
|
|
|
width: 100%;
|
2020-03-08 14:02:21 +01:00
|
|
|
height: auto;
|
|
|
|
margin: 0 auto;
|
|
|
|
overflow: hidden;
|
2020-02-24 10:00:39 +01:00
|
|
|
}
|
2019-08-18 19:36:52 +02:00
|
|
|
}
|
2019-08-19 15:14:15 +02:00
|
|
|
|
2020-02-13 06:30:58 +01:00
|
|
|
blockquote {
|
|
|
|
display: block;
|
2020-04-24 20:05:43 +02:00
|
|
|
border-left: .5rem solid $blockquote-color;
|
|
|
|
background-color: rgba($blockquote-color, .2);
|
|
|
|
padding: .25rem .75rem;
|
|
|
|
margin: 1rem 0;
|
2020-01-31 11:46:28 +01:00
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
2020-04-24 20:05:43 +02:00
|
|
|
border-left-color: $blockquote-color-dark;
|
|
|
|
background-color: rgba($blockquote-color-dark, .2);
|
2020-02-13 06:30:58 +01:00
|
|
|
}
|
2020-01-31 11:46:28 +01:00
|
|
|
}
|
|
|
|
|
2020-02-13 06:30:58 +01:00
|
|
|
.footnotes {
|
|
|
|
color: $global-font-secondary-color;
|
2019-08-17 17:16:09 +02:00
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
2020-02-13 06:30:58 +01:00
|
|
|
color: $global-font-secondary-color-dark;
|
|
|
|
}
|
2020-03-21 09:59:23 +01:00
|
|
|
|
|
|
|
p {
|
|
|
|
margin: .25rem 0;
|
|
|
|
}
|
2020-02-13 06:30:58 +01:00
|
|
|
}
|
2019-11-23 18:10:17 +01:00
|
|
|
|
2020-02-13 18:30:33 +01:00
|
|
|
@import "../_partial/_single/code";
|
2020-03-14 13:33:12 +01:00
|
|
|
@import "../_partial/_single/instagram";
|
2020-02-13 18:30:33 +01:00
|
|
|
@import "../_partial/_single/admonition";
|
2020-03-14 13:33:12 +01:00
|
|
|
@import "../_partial/_single/echarts";
|
2020-03-21 09:59:23 +01:00
|
|
|
@import "../_partial/_single/mapbox";
|
|
|
|
@import "../_partial/_single/music";
|
2020-03-14 13:33:12 +01:00
|
|
|
@import "../_partial/_single/bilibili";
|
2019-08-17 17:16:09 +02:00
|
|
|
|
2020-02-13 06:30:58 +01:00
|
|
|
hr {
|
|
|
|
margin: 1rem 0;
|
|
|
|
position: relative;
|
|
|
|
border-top: 1px dashed $global-border-color;
|
|
|
|
border-bottom: none;
|
2019-08-17 17:16:09 +02:00
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
2020-02-13 06:30:58 +01:00
|
|
|
border-top: 1px dashed $global-border-color-dark;
|
|
|
|
}
|
2019-08-17 17:16:09 +02:00
|
|
|
}
|
|
|
|
|
2020-02-13 06:30:58 +01:00
|
|
|
kbd {
|
|
|
|
display: inline-block;
|
|
|
|
padding: .25rem;
|
|
|
|
background-color: $global-background-color;
|
|
|
|
border: 1px solid $global-border-color;
|
|
|
|
border-bottom-color: $global-border-color;
|
2020-04-15 09:46:50 +02:00
|
|
|
@include border-radius(3px);
|
|
|
|
@include box-shadow(inset 0 -1px 0 $global-border-color);
|
2020-02-13 06:30:58 +01:00
|
|
|
font-size: .8rem;
|
2022-05-15 17:41:35 +02:00
|
|
|
font-family: var(--code-font-family);
|
2020-02-13 06:30:58 +01:00
|
|
|
color: $code-color;
|
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
2020-02-13 06:30:58 +01:00
|
|
|
background-color: $global-background-color-dark;
|
|
|
|
border: 1px solid $global-border-color-dark;
|
|
|
|
border-bottom-color: $global-border-color-dark;
|
2020-04-15 09:46:50 +02:00
|
|
|
@include box-shadow(inset 0 -1px 0 $global-border-color-dark);
|
2020-02-13 06:30:58 +01:00
|
|
|
color: $code-color-dark;
|
|
|
|
}
|
2019-08-11 19:36:19 +02:00
|
|
|
}
|
|
|
|
|
2020-04-23 10:49:30 +02:00
|
|
|
.version {
|
|
|
|
height: 1.25em;
|
2020-04-27 19:38:22 +02:00
|
|
|
vertical-align: text-bottom;
|
2020-03-16 14:35:16 +01:00
|
|
|
}
|
2022-06-05 17:34:47 +02:00
|
|
|
|
|
|
|
.person-mention.h-card {
|
|
|
|
display: inline-block;
|
|
|
|
img {
|
|
|
|
vertical-align: -12%;
|
|
|
|
max-height: 1.1em;
|
|
|
|
margin-right: 0ex;
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
}
|
2020-02-13 06:30:58 +01:00
|
|
|
}
|
2019-08-11 19:36:19 +02:00
|
|
|
|
2020-02-13 18:30:33 +01:00
|
|
|
@import "../_partial/_single/footer";
|
|
|
|
@import "../_partial/_single/comment";
|
2020-02-13 06:30:58 +01:00
|
|
|
}
|
2020-05-28 11:05:37 +02:00
|
|
|
|
2022-05-10 21:21:03 +02:00
|
|
|
.typeit {
|
|
|
|
.highlight {
|
|
|
|
padding: .375rem;
|
|
|
|
font-size: .875rem;
|
2022-05-15 17:41:35 +02:00
|
|
|
font-family: var(--code-font-family);
|
2022-05-10 21:21:03 +02:00
|
|
|
font-weight: bold;
|
|
|
|
word-break: break-all;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
|
|
|
|
2022-05-15 09:15:38 +02:00
|
|
|
--ti-cursor-font-family: var(--global-font-family);
|
|
|
|
--ti-cursor-font-size: var(--global-font-size);
|
|
|
|
--ti-cursor-font-weight: var(--global-font-weight);
|
|
|
|
--ti-cursor-line-height: var(--global-line-height);
|
2022-05-10 21:21:03 +02:00
|
|
|
--ti-cursor-color: $global-font-secondary-color;
|
|
|
|
--ti-cursor-margin-left: 0;
|
|
|
|
|
|
|
|
[theme=dark] & {
|
|
|
|
--ti-cursor-color: $global-font-secondary-color-dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-28 11:05:37 +02:00
|
|
|
.lg-toolbar .lg-icon::after {
|
|
|
|
color: #999;
|
|
|
|
}
|