@saltcorn/bootstrap-prompt-theme 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,6 +17,8 @@ This variant generates a lightweight CSS overlay on top of the Bootstrap 5.3 CSS
17
17
 
18
18
  - Saltcorn with the `@saltcorn/large-language-model` plugin installed and configured
19
19
 
20
+ > **Model recommendation:** Good results have been achieved with `@saltcorn/large-language-model` configured to use **GPT-5.4**.
21
+
20
22
  ## Configuration
21
23
 
22
24
  1. Go to **Plugins → bootstrap-prompt-theme → Configure**
package/generate_theme.js CHANGED
@@ -46,11 +46,12 @@ DARK MODE STRUCTURE:
46
46
  /* any extra component rules needed only in dark mode, prefixed with [data-bs-theme="dark"] */
47
47
 
48
48
  CRITICAL RULES — never break these:
49
- - Never set overflow:hidden on .navbar, .navbar-collapse, or any nav container this clips dropdown menus
50
- - Never set a z-index lower than 1000 on .navbar or its children — dropdowns must appear above page content
51
- - Never create a new stacking context (transform, filter, will-change, isolation) on .navbar or its direct parents this traps dropdowns inside it
52
- - Do not override --bs-zindex-dropdown or .dropdown-menu z-index
53
- - Navbar dropdowns must always be fully visible and appear above all other page content
49
+ - Never set overflow:hidden or overflow:clip on ANY element — not on .navbar, .card, .card-body, .card-header, .card-footer, section, #wrapper, #page-inner-content, #content-wrapper, .container, .page-section, or any other element. Bootstrap's Popper.js positions dropdowns with position:absolute outside their parent bounds; overflow:hidden on any ancestor will clip them.
50
+ - Always set .navbar { position: relative; z-index: 1030; } to ensure navbar dropdowns render above all page content.
51
+ - Never apply transform, filter, backdrop-filter, will-change, or perspective to .card, .card-body, .card-header, .card-footer, .container, .page-section, section, #wrapper, or any page-level container. These CSS properties create a new stacking context that can rise above the navbar and obscure its open dropdowns.
52
+ - Never set z-index on .card or page content elements — stacking context on page content is what causes navbar dropdowns to be obscured.
53
+ - Do not override --bs-zindex-dropdown, --bs-zindex-fixed, or .dropdown-menu z-index.
54
+ - Dropdowns must always be fully visible and on top of all other page content, including cards, sections, and containers.
54
55
 
55
56
  OUTPUT: Only valid CSS. No explanations. No markdown. No code fences. Start directly with /* theme comment */ or :root {`;
56
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saltcorn/bootstrap-prompt-theme",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Bootstrap 5 layout plugin with LLM-generated CSS overlay",
5
5
  "main": "index.js",
6
6
  "scripts": {