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: d08574cb61c4159cc516d1a968ccecec713efe36
4
- data.tar.gz: 4fdcc8e5e4a2eb6a10cc8970f231f0357396ff63
3
+ metadata.gz: 9223d3f7b30dc531060acf9c9b868ff2832efe15
4
+ data.tar.gz: c8bdd35d2d25d5e78d912b39ed1fe575893e5a5e
5
5
  SHA512:
6
- metadata.gz: 37aeb436f1fa3c767c879e109a82d05a1916c8946bef0c60b2f93b6f830b0581e31209bd94c0417c61c350178c52f84307e407b62e6d7f515946f4d0e7014517
7
- data.tar.gz: b1f222141dee90a91c120ee8a3e7e61ecd2440bb2b5158ed9c3915264b4d6288dadc98706980aba5ad1b226ce42ac6f4d414fc9f538137b8ff3fa9f57a292af0
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
- h1.left, h2.left, h3.left, h4.left, h5.left, h6.left {
9
- text-align: left;
8
+ .font-lighter {
9
+ font-weight: 100 !important;
10
10
  }
11
11
 
12
- h1.center, h2.center, h3.center, h4.center, h5.center, h6.center {
13
- text-align: center;
12
+ .font-light {
13
+ font-weight: 300 !important;
14
14
  }
15
15
 
16
- h1.right, h2.right, h3.right, h4.right, h5.right, h6.right {
17
- text-align: right;
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: ['center','left','right']
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 %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoSeoHeadlineExtender
2
- VERSION = "1.3.0"
2
+ VERSION = "1.4.0"
3
3
  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.3.0
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-01-24 00:00:00.000000000 Z
11
+ date: 2017-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: scrivito_sdk