pageflow-text-page 1.5.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/tests.yml +6 -0
- data/CHANGELOG.md +8 -6
- data/Gemfile +3 -0
- data/README.md +1 -1
- data/app/assets/stylesheets/pageflow/text_page/themes/default.scss +27 -6
- data/app/assets/stylesheets/pageflow/text_page.scss +0 -3
- data/app/helper/pageflow/text_page/image_helper.rb +11 -11
- data/lib/pageflow/text_page/version.rb +1 -1
- data/pageflow-text-page.gemspec +2 -2
- metadata +12 -13
- data/.travis.yml +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc4be6e3bbfc0bb1e40868f8029890da105a7d69a1ac3296f1263b8b2e1982b3
|
4
|
+
data.tar.gz: 19eadcf0f6d85870a19f8001a4b9b271d41f3a196b6b52748e2c3d7563ea1d6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7947ee4d7679f8b2316e62908687998046f2f7d742cd1a30e70952e4c919d0908c681750af198ad647a845518031a5bd51eca1749059424f47e5bf2af41a4f6f
|
7
|
+
data.tar.gz: 021e7ef62323e6f59a989903d9dd4bdc6acbb43c650727d3491c6381424e1bf8f1fb4a71e238543ddcabcb0e5ba4cca4aba989477cffc7601facefc06da9d873
|
data/CHANGELOG.md
CHANGED
@@ -1,14 +1,16 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
-
### Version 1.
|
3
|
+
### Version 1.7.0
|
4
4
|
|
5
|
-
|
5
|
+
2022-12-28
|
6
6
|
|
7
|
-
[Compare changes](https://github.com/codevise/pageflow-text-page/compare/1-
|
7
|
+
[Compare changes](https://github.com/codevise/pageflow-text-page/compare/1-6-stable...v1.7.0)
|
8
8
|
|
9
|
-
-
|
10
|
-
([#
|
9
|
+
- Add support for Pageflow 16
|
10
|
+
([#33](https://github.com/codevise/pageflow-text-page/pull/33))
|
11
|
+
- Add theme options for content text colors
|
12
|
+
([#32](https://github.com/codevise/pageflow-text-page/pull/32))
|
11
13
|
|
12
14
|
See
|
13
|
-
[1-
|
15
|
+
[1-6-stable branch](https://github.com/codevise/pageflow-text-page/blob/1-6-stable/CHANGELOG.md)
|
14
16
|
for previous changes.
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Pageflow Text Page
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/pageflow-text-page.svg)](http://badge.fury.io/rb/pageflow-text-page)
|
4
|
-
[![Build Status](https://
|
4
|
+
[![Build Status](https://github.com/codevise/pageflow-text-page/workflows/tests/badge.svg)](https://github.com/codevise/pageflow-text-page/actions)
|
5
5
|
|
6
6
|
Page type to display large texts on a page.
|
7
7
|
|
@@ -4,6 +4,12 @@ $text-page-content-text-base-font-size: 0.8em !default;
|
|
4
4
|
/// Used to undo scaling of text title and content text on phone
|
5
5
|
$text-page-content-text-phone-base-font-size: 1em !default;
|
6
6
|
|
7
|
+
$text-page-content-text-color: #000 !default;
|
8
|
+
$text-page-content-text-inverted-color: #fff !default;
|
9
|
+
|
10
|
+
$text-page-text-title-color: null !default;
|
11
|
+
$text-page-text-title-inverted-color: null !default;
|
12
|
+
|
7
13
|
/// Typography of the header displayed above the content text
|
8
14
|
/// paragraph.
|
9
15
|
$text-page-text-title-typography: () !default;
|
@@ -29,13 +35,18 @@ $text-page-anchor-inverted-color: $page-anchor-color !default;
|
|
29
35
|
@include pageflow-page-type-pictograms("text_page");
|
30
36
|
|
31
37
|
.page .text_page {
|
38
|
+
.inline_text_position_left {
|
39
|
+
.page_text {
|
40
|
+
@include wide_desktop {
|
41
|
+
max-width: $text-page-page-text-wide-desktop-max-width;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
32
46
|
.page_text {
|
33
47
|
font-size: $text-page-content-text-base-font-size;
|
34
48
|
max-width: 500px;
|
35
|
-
|
36
|
-
@include wide_desktop {
|
37
|
-
max-width: $text-page-page-text-wide-desktop-max-width;
|
38
|
-
}
|
49
|
+
color: $text-page-content-text-color;
|
39
50
|
|
40
51
|
@include phone {
|
41
52
|
font-size: $text-page-content-text-phone-base-font-size;
|
@@ -47,6 +58,8 @@ $text-page-anchor-inverted-color: $page-anchor-color !default;
|
|
47
58
|
}
|
48
59
|
|
49
60
|
.page_sub_header {
|
61
|
+
color: $text-page-text-title-color;
|
62
|
+
|
50
63
|
@include typography(
|
51
64
|
$text-page-text-title-typography,
|
52
65
|
(
|
@@ -73,8 +86,16 @@ $text-page-anchor-inverted-color: $page-anchor-color !default;
|
|
73
86
|
color: $text-page-inline-image-caption-inverted-text-color;
|
74
87
|
}
|
75
88
|
|
76
|
-
.page_text
|
77
|
-
color: $text-page-
|
89
|
+
.page_text {
|
90
|
+
color: $text-page-content-text-inverted-color;
|
91
|
+
|
92
|
+
a {
|
93
|
+
color: $text-page-anchor-inverted-color;
|
94
|
+
}
|
95
|
+
|
96
|
+
.page_sub_header {
|
97
|
+
color: $text-page-text-title-inverted-color;
|
98
|
+
}
|
78
99
|
}
|
79
100
|
}
|
80
101
|
}
|
@@ -67,7 +67,6 @@ $inverted-background-color: black;
|
|
67
67
|
|
68
68
|
.contentInnerWrapper {
|
69
69
|
position: relative;
|
70
|
-
color: black;
|
71
70
|
|
72
71
|
.content_background_layer {
|
73
72
|
height: 100%;
|
@@ -380,8 +379,6 @@ $inverted-background-color: black;
|
|
380
379
|
&.invert_text .scroller {
|
381
380
|
> div {
|
382
381
|
.contentInnerWrapper {
|
383
|
-
color: white;
|
384
|
-
|
385
382
|
.content_background_layer {
|
386
383
|
background-color: black;
|
387
384
|
}
|
@@ -1,28 +1,28 @@
|
|
1
1
|
module Pageflow
|
2
2
|
module TextPage
|
3
3
|
module ImageHelper
|
4
|
-
def content_image(
|
5
|
-
image =
|
4
|
+
def content_image(perma_id, alt, format = :medium)
|
5
|
+
image = find_file_in_entry(ImageFile, perma_id)
|
6
6
|
if image
|
7
|
-
image_tag(image.attachment.url(:
|
7
|
+
image_tag(image.attachment.url(format), alt: alt)
|
8
8
|
else
|
9
9
|
''
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
|
-
def content_image_large(
|
14
|
-
image =
|
13
|
+
def content_image_large(perma_id, alt, format = :large)
|
14
|
+
image = find_file_in_entry(ImageFile, perma_id)
|
15
15
|
if image
|
16
|
-
image_tag(image.attachment.url(:
|
16
|
+
image_tag(image.attachment.url(format), alt: alt)
|
17
17
|
else
|
18
18
|
''
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
-
def fullscreen_image_url(
|
23
|
-
image =
|
22
|
+
def fullscreen_image_url(perma_id, format = :large)
|
23
|
+
image = find_file_in_entry(ImageFile, perma_id)
|
24
24
|
if image
|
25
|
-
return image.attachment.url(
|
25
|
+
return image.attachment.url(format)
|
26
26
|
else
|
27
27
|
'#'
|
28
28
|
end
|
@@ -31,9 +31,9 @@ module Pageflow
|
|
31
31
|
def background_asset_present_css_class(configuration)
|
32
32
|
file =
|
33
33
|
if configuration['background_type'] == 'video'
|
34
|
-
|
34
|
+
find_file_in_entry(VideoFile, configuration['video_file_id'])
|
35
35
|
else
|
36
|
-
|
36
|
+
find_file_in_entry(ImageFile, configuration['background_image_id'])
|
37
37
|
end
|
38
38
|
|
39
39
|
file ? '' : 'no_background_asset'
|
data/pageflow-text-page.gemspec
CHANGED
@@ -18,11 +18,11 @@ Gem::Specification.new do |spec|
|
|
18
18
|
|
19
19
|
spec.required_ruby_version = '~> 2.1'
|
20
20
|
|
21
|
-
spec.add_runtime_dependency 'pageflow', ['>=
|
21
|
+
spec.add_runtime_dependency 'pageflow', ['>= 15', '< 17']
|
22
22
|
spec.add_runtime_dependency 'pageflow-public-i18n', '~> 1.0'
|
23
23
|
|
24
24
|
spec.add_development_dependency 'bundler', ['>= 1.0', '< 3']
|
25
|
-
spec.add_development_dependency 'pageflow-support', ['>=
|
25
|
+
spec.add_development_dependency 'pageflow-support', ['>= 15', '< 17']
|
26
26
|
spec.add_development_dependency 'rake', '~> 12.0'
|
27
27
|
spec.add_development_dependency 'rspec-rails', '~> 3.0'
|
28
28
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pageflow-text-page
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Codevise Solutions Ltd.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pageflow
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '15'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '17'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '15'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '17'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: pageflow-public-i18n
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,20 +70,20 @@ dependencies:
|
|
70
70
|
requirements:
|
71
71
|
- - ">="
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: '
|
73
|
+
version: '15'
|
74
74
|
- - "<"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
76
|
+
version: '17'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '
|
83
|
+
version: '15'
|
84
84
|
- - "<"
|
85
85
|
- !ruby/object:Gem::Version
|
86
|
-
version: '
|
86
|
+
version: '17'
|
87
87
|
- !ruby/object:Gem::Dependency
|
88
88
|
name: rake
|
89
89
|
requirement: !ruby/object:Gem::Requirement
|
@@ -133,10 +133,10 @@ executables: []
|
|
133
133
|
extensions: []
|
134
134
|
extra_rdoc_files: []
|
135
135
|
files:
|
136
|
+
- ".github/workflows/tests.yml"
|
136
137
|
- ".gitignore"
|
137
138
|
- ".jshintignore"
|
138
139
|
- ".jshintrc"
|
139
|
-
- ".travis.yml"
|
140
140
|
- CHANGELOG.md
|
141
141
|
- Gemfile
|
142
142
|
- README.md
|
@@ -185,8 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
185
|
- !ruby/object:Gem::Version
|
186
186
|
version: '0'
|
187
187
|
requirements: []
|
188
|
-
|
189
|
-
rubygems_version: 2.7.5
|
188
|
+
rubygems_version: 3.0.8
|
190
189
|
signing_key:
|
191
190
|
specification_version: 4
|
192
191
|
summary: Pageflow Page Type text pages
|