/*
 * SPDX-FileCopyrightText: 2022 Tanguy Fardet
 * SPDX-License-Identifier: CC-BY-SA-4.0
 * docs/_static/custom.css
*/

footer {
    font-size: 95%;
}

.toc-drawer {
    font-size: 115%;
}

.sidebar-drawer {
    font-size: 115%;
}

.sidebar-logo {
    max-width: 90% !important;
}

.admonition {
    font-size: 90%;
}

.math {
    margin-bottom: -0.2ex;
    height: fit-content;
}

@media (prefers-color-scheme: dark) {
    body:not([data-theme="light"]) .math {
        filter: invert(100%);
    }
}

@media (prefers-color-scheme: light) {
    body[data-theme="dark"] .math {
        filter: invert(100%);
    }
}
