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 +4 -4
- data/lib/maglove/engine/version.rb +1 -1
- data/lib/maglove/widget/card.rb +6 -13
- data/lib/maglove/widget/heading.rb +1 -1
- data/lib/maglove/widget/property.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49d56bbd47294a5e910b13c359ad7ec40493168b
|
4
|
+
data.tar.gz: ce892aad7e4a17a2d835728115d0ac1b895ea012
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f218b7c222f7ca2a3b6cb49681e7de3fc62f3767f1e9117cfb6c656852e01656021fd5b94e2b414ed13335bc5fd2b4bc2c8eb68c274695b441064242883e1e4
|
7
|
+
data.tar.gz: ea53186577ed45f3b7dda5197ac4887edbb2acafac5c2fa19409a6055466044e549836695a44820d5e036e95e168021d7de316855e64f54fe67ff6a01f36501e
|
data/lib/maglove/widget/card.rb
CHANGED
@@ -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,
|
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[:
|
32
|
+
haml_concat(options[:title])
|
32
33
|
end
|
33
|
-
if options[:
|
34
|
+
if options[:subtitle] != ""
|
34
35
|
haml_tag options[:subtitle_heading_type], class: "card-subtitle" do
|
35
|
-
haml_concat(options[:
|
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:
|
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.
|
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-
|
11
|
+
date: 2018-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: haml
|