TNCSC_Odoo/addons/tncsc_deployment/static/src/scss/website_navigation.scss
metatroncubeswdev 997c87737f
Some checks failed
CI / Brand-leak check (push) Has been cancelled
CI / flake8 / pylint-odoo / manifest completeness (push) Has been cancelled
CI / Install all modules with --test-enable (push) Has been cancelled
Hide duplicate Odoo header on rendered TNCSC website pages
Add a frontend style scoped to pages containing the custom TNCSC header. This complements template overrides and also covers website-editor copies while preserving standard navigation on other pages.

Validated by injecting the compiled CSS into the live homepage at desktop and mobile widths, checking custom mobile menu expansion, and confirming an ordinary page retains its default header. SCSS compilation and manifest checks passed.
2026-09-27 09:43:28 -04:00

7 lines
307 B
SCSS

// Website editor copies can bypass the original page template overrides.
// Match the rendered TNCSC header so those pages also have one navigation bar.
// Pages without custom navigation keep the standard Odoo header.
#wrapwrap:has(> main .tncsc-top-header) > header#top {
display: none !important;
}