Content deleted Content added
fix text color in dark mode; this generally works but may cause problems, in which case revert or try specifying different CSS values |
fix text color in dark mode; this generally works but may cause problems, in which case revert or try specifying a different CSS value |
||
Line 272:
local result_local = Args[respre..'result'..ii] or nil
local bg_col = nil
-- Get local background colour
if result_local then
Line 421 ⟶ 422:
-- Get background colour
bg_col = nil
if Args[respre..'result'..ii] then
bg_col = result_col[Args[respre..'col_'..result_local]] or Args[respre..'col_'..result_local] or 'inherit'
if bg_col == 'inherit' then bg_col = bg_col .. '; color: inherit'
else
bg_col = 'background-color:'..bg_col..';color:black;' -- Full style tag
end
end
if not bg_col then bg_col = 'background-color:transparent; color: inherit;' end -- Becomes default if undefined
|