lib/maglove/widgets/container.rb in maglove-widgets-1.1.4 vs lib/maglove/widgets/container.rb in maglove-widgets-1.1.5

- old
+ new

@@ -15,10 +15,11 @@ background_color: "", bg_color: "", opacity: "", border_radius: "", border_width: "", + border_color: "#111111", border_style: "", style: "default", padding_top: "", padding_right: "", padding_bottom: "", @@ -53,10 +54,10 @@ classes.push("container-parallax") if !@options[:parallax_effect].empty? and @options[:parallax_effect] != "none" classes.join(" ") end def container_styles - style_string @options, :opacity, :border, :opacity, :border_radius, :border_width, :border_style, :margin do |sb| + style_string @options, :opacity, :border, :opacity, :border_radius, :border_width, :border_color, :border_style, :margin do |sb| sb.add(:background_color, @options[:background_color] == "custom" ? @options[:bg_color] : nil) if @options[:background_color] == "overlay" sb.add(:background_image, @options[:image_source], "linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(<%= value %>)") elsif sb.add(:background_image, @options[:image_source], "url(<%= value %>)") \ No newline at end of file