Line 610: |
Line 610: |
| | | |
| return true | | return true |
| + | end |
| + | |
| + | -- naming based on "Navbox" elements |
| + | Utils.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 Utils.addStyle(tbl, val) |
| + | if Utils.isset(val) then |
| + | local av = tostring(val):gsub("^%s*(.-)%s*$", "%1") |
| + | if string.sub(av, -1) ~= ';' then av = av .. ';' end |
| + | tbl[#tbl+1] = av |
| + | end |
| end | | end |
| | | |
| return Utils | | return Utils |