maglove-engine 2.0.12 → 2.0.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86ae8c16c924892c56fe677e72a3b6842c65b4a7
4
- data.tar.gz: 6ed90739d57890d17c1f7a63b6aa488c4c50419c
3
+ metadata.gz: 49d56bbd47294a5e910b13c359ad7ec40493168b
4
+ data.tar.gz: ce892aad7e4a17a2d835728115d0ac1b895ea012
5
5
  SHA512:
6
- metadata.gz: 85c74ef873611808ab6bbc291618a292736b93763d06df11b7e5a41a8cb4b3f636a2fd2c924290ecbdc5c6c0f774f76820e5ba1deed0096cb82e48497ee3f91f
7
- data.tar.gz: d2215df45d355ba8cc355dd1eaa1073c8a558f0e3b317ae0b06fb21278b26a6a4ab654a004baff4a8bdf4afd0a93d603a263b1cca586763bb3a7e218fa68bf80
6
+ metadata.gz: 6f218b7c222f7ca2a3b6cb49681e7de3fc62f3767f1e9117cfb6c656852e01656021fd5b94e2b414ed13335bc5fd2b4bc2c8eb68c274695b441064242883e1e4
7
+ data.tar.gz: ea53186577ed45f3b7dda5197ac4887edbb2acafac5c2fa19409a6055466044e549836695a44820d5e036e95e168021d7de316855e64f54fe67ff6a01f36501e
@@ -1,5 +1,5 @@
1
1
  module Maglove
2
2
  module Engine
3
- VERSION = "2.0.12"
3
+ VERSION = "2.0.13"
4
4
  end
5
5
  end
@@ -19,20 +19,21 @@ module Maglove
19
19
  title: "Card Title",
20
20
  subtitle: "This is the card subtitle",
21
21
  title_heading_type: "h2",
22
- subtitle_heading_type: "h4"
22
+ subtitle_heading_type: "h4",
23
+ style:""
23
24
  }
24
25
  end
25
26
 
26
27
  def render(&block)
27
28
  super do
28
- haml_tag :div, card_options do
29
+ haml_tag :div, class: "card #{options[:style]}", style: style_string(options, :margin_bottom, :background_color, :border_radius) do
29
30
  haml_tag :a, href: (options[:href] or "#") do
30
31
  haml_tag options[:title_heading_type], class: "card-title" do
31
- haml_concat(options[:"title"])
32
+ haml_concat(options[:title])
32
33
  end
33
- if options[:"subtitle"] != ""
34
+ if options[:subtitle] != ""
34
35
  haml_tag options[:subtitle_heading_type], class: "card-subtitle" do
35
- haml_concat(options[:"subtitle"])
36
+ haml_concat(options[:subtitle])
36
37
  end
37
38
  end
38
39
  haml_tag :hr, class: "solid dark-maroon"
@@ -42,14 +43,6 @@ module Maglove
42
43
  end
43
44
  end
44
45
 
45
- private
46
-
47
- def card_options
48
- {
49
- class: "card",
50
- style: style_string(options, :margin_bottom, :background_color, :border_radius)
51
- }
52
- end
53
46
  end
54
47
  end
55
48
  end
@@ -35,7 +35,7 @@ module Maglove
35
35
 
36
36
  def render(&block)
37
37
  super do
38
- haml_tag :header, id: "#{options[:id]}", class: "#{options[:style]} align-#{options[:align]}", style: style_string(options, :margin, :padding) do
38
+ haml_tag :header, id: options[:id].to_s, class: "#{options[:style]} align-#{options[:align]}", style: style_string(options, :margin, :padding) do
39
39
  haml_tag options[:type], class: "_typeloft_editable _typeloft_widget_autoselect", style: style_string(options, :line_height, :letter_spacing) do
40
40
  yield self if block_given?
41
41
  end
@@ -21,10 +21,10 @@ module Maglove
21
21
  def render(&block)
22
22
  super do
23
23
  haml_tag :div, property_options do
24
- haml_tag :span, class:"property-label" do
24
+ haml_tag :span, class: "property-label" do
25
25
  haml_concat(options[:label])
26
26
  end
27
- haml_tag :span, class:"property-value" do
27
+ haml_tag :span, class: "property-value" do
28
28
  haml_concat(options[:value])
29
29
  end
30
30
  haml_tag :span, class: "clearfix"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maglove-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.12
4
+ version: 2.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Strebitzer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-15 00:00:00.000000000 Z
11
+ date: 2018-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: haml