From 4e397e4ba4b88474c777f604bba349e33cfc05f0 Mon Sep 17 00:00:00 2001 From: neko Date: Fri, 2 Jan 2026 15:01:29 +0000 Subject: Clean up CSS --- src/css/custom.css | 83 ++++++++++++++++++++++-------------------------------- 1 file changed, 33 insertions(+), 50 deletions(-) diff --git a/src/css/custom.css b/src/css/custom.css index ff0d153..fef36a2 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -74,7 +74,7 @@ backdrop-filter: blur(1rem); } -.navbar__inner .github-button { +.navbar__items--right > .github-button { width: 32px; height: 32px; font-size: 0; @@ -83,64 +83,22 @@ padding: var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal); } -.navbar__inner .github-button * { +.navbar__items--right > .github-button * { display: none; } -.navbar__inner .github-button:before { +.navbar__items--right > .github-button:before { content: ''; width: 22px; height: 22px; display: block; } -.navbar__inner .github-button:before { +.navbar__items--right > .github-button:before { background: url('/img/github.svg') no-repeat; margin: 1px 0 0 -7px; } -@media (max-width: 996px) { - .navbar__items--right > div[class*="toggle"], - .navbar__items--right > div[class*="colorMode"] { - display: flex !important; - } - - .navbar__items--right > div[class*="toggle"] button, - .navbar__items--right > div[class*="colorMode"] button { - display: flex !important; - } - - .navbar-sidebar div[class*="toggle"], - .navbar-sidebar div[class*="colorMode"] { - display: none !important; - } - - .navbar-sidebar button[title*="Switch between"], - .navbar-sidebar button[aria-label*="Switch between"] { - display: none !important; - } - - .navbar__item.github-button { - display: flex !important; - padding: 5px; - align-items: center; - justify-content: center; - } - - .navbar__item.github-button::before { - margin: 0 !important; - } -} - -table { - font-family: var(--ifm-font-family-monospace); - font-size: var(--ifm-code-font-size); -} - -.markdown h1:first-child { - --ifm-h1-font-size: 2.2rem; -} - .sidebar-hr { background-color: var(--ifm-toc-border-color); margin: .5rem .75em; @@ -150,10 +108,6 @@ table { margin-left: 1.25em; } -.pagination-nav { - display: none; -} - .tabs__item { border: 1px var(--ifm-toc-border-color) solid; border-radius: var(--ifm-global-radius); @@ -173,3 +127,32 @@ table { background-color: var(--ifm-color-primary-dark); border-color: var(--ifm-color-primary-light); } + +table { + font-family: var(--ifm-font-family-monospace); + font-size: var(--ifm-code-font-size); +} + +.markdown h1:first-child { + --ifm-h1-font-size: 2.2rem; +} + +.pagination-nav { + display: none; +} + +@media(max-width: 996px) { + .navbar__items--right > .github-button { + margin-right: 8px; + } + + .navbar__items--right > .github-button, + .navbar__items--right > [class*='toggle'] { + display: block; + } + + .navbar-sidebar__items .menu__link.github-button, + .navbar-sidebar__brand > [class*='toggle'] { + display: none; + } +} -- cgit v1.2.3