This commit is contained in:
gsinghpal
2026-05-21 03:37:25 -04:00
parent b2f483d67c
commit 1314f4581d
47 changed files with 5730 additions and 177 deletions

View File

@@ -0,0 +1,78 @@
// =============================================================================
// Fusion Plating — Shipping-Quote Callout Panel
// Copyright 2026 Nexa Systems Inc. · License OPL-1
//
// Yellow-tinted info panel rendered on the right side of the receiving
// form. Branches on Odoo's compile-time $o-webclient-color-scheme so it
// produces readable contrast in BOTH light (warm cornsilk) and dark
// (deep amber) bundles. See CLAUDE.md "Dark Mode" for why we branch at
// compile time instead of using a runtime class selector — Odoo 19
// serves two pre-compiled bundles, no .o_dark_mode toggle fires.
// =============================================================================
$o-webclient-color-scheme: bright !default;
// Light (cornsilk on white page)
$_fp-quote-bg-hex : #fff8dc;
$_fp-quote-border-hex : #e6d28f;
$_fp-quote-label-hex : #7a5b00;
$_fp-quote-body-hex : #1f2937;
$_fp-quote-muted-hex : #6b6452;
// Dark (warm-amber tint that still reads against $fp-page)
@if $o-webclient-color-scheme == dark {
$_fp-quote-bg-hex : #3a2f10 !global;
$_fp-quote-border-hex : #5a4820 !global;
$_fp-quote-label-hex : #ffd866 !global;
$_fp-quote-body-hex : #e5e7eb !global;
$_fp-quote-muted-hex : #b8a877 !global;
}
// CSS custom-property fallback chain so a deployment can override
// without touching SCSS.
$fp-quote-bg : var(--fp-quote-bg, $_fp-quote-bg-hex);
$fp-quote-border : var(--fp-quote-border, $_fp-quote-border-hex);
$fp-quote-label : var(--fp-quote-label, $_fp-quote-label-hex);
$fp-quote-body : var(--fp-quote-body, $_fp-quote-body-hex);
$fp-quote-muted : var(--fp-quote-muted, $_fp-quote-muted-hex);
.fp_shipping_quote_callout {
background-color: $fp-quote-bg;
border: 1px solid $fp-quote-border;
border-radius: 6px;
padding: 14px 16px;
color: $fp-quote-body;
.fp_shipping_quote_header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
.fp_shipping_quote_label {
font-size: 13px;
text-transform: uppercase;
letter-spacing: 0.5px;
font-weight: 700;
color: $fp-quote-label;
i.fa {
margin-right: 8px;
}
}
}
// Quote body — the HTML field rendered by _fp_format_shipping_quote.
// Inherits the body colour from the wrapper; the .text-muted-style
// small-print uses our muted token.
.o_field_html,
.o_field_html * {
color: inherit;
}
.fp_shipping_quote_placeholder {
color: $fp-quote-muted;
font-size: 13px;
}
}