Skip to content

Commit

Permalink
docs: enhance css style
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHieu01 committed Mar 9, 2024
1 parent 6359364 commit 086f8b2
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions docs/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,45 @@
}

/* For dark theme */
[data-theme="dark"] .DocSearch {
[data-theme='dark'] .DocSearch {
--docsearch-hit-active-color: #090a11; /* Keep the color unchanged */
}

/* Sidebar styles */
.head_Menu div {
/* Sidebar styles based on Docusaurus light theme */
[data-theme='light'] .head_Menu div {
font-weight: bold;
background-color: whitesmoke;
background-color: var(--ifm-background-color);
margin-left: 0.7rem;
font-size: larger;
color: var(--ifm-font-color-base);
}

.head_Menu li {
[data-theme='light'] .head_Menu li {
font-weight: normal;
background-color: white;
background-color: var(--ifm-background-color);
margin-bottom: 5px;
color: var(--ifm-font-color-base);
}

.head_SubMenu div {
[data-theme='light'] .head_SubMenu div {
font-weight: normal;
background-color: white;
background-color: var(--ifm-background-color);
margin-left: 0rem;
font-size: medium;
color: var(--ifm-font-color-base);
}

/* Dark mode styles based on Docusaurus dark theme */
[data-theme="dark"] .head_Menu div {
[data-theme='dark'] .head_Menu div {
background-color: var(--ifm-background-color);
color: var(--ifm-font-color-base);
}

[data-theme="dark"] .head_Menu li {
[data-theme='dark'] .head_Menu li {
background-color: var(--ifm-background-color);
color: var(--ifm-font-color-base);
}

[data-theme="dark"] .head_SubMenu div {
[data-theme='dark'] .head_SubMenu div {
background-color: var(--ifm-background-color);
color: var(--ifm-font-color-base);
}

0 comments on commit 086f8b2

Please sign in to comment.