lib/lookbook/theme.rb in lookbook-1.0.0.beta.7 vs lib/lookbook/theme.rb in lookbook-1.0.0.beta.8
- old
+ new
@@ -40,11 +40,11 @@
def to_css
return @css unless @css.nil?
@css ||= if @overrides.present?
styles = [":root {"]
styles << @overrides.select { |key| !key.start_with?("favicon") }.map do |key, value|
- " --lookbook-#{key.to_s.underscore.gsub("_","-")}: #{value};"
+ " --lookbook-#{key.to_s.underscore.tr("_", "-")}: #{value};"
end
styles.push "}"
styles.join("\n")
else
""
@@ -53,6 +53,6 @@
def self.valid_theme?(name)
BASE_THEMES.key? name.to_sym
end
end
-end
\ No newline at end of file
+end