scrivito_seo_headline_extender 1.1.6 → 1.2.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: a4123852ce5de038725a7886d5b5a467d739d257
4
- data.tar.gz: 184caf8f80a57e14b359c770e18eda8948595750
3
+ metadata.gz: 510107e01fb23bbb74559e98d6e36aa7616c4435
4
+ data.tar.gz: 10fa2d36db5c6e35d6f0e86f92aef5a5aa5d1771
5
5
  SHA512:
6
- metadata.gz: 3205a4defb62bb2ec5bcdf1b584da2f5538c209d8f6d1f3fa5461fcdbe798b16e95f97b8089898eb3d70c19fc6aa1643fe998dad50a950e9ee105dce4bc44e11
7
- data.tar.gz: 587837874c9f97f3d3991ef73a0965d105a604bc0cda7fe492c974f40d3341630a028808804c287b0f529e83dbeb83b3d66a6b7bd71f33f10aac2b06117c9ac8
6
+ metadata.gz: 5b000059295c9c7c8b572024281ff3596f07b2c0aa4614745ea7cb94be2a84fc4addfd449a384f1a749e621dcdaa834ed1e4224e6105e065f57fdaadf078210b
7
+ data.tar.gz: 8c5fa38e28fafc2f68e72f5c42a4325c6575a90f4fd579130b2c714e24e8aaa388f048fd8cb5f996c17c2d3e61665817349fd82ab9cc0b669513e716e9370b68
@@ -1,74 +1,9 @@
1
- h1 {
2
- font-size: 36px;
3
- font-weight: normal;
4
- font-style: normal;
5
- }
6
-
7
- h2 {
8
- font-size: 30px;
9
- font-weight: normal;
10
- font-style: normal;
11
- }
12
-
13
- h3 {
14
- font-size: 24px;
15
- font-weight: normal;
16
- font-style: normal;
17
- }
18
-
19
- h4 {
20
- font-size: 18px;
21
- font-weight: normal;
22
- font-style: normal;
23
- }
24
-
25
- h5 {
26
- font-size: 14px;
27
- font-weight: normal;
28
- font-style: normal;
29
- }
30
-
31
- h6 {
32
- font-size: 12px;
33
- font-weight: normal;
34
- font-style: normal;
35
- }
36
-
37
- h1.large, h2.large, h3.large, h4.large, h5.large, h6.large {
38
- font-size: 36px;
39
- }
40
-
41
- h1.medium, h2.medium, h3.medium, h4.medium, h5.medium, h6.medium {
42
- font-size: 24px;
43
- }
44
-
45
- h1.small, h2.small, h3.small, h4.small, h5.small, h6.small {
46
- font-size: 18px;
47
- }
48
-
49
- h1.text, h2.text, h3.text, h4.text, h5.text, h6.text {
50
- font-size: 14px;
51
- }
52
-
53
- h1.normal, h2.normal, h3.normal, h4.normal, h5.normal, h6.normal {
54
- font-weight: normal;
55
- font-style: normal;
56
- }
57
-
58
- h1.bold, h2.bold, h3.bold, h4.bold, h5.bold, h6.bold {
59
- font-weight: bold;
60
- font-style: normal;
61
- }
62
-
63
- h1.italic, h2.italic, h3.italic, h4.italic, h5.italic, h6.italic {
64
- font-weight: normal;
65
- font-style: italic;
66
- }
67
-
68
- h1.bold-italic, h2.bold-italic, h3.bold-italic, h4.bold-italic, h5.bold-italic, h6.bold-italic {
69
- font-weight: bold;
70
- font-style: italic;
71
- }
1
+ h1, .h1, .large { font-size: 32px; line-height: 40px; }
2
+ h2, .h2, .medium { font-size: 27px; line-height: 35px; }
3
+ h3, .h3, .normal { font-size: 22px; line-height: 30px; }
4
+ h4, .h4, .small { font-size: 18px; line-height: 28px; }
5
+ h5, .h5, .text { font-size: 15px; line-height: 26px; }
6
+ h6, .h6 { font-size: 13px; line-height: 23px; }
72
7
 
73
8
  h1.left, h2.left, h3.left, h4.left, h5.left, h6.left {
74
9
  text-align: left;
@@ -1,17 +1,12 @@
1
1
  class HeadlineWidget < Widget
2
2
  attribute :headline, :string
3
3
  attribute :anchor, :string
4
- attribute :type, :enum, values: ['h1','h2','h3','h4','h5','h6']
5
- attribute :size, :enum, values: ['large','medium','small','text']
6
- attribute :style, :enum, values: ['normal','bold','italic','bold-italic']
4
+ attribute :type, :enum, values: ['h1','h2','h3','h4','h5','h6'], default: 'h3'
5
+ attribute :size, :enum, values: ['h1','h2','h3','h4','h5','h6']
7
6
  attribute :alignment, :enum, values: ['center','left','right']
8
7
 
9
8
  def css_class
10
- [self.size, self.css_style, self.alignment].join(" ")
11
- end
12
-
13
- def css_style
14
- self.style.blank? ? "" : self.style
9
+ [self.size, self.alignment].join(" ")
15
10
  end
16
11
 
17
12
  def tag
@@ -3,19 +3,15 @@
3
3
  <% end %>
4
4
 
5
5
  <%= scrivito_details_for 'Type' do %>
6
- <%= scrivito_toggle_button_editor(widget, :type) %>
6
+ <%= scrivito_tag(:div, widget, :type) %>
7
7
  <% end %>
8
8
 
9
9
  <%= scrivito_details_for 'Size' do %>
10
- <%= scrivito_toggle_button_editor(widget, :size) %>
11
- <% end %>
12
-
13
- <%= scrivito_details_for 'Style' do %>
14
- <%= scrivito_toggle_button_editor(widget, :style) %>
10
+ <%= scrivito_tag(:div, widget, :size) %>
15
11
  <% end %>
16
12
 
17
13
  <%= scrivito_details_for 'Alignment' do %>
18
- <%= scrivito_toggle_button_editor(widget, :alignment) %>
14
+ <%= scrivito_tag(:div, widget, :alignment) %>
19
15
  <% end %>
20
16
 
21
17
  <%= scrivito_details_for 'Anchor' do %>
@@ -1,5 +1,3 @@
1
- require 'scrivito_advanced_editors'
2
-
3
1
  module ScrivitoSeoHeadlineExtender
4
2
  class Engine < ::Rails::Engine
5
3
  isolate_namespace ScrivitoSeoHeadlineExtender
@@ -1,3 +1,3 @@
1
1
  module ScrivitoSeoHeadlineExtender
2
- VERSION = "1.1.6"
2
+ VERSION = "1.2.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.1.6
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-08 00:00:00.000000000 Z
11
+ date: 2015-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: scrivito_advanced_editors
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: rake
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -76,7 +62,6 @@ files:
76
62
  - LICENSE
77
63
  - Rakefile
78
64
  - app/assets/images/headline.png
79
- - app/assets/javascripts/scrivito_seo_headline_extender.js
80
65
  - app/assets/stylesheets/scrivito_seo_headline_extender.css
81
66
  - app/assets/stylesheets/scrivito_seo_headline_extender/application.css
82
67
  - app/models/headline_widget.rb
@@ -108,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
93
  version: '0'
109
94
  requirements: []
110
95
  rubyforge_project:
111
- rubygems_version: 2.2.2
96
+ rubygems_version: 2.4.5
112
97
  signing_key:
113
98
  specification_version: 4
114
99
  summary: Scrivito Widget for a headline with seo features
@@ -1 +0,0 @@
1
- //= require scrivito_advanced_editors