pageflow-internal-links 1.0.0 → 1.1.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
- SHA1:
3
- metadata.gz: 52df1b9dcf29bb39776058164da43e087bafd77e
4
- data.tar.gz: 4a91b9d5b35789efdc5ae81bcd800995296f16b3
2
+ SHA256:
3
+ metadata.gz: a1a870a698d82d71535eb8cee49ff231ef453ca7a5716bef67094ccbebce1a6f
4
+ data.tar.gz: 3f32cb717c99c2916cf9e1e184e3c18bedb389635f046075cea6449cb7b44a48
5
5
  SHA512:
6
- metadata.gz: 8d50464ef1da30024124078851c0ad933e54f1f079f0999e6aa3f115325afc3e0a2ca8fdc9af08109c90d8bd7394a250a56f07306f4c7edc81bb9e0e882148cd
7
- data.tar.gz: 0e42e90a826ef4f7e0d24d16df6463223024bb80b71a9de36b22ce420d8239fc92a38c0ea6dd12ba53b8c608d44421eb3231e6eb5f94c2d4eaeff09c334f04c0
6
+ metadata.gz: 49fd5f384611cbd3ed2a296d299a57d318786536ce1550e7be289d2932ae8a27001f2e445b47a72206134898e68b9893fc3198904e77bd86a2b7ad89f44bcaa3
7
+ data.tar.gz: 821b08d9bdb0ab5589445ffa511aad7ad97e4f4ab26c659396ea3c2a01ada15b45f42a85184962dca632a439abaa046d98d3e673e00bb410fec1b86a140b0c01
data/CHANGELOG.md CHANGED
@@ -1,41 +1,20 @@
1
1
  # CHANGELOG
2
2
 
3
- ### Version 1.0.0
3
+ ### Version 1.1.0
4
4
 
5
- 2017-08-11
5
+ 2018-12-10
6
6
 
