chore: fix fumadocs top empty banner shown when in cloudflare worker env
This commit is contained in:
parent
c3d82d9183
commit
160a7eb929
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
@custom-variant dark (&:is(.dark *));
|
@custom-variant dark (&:is(.dark *));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 1. Themes Documentation
|
* 1. Themes Documentation
|
||||||
* https://mksaas.com/docs/themes
|
* https://mksaas.com/docs/themes
|
||||||
|
|
||||||
@ -14,7 +14,7 @@
|
|||||||
*
|
*
|
||||||
* default theme: Clean Slate
|
* default theme: Clean Slate
|
||||||
* https://tweakcn.com/editor/theme
|
* https://tweakcn.com/editor/theme
|
||||||
*
|
*
|
||||||
* NOTICE: when you change the theme, you need to check the fonts and keep the animation variables
|
* NOTICE: when you change the theme, you need to check the fonts and keep the animation variables
|
||||||
*
|
*
|
||||||
* 3. How to Add a Theme Selector to Your Next.js App
|
* 3. How to Add a Theme Selector to Your Next.js App
|
||||||
@ -393,3 +393,21 @@ body {
|
|||||||
-ms-overflow-style: none; /* IE and Edge */
|
-ms-overflow-style: none; /* IE and Edge */
|
||||||
scrollbar-width: none; /* Firefox */
|
scrollbar-width: none; /* Firefox */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Fix for Fumadocs empty banner appearing in Cloudflare Worker */
|
||||||
|
/* This targets the specific banner issue where empty:hidden doesn't work properly */
|
||||||
|
div[class*="border-t"][class*="bg-fd-secondary"]:not(:has(*)):not(
|
||||||
|
[data-content]
|
||||||
|
) {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Fallback for banners with the exact classes found in the issue */
|
||||||
|
.border-t.bg-fd-secondary\/50.p-3:empty {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Additional safety for any empty Fumadocs banner */
|
||||||
|
[class*="fd-secondary"]:empty:not([data-banner-content]) {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user