scrivito_seo_headline_extender 1.3.0 → 1.4.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9223d3f7b30dc531060acf9c9b868ff2832efe15
|
4
|
+
data.tar.gz: c8bdd35d2d25d5e78d912b39ed1fe575893e5a5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd686bd47cd6f08c17d42b510cbbfdf08723dd4ebff85aa5d5499a3551e6bb7be695f0948d3175f66d893fc18a46f4498d3c656265d9b97dc3bc5634d56b101e
|
7
|
+
data.tar.gz: ed8bc5787d8bae2e00f21bb5702244bdae9ebfa65793fba8a770d438755ea1ddac9ebeb5a30925eb57c5e83a9dffe9621b69843f7806ec333714b07ada60d720
|
@@ -5,14 +5,22 @@ h4, .h4, .small { font-size: 18px; line-height: 28px; }
|
|
5
5
|
h5, .h5, .text { font-size: 15px; line-height: 26px; }
|
6
6
|
h6, .h6 { font-size: 13px; line-height: 23px; }
|
7
7
|
|
8
|
-
|
9
|
-
|
8
|
+
.font-lighter {
|
9
|
+
font-weight: 100 !important;
|
10
10
|
}
|
11
11
|
|
12
|
-
|
13
|
-
|
12
|
+
.font-light {
|
13
|
+
font-weight: 300 !important;
|
14
14
|
}
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
.font-normal {
|
17
|
+
font-weight: 400 !important;
|
18
|
+
}
|
19
|
+
|
20
|
+
.font-bold {
|
21
|
+
font-weight: 600 !important;
|
22
|
+
}
|
23
|
+
|
24
|
+
.font-bolder {
|
25
|
+
font-weight: 800 !important;
|
18
26
|
}
|
@@ -4,13 +4,14 @@ class HeadlineWidget < Widget
|
|
4
4
|
attribute :anchor, :string
|
5
5
|
attribute :type, :enum, values: ['h1','h2','h3','h4','h5','h6'], default: 'h3'
|
6
6
|
attribute :size, :enum, values: ['h1','h2','h3','h4','h5','h6']
|
7
|
-
attribute :alignment, :enum, values: ['
|
7
|
+
attribute :alignment, :enum, values: ['left','center','right']
|
8
|
+
attribute :weight, :enum, values: ['lighter','light','normal','bold','bolder'], default: 'normal'
|
8
9
|
|
9
10
|
def css_class
|
10
|
-
[self.size, self.alignment].join(" ")
|
11
|
+
[self.size, "text-#{self.alignment}", "font-#{self.weight}"].join(" ")
|
11
12
|
end
|
12
13
|
|
13
14
|
def tag
|
14
15
|
self.type.blank? ? :h3 : self.type.to_sym
|
15
16
|
end
|
16
|
-
end
|
17
|
+
end
|
@@ -18,6 +18,11 @@
|
|
18
18
|
<%= scrivito_tag(:div, widget, :alignment) %>
|
19
19
|
<% end %>
|
20
20
|
|
21
|
+
<%= scrivito_details_for t('scrivito_headline_widget.details.weight', default: 'Weight') do %>
|
22
|
+
<%= scrivito_tag(:div, widget, :weight) %>
|
23
|
+
<% end %>
|
24
|
+
|
25
|
+
|
21
26
|
<%= scrivito_details_for t('scrivito_headline_widget.details.anchor', default: 'Anchor') do %>
|
22
27
|
<%= scrivito_tag(:div, widget, :anchor) %>
|
23
28
|
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_seo_headline_extender
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scrivito_sdk
|