7
- [Compare changes](https://github.com/codevise/pageflow-internal-links/compare/0-x-stable...v1.0.0)
7
+ [Compare changes](https://github.com/codevise/pageflow-internal-links/compare/1-0-stable...v1.1.0)
8
8
 
9
- ##### Breaking Changes
10
-
11
- [Compare changes](https://github.com/codevise/pageflow-internal-links/compare/0-2-stable...master)
12
-
13
- - Grid page type registration is performed by plugin call now.
14
- ([#11](https://github.com/codevise/pageflow-internal-links/pull/11))
15
-
16
- Ensure you register the plugin in your Pageflow initializer:
17
-
18
- config.plugin(Pageflow::InternalLinks.plugin)
19
-
20
- Remove manual registration of page type:
21
-
22
- # Delete the following line
23
- config.page_types.register(Pageflow::InternalLinks.grid_page_type)
24
-
25
- - Require Pageflow 12
26
- ([#10](https://github.com/codevise/pageflow-internal-links/pull/10))
27
-
28
- ##### Minor Changes
29
-
30
- - Allow custom images in list page link items
31
- ([#9](https://github.com/codevise/pageflow-internal-links/pull/9))
32
- - Allow to use background video
33
- ([#8](https://github.com/codevise/pageflow-internal-links/pull/8))
34
- - Rename .css.scss files to just .scss
35
- ([#7](https://github.com/codevise/pageflow-internal-links/pull/7))
36
- - Add no repeat to thumbails background
37
- ([#6](https://github.com/codevise/pageflow-internal-links/pull/6))
9
+ - Add support for pageflow 13
10
+ ([#13](https://github.com/codevise/pageflow-internal-links/pull/13))
11
+ - Add theme variables for color and typography of grid
12
+ ([#15](https://github.com/codevise/pageflow-internal-links/pull/15))
13
+ - Use page link inputs group
14
+ ([#14](https://github.com/codevise/pageflow-internal-links/pull/14))
15
+ - Remove duplicated page padding styles
16
+ ([#12](https://github.com/codevise/pageflow-internal-links/pull/12))
38
17
 
39
18
  See
40
- [0-2-stable branch](https://github.com/codevise/pageflow-internal-links/blob/0-2-stable/CHANGELOG.md)
19
+ [1-0-stable branch](https://github.com/codevise/pageflow-internal-links/blob/1-0-stable/CHANGELOG.md)
41
20
  for previous changes.
@@ -47,14 +47,7 @@ pageflow.internalLinks.EditPageLinkView = Backbone.Marionette.Layout.extend({
47
47
  var page = pageLink.collection.page;
48
48
 
49
49
  configurationEditor.tab('general', function() {
50
- this.input('label', pageflow.TextInputView);
51
- this.input('target_page_id', pageflow.PageLinkInputView);
52
- this.input('page_transition', pageflow.SelectInputView, {
53
- translationKeyPrefix: 'pageflow.page_transitions',
54
- includeBlank: true,
55
- blankTranslationKey: 'pageflow.internal_links.editor.views.edit_page_link_view.default_page_transition',
56
- values: pageflow.pageTransitions.names()
57
- });
50
+ this.group('page_link');
58
51
  this.input('thumbnail_image_id', pageflow.FileInputView, {
59
52
  collection: pageflow.imageFiles,
60
53
  positioning: false,
@@ -1,29 +1,5 @@
1
1
  @include pageflow-page-type(internal_links_grid);
2
2
 
3
- .js .page .internal_links_page .scroller > div,
4
- .page .internal_links_page .scroller > div
5
- {
6
- @include pad_portrait {
7
- padding: 15% 8% 5% 8%;
8
- }
9
- }
10
-
11
- .js .page:first-child .internal_links_page .scroller > div,
12
- .js .page:first-child .content_and_background.internal_links_page > .page_header,
13
- .page:first-child .internal_links_page .scroller > div,
14
- .js .page:first-child .content_and_background.internal_links_page > .page_header {
15
- @include pad_portrait {
16
- padding: 110px 8% 5% 8%;
17
- }
18
- }
19
-
20
- .js .page .internal_links_page {
21
- .scroller > div {
22
- padding: 15% 14% 5% 8%;
23
- width: 100%;
24
- }
25
- }
26
-
27
3
  .internal_links_page {
28
4
  nav {
29
5
  position: relative;
@@ -75,12 +51,6 @@
75
51
  top: 50%;
76
52
  left: 0;
77
53
  width: 100%;
78
- color: white;
79
- text-transform: uppercase;
80
- text-align: center;
81
- line-height: 1.2em;
82
- letter-spacing: 0.05em;
83
- font-size: 0.8em;
84
54
  opacity: 0;
85
55
  z-index: 1;
86
56
  @include transform(translate3d(0,-50%,0));
@@ -95,7 +65,7 @@
95
65
  .placeholder,
96
66
  .thumbnail {
97
67
  &:after {
98
- opacity: 0.8;
68
+ opacity: 1;
99
69
  }
100
70
  }
101
71
  }
@@ -104,7 +74,6 @@
104
74
  .thumbnail {
105
75
  &:after {
106
76
  opacity: 0;
107
- background-color: black;
108
77
  width: 100%;
109
78
  height: 100%;
110
79
  position: absolute;
@@ -151,11 +120,6 @@
151
120
  padding-top: 58.5%;
152
121
  }
153
122
 
154
- .title {
155
- font-size: 1em;
156
- line-height: 1.4em;
157
- }
158
-
159
123
  &.empty {
160
124
  padding-top: 22.815%;
161
125
 
@@ -210,20 +174,6 @@
210
174
  }
211
175
  }
212
176
 
213
- .invert .internal_links_page {
214
- nav {
215
- .thumbnail, .placeholder {
216
- &:after {
217
- background-color: white;
218
- }
219
- }
220
-
221
- .title {
222
- color: black;
223
- }
224
- }
225
- }
226
-
227
177
  .text_position_right .internal_links_page {
228
178
  nav {
229
179
  margin-left: auto;
@@ -2,3 +2,6 @@
2
2
  $directory: "pageflow/internal_links/themes/default/pictograms/grid");
3
3
  @include pageflow-page-type-pictograms("internal_links_list",
4
4
  $directory: "pageflow/internal_links/themes/default/pictograms/list");
5
+
6
+ @import "./default/grid/colors";
7
+ @import "./default/grid/typography";
@@ -0,0 +1,41 @@
1
+ /// Color of overlay displayed when hovering a grid item
2
+ $internal-links-grid-item-active-background-color: rgba(0, 0, 0, 0.8) !default;
3
+
4
+ /// Color of text displayed when hovering a grid item
5
+ $internal-links-grid-item-active-text-color: #fff !default;
6
+
7
+ /// Color of overlay displayed when hovering a grid item on an inverted page
8
+ $internal-links-grid-item-inverted-active-background-color: rgba(255, 255, 255, 0.8) !default;
9
+
10
+ /// Color of text displayed when hovering a grid item on an inverted page
11
+ $internal-links-grid-item-inverted-active-text-color: #000 !default;
12
+
13
+ .internal_links_page {
14
+ nav {
15
+ .title {
16
+ color: $internal-links-grid-item-active-text-color;
17
+ }
18
+
19
+ .placeholder,
20
+ .thumbnail {
21
+ &:after {
22
+ background-color: $internal-links-grid-item-active-background-color;
23
+ }
24
+ }
25
+ }
26
+ }
27
+
28
+ .invert .internal_links_page {
29
+ nav {
30
+ .thumbnail,
31
+ .placeholder {
32
+ &:after {
33
+ background-color: $internal-links-grid-item-inverted-active-background-color;
34
+ }
35
+ }
36
+
37
+ .title {
38
+ color: $internal-links-grid-item-inverted-active-text-color;
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,35 @@
1
+ // Typography of the title displayed in grid items
2
+ $internal-links-grid-item-typography: () !default;
3
+
4
+ // Typography of the title displayed in large grid item
5
+ $internal-links-grid-hero-item-typography: () !default;
6
+
7
+ .internal_links_page {
8
+ nav {
9
+ .title {
10
+ @include typography(
11
+ $internal-links-grid-item-typography,
12
+ (
13
+ text-transform: uppercase,
14
+ text-align: center,
15
+ line-height: 1.2em,
16
+ letter-spacing: 0.05em,
17
+ font-size: 0.8em
18
+ )
19
+ );
20
+ }
21
+
22
+ &[data-layout="hero_top_left"],
23
+ &[data-layout="hero_top_right"] {
24
+ .title {
25
+ @include typography(
26
+ $internal-links-grid-hero-item-typography,
27
+ (
28
+ font-size: 1em,
29
+ line-height: 1.4em
30
+ )
31
+ );
32
+ }
33
+ }
34
+ }
35
+ }
@@ -17,7 +17,6 @@ de:
17
17
  views:
18
18
  edit_page_link_view:
19
19
  confirm_destroy: Verweis wirklich löschen?
20
- default_page_transition: "(Standard)"
21
20
  grid:
22
21
  help_entries:
23
22
  page_type:
@@ -17,7 +17,6 @@ en:
17
17
  views:
18
18
  edit_page_link_view:
19
19
  confirm_destroy: Really delete this link?
20
- default_page_transition: Default page transition
21
20
  grid:
22
21
  help_entries:
23
22
  page_type:
@@ -1,5 +1,5 @@
1
1
  module Pageflow
2
2
  module InternalLinks
3
- VERSION = '1.0.0'.freeze
3
+ VERSION = '1.1.0'.freeze
4
4
  end
5
5
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
 
19
19
  spec.required_ruby_version = '~> 2.1'
20
20
 
21
- spec.add_runtime_dependency('pageflow', '~> 12.x')
21
+ spec.add_runtime_dependency('pageflow', ['>= 12.0', '< 14'])
22
22
 
23
23
  spec.add_development_dependency 'bundler', '~> 1.0'
24
24
  spec.add_development_dependency 'rake', '~> 12.0'
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-internal-links
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codevise Solutions
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-11 00:00:00.000000000 Z
11
+ date: 2018-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pageflow
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '12.0'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: 12.x
22
+ version: '14'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '12.0'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: 12.x
32
+ version: '14'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: bundler
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -121,6 +127,8 @@ files:
121
127
  - app/assets/stylesheets/pageflow/internal_links/grid.scss
122
128
  - app/assets/stylesheets/pageflow/internal_links/list.scss
123
129
  - app/assets/stylesheets/pageflow/internal_links/themes/default.scss
130
+ - app/assets/stylesheets/pageflow/internal_links/themes/default/grid/colors.scss
131
+ - app/assets/stylesheets/pageflow/internal_links/themes/default/grid/typography.scss
124
132
  - app/assets/stylesheets/pageflow/internal_links/themes/default/list_as_multiple_choice.scss
125
133
  - app/helpers/pageflow/internal_links/grid_helper.rb
126
134
  - app/helpers/pageflow/internal_links/list_helper.rb
@@ -160,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
168
  version: '0'
161
169
  requirements: []
162
170
  rubyforge_project:
163
- rubygems_version: 2.6.8
171
+ rubygems_version: 2.7.5
164
172
  signing_key:
165
173
  specification_version: 4
166
174
  summary: Pageflow page types for linking to other pages.