Module:Styles

-- Library containing global coloring and styling used by multiple scripts

-- dependencies require("Module:Common")

-- create global object if style == nil then style = {} end

-- naming based on "Navbox" elements style.main_colors = { game = {border = '#A88580', title = '#FFC9C2', above = '#FFD1CA', group = '#FFD9D2', subgroup = '#FFE1DA', dark = '#FFEEE8', background = '#FFF4EE'}; music = {border = '#A8A077', title = '#FFF3B4', above = '#FFF6C0', group = '#FFF7C8', subgroup = '#FFF8D0', dark = '#FFFBE4', background = '#FFFBEE'}; printwork = {border = '#9298A8', title = '#DDE6FF', above = '#E1E7FF', group = '#E6E9FF', subgroup = '#EAECFF', dark = '#EDF2FF', background = '#F4F9FF'}; }

-- function for easy adding of styles to html tags function addstyle(tbl, val) if isset(val) then local av = string.trim(val) if string.sub(av, -1) ~= ';' then av = av .. ';' end tbl[#tbl+1] = av end end

--