mirror of
https://github.com/tabler/tabler.git
synced 2026-08-22 02:44:24 +04:00
colors table fixes
This commit is contained in:
@@ -84,6 +84,11 @@ module Jekyll
|
||||
|
||||
input.gsub re, repl_str
|
||||
end
|
||||
|
||||
def hex_to_rgb(color)
|
||||
r, g, b = color.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/).captures
|
||||
"rgb(#{r.hex}, #{g.hex}, #{b.hex})"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user