feat(theme): 价格表内联样式改var(--line/--bg-side/--ink-*)——暗色下白表头根治(内联style可用var)
This commit is contained in:
parent
04f000e4d1
commit
637c729e90
@ -1352,10 +1352,11 @@ class ProductManager:
|
|||||||
rows = []
|
rows = []
|
||||||
html = ['<table style="border-collapse:collapse;width:100%;'
|
html = ['<table style="border-collapse:collapse;width:100%;'
|
||||||
'font-size:11px;line-height:1.5;">']
|
'font-size:11px;line-height:1.5;">']
|
||||||
th_style = ('padding:3px 6px;border:1px solid #e2e8f0;background:#f8fafc;'
|
# 主题感知(2026-09-18 暗色治理):内联样式可用 var(),跟 bricks.css 双主题变量
|
||||||
'color:#475569;font-weight:600;text-align:left;'
|
th_style = ('padding:3px 6px;border:1px solid var(--line);background:var(--bg-side);'
|
||||||
|
'color:var(--ink-3);font-weight:600;text-align:left;'
|
||||||
'white-space:nowrap;')
|
'white-space:nowrap;')
|
||||||
td_style = ('padding:3px 6px;border:1px solid #e2e8f0;color:#334155;'
|
td_style = ('padding:3px 6px;border:1px solid var(--line);color:var(--ink-2);'
|
||||||
'white-space:nowrap;')
|
'white-space:nowrap;')
|
||||||
html.append('<tr>' + ''.join(
|
html.append('<tr>' + ''.join(
|
||||||
'<th style="%s">%s</th>' % (th_style, _html_escape(str(h)))
|
'<th style="%s">%s</th>' % (th_style, _html_escape(str(h)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user