chore: update docs and style (#269)

This commit is contained in:
Dillon
2020-04-28 01:38:22 +08:00
committed by GitHub
parent b46c81053f
commit 6805d695f6
69 changed files with 540 additions and 454 deletions

View File

@@ -19,7 +19,7 @@
margin-right: .5rem;
color: $single-link-color;
.dark & {
[theme=dark] & {
color: $single-link-color-dark;
}
}
@@ -37,7 +37,7 @@
color: $global-font-secondary-color;
}
.dark & {
[theme=dark] & {
background: $code-background-color-dark;
rt {
@@ -60,8 +60,8 @@
@include blur;
.dark & {
border-left: 1px solid $global-border-color-dark;
[theme=dark] & {
border-left-color: $global-border-color-dark;
}
.toc-title {
@@ -91,14 +91,14 @@
font-weight: bold;
color: $single-link-color;
.dark & {
[theme=dark] & {
color: $single-link-color-dark;
}
&::before {
color: $single-link-hover-color;
.dark & {
[theme=dark] & {
color: $single-link-hover-color-dark;
}
}
@@ -115,18 +115,10 @@
justify-content: space-between;
line-height: 2em;
padding: 0 .75rem;
background: darken($code-background-color, 3%);
background: darken($code-background-color, 6%);
.dark & {
background: darken($code-background-color-dark, 3%);
}
&:hover {
background: darken($code-background-color, 6%);
.dark & {
background: darken($code-background-color-dark, 5%);
}
[theme=dark] & {
background: darken($code-background-color-dark, 6%);
}
}
@@ -138,8 +130,18 @@
padding: .4rem 1rem .4rem 1.8rem;
}
.dark & {
[theme=dark] & {
background-color: $code-background-color-dark;
}
}
&.open {
.toc-title {
background: darken($code-background-color, 3%);
[theme=dark] & {
background: darken($code-background-color-dark, 3%);
}
}
}
}