Module:HeroData: Difference between revisionsGive feedback
Change hero comparison table to allow for users to input boons and spirit power so it'll update live. |
Fixed header |
||
| Line 518: | Line 518: | ||
-- First header is Hero (sticky) | -- First header is Hero (sticky) | ||
local headers_str = '<th style="position: sticky; left: 0; top: | local headers_str = '<th style="position: sticky; left: 0; top: -1px; z-index: 12; background-color: #27292d; isolation: isolate;">Hero</th>' | ||
local header_style = "" | local header_style = "" | ||
local category_data = attribute_module.get_category_data() | local category_data = attribute_module.get_category_data() | ||
| Line 571: | Line 571: | ||
end | end | ||
header_style = ' style="position: sticky; top: | header_style = ' style="position: sticky; top: -1px; z-index: 3; background-color: rgb(' .. category_rgb .. ');"' | ||
headers_str = headers_str .. "<th" .. header_style .. ">" .. attr_localized .. postfix .. "</th>" | headers_str = headers_str .. "<th" .. header_style .. ">" .. attr_localized .. postfix .. "</th>" | ||