From 2e4a4281ff9acfd8ee027507b7a2dcbc6de3c325 Mon Sep 17 00:00:00 2001 From: kerwin612 Date: Fri, 27 Dec 2024 02:28:31 +0000 Subject: [PATCH] fix api-version hidden issue (#136) Co-authored-by: Lunny Xiao Reviewed-on: https://gitea.com/gitea/docs/pulls/136 Co-authored-by: kerwin612 Co-committed-by: kerwin612 --- src/css/custom.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/css/custom.css b/src/css/custom.css index f2338932..70637ee4 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -157,7 +157,7 @@ } } } -/* selectors like :first-of-type are for browsers those do not support :has */ +/* selectors like :nth-of-type are for browsers those do not support :has */ @supports not (selector(:has(*))) { .plugin-redoc [class*='searchBox'], .plugin-pages [class*='searchBox'] { @@ -165,8 +165,8 @@ } @media (min-width: 996px) { - .plugin-redoc .navbar__item.dropdown:not(:first-of-type), - .plugin-pages .navbar__item.dropdown:not(:first-of-type) { + .plugin-redoc .navbar__item.dropdown:not(:nth-of-type(4)), + .plugin-pages .navbar__item.dropdown:not(:nth-of-type(4)) { display: none; } }