Fix active menu on sidebar not getting highlighted in dark mode (#881)
Signed-off-by: Emruz Hossain <emruz.hossain@qdrant.com>
This commit is contained in:
parent
de1cee3951
commit
e8b0cfb32e
2 changed files with 15 additions and 2 deletions
|
@ -14,6 +14,7 @@ a {
|
||||||
text-decoration: none !important;
|
text-decoration: none !important;
|
||||||
color: get-light-color('text-color');
|
color: get-light-color('text-color');
|
||||||
@include transition();
|
@include transition();
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
display: inline;
|
display: inline;
|
||||||
color: get-light-color('accent-color');
|
color: get-light-color('accent-color');
|
||||||
|
@ -29,6 +30,7 @@ a {
|
||||||
a.header-anchor {
|
a.header-anchor {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: get-light-color('heading-color');
|
color: get-light-color('heading-color');
|
||||||
|
|
||||||
i,
|
i,
|
||||||
svg {
|
svg {
|
||||||
font-size: 10pt;
|
font-size: 10pt;
|
||||||
|
@ -36,12 +38,15 @@ a.header-anchor {
|
||||||
display: none;
|
display: none;
|
||||||
margin-left: 0.5rem;
|
margin-left: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|
||||||
i,
|
i,
|
||||||
svg {
|
svg {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
color: get-light-color('inline-code-color');
|
color: get-light-color('inline-code-color');
|
||||||
}
|
}
|
||||||
|
@ -54,26 +59,33 @@ a.header-anchor {
|
||||||
html[data-theme='dark'] {
|
html[data-theme='dark'] {
|
||||||
a {
|
a {
|
||||||
color: get-dark-color('accent-color');
|
color: get-dark-color('accent-color');
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
text-decoration: get-dark-color('hover-over-accent-color') underline;
|
text-decoration: get-dark-color('hover-over-accent-color') underline;
|
||||||
color: get-dark-color('hover-over-accent-color');
|
color: get-dark-color('hover-over-accent-color');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-link {
|
.list-link {
|
||||||
color: get-dark-color('text-color');
|
color: get-dark-color('text-color');
|
||||||
&:hover {
|
|
||||||
|
&:hover,
|
||||||
|
&.active {
|
||||||
color: get-dark-color('accent-color');
|
color: get-dark-color('accent-color');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a.header-anchor {
|
a.header-anchor {
|
||||||
color: get-dark-color('heading-color');
|
color: get-dark-color('heading-color');
|
||||||
|
|
||||||
i,
|
i,
|
||||||
svg {
|
svg {
|
||||||
color: get-dark-color('text-color');
|
color: get-dark-color('text-color');
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
color: get-dark-color('inline-code-color');
|
color: get-dark-color('inline-code-color');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -98,6 +98,7 @@ params:
|
||||||
# Enable and configure blog posts
|
# Enable and configure blog posts
|
||||||
blog:
|
blog:
|
||||||
enable: true
|
enable: true
|
||||||
|
showAuthor: true
|
||||||
# Share post on different social media
|
# Share post on different social media
|
||||||
shareButtons:
|
shareButtons:
|
||||||
facebook: true
|
facebook: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue