Update design (#1050)

This commit is contained in:
pollfly 2025-02-24 11:02:17 +02:00 committed by GitHub
parent d0806a1a8d
commit dff09fa337
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,7 +46,7 @@ html {
--ifm-code-padding-vertical: 0.2rem;
}
html[data-theme="dark"] {
[data-theme=dark]:root {
--ifm-background-color: #040506; /* body bg */
--ifm-header-background-color: #101418; /* section 1 */
--ifm-footer-background-color: #101418; /* section 1 */
@ -54,12 +54,16 @@ html[data-theme="dark"] {
--ifm-footer-link-hover-color: #ffffff; /* specific footer link hover color */
--ifm-dropdown-background-color: #242D37; /* section 2 */
--ifm-table-stripe-background: #101418; /* section 1 */
--ifm-toc-background-color: #242D37; /* section 2 */
--ifm-link-color: #6AD6C0; /* specific link color */
--ifm-link-hover-color: #AEFDED; /* specific link hover color */
--ifm-font-color-base: #E5E5E5 /* body text */
--ifm-font-color-base: #E5E5E5; /* body text */
--ifm-hr-background-color: #242D37; /* section 1 */
--ifm-toc-link-color: #E5E5E5; /* body text */
--ifm-toc-background-color: #242D37; /* section 2 */
--ifm-code-background: #242D37; /* section 2 */
}
@media (min-width: 1400px) {
/* Expand sidebar width above 1400px */
html[data-theme="light"],
@ -468,7 +472,6 @@ html[data-theme="light"] .table-of-contents {
box-shadow: 0 0 0 2px rgba(0,0,0,0.1) inset;
}
html[data-theme="dark"] .table-of-contents {
background-color: var(--ifm-toc-background-color);
box-shadow: 0 0 0 2px rgba(0,0,0,0.4) inset;
}
html[data-theme="dark"] a.table-of-contents__link--active {
@ -492,9 +495,6 @@ a.table-of-contents__link--active:before {
border-left: 6px solid var(--ifm-color-primary);
transform: translateY(5px);
}
html[data-theme="light"] .table-of-contents__link:not(.table-of-contents__link--active) {
color: rgba(0,0,0,0.9);
}
/* toc: show "..." inside code tag */
.table-of-contents code {
@ -785,16 +785,6 @@ html[data-theme="dark"] h4 a.hash-link {
}
/* <hr> */
.markdown hr {
border-bottom: none;
}
html[data-theme="dark"] .markdown hr {
border-color: rgba(255,255,255,0.1);
}
/* admonition */
.admonition {
overflow: hidden;