CSS style-string utilities for email component rendering.
Internal to Mailglass.Components. Components build a base inline style="..."
string (the email-client invariant part) and merge an optional adopter-supplied
class/style override via merge_style/2. No external class-composition library
is used (D-20).
Summary
Functions
Merges a base inline style string with an optional override.
Functions
Merges a base inline style string with an optional override.
Override may be nil, a binary, or a list of binaries/nils (nils filtered).
Examples
iex> Mailglass.Components.CSS.merge_style("color:red;", nil)
"color:red;"
iex> Mailglass.Components.CSS.merge_style("color:red;", "font-size:16px;")
"color:red; font-size:16px;"
iex> Mailglass.Components.CSS.merge_style("color:red;", [nil, "font-size:16px;", nil])
"color:red; font-size:16px;"