pageflow 12.0.0.rc3 → 12.0.0.rc4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pageflow might be problematic. Click here for more details.

Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/app/models/pageflow/roles.rb +4 -1
  4. data/app/views/components/pageflow/admin/user_accounts_tab.rb +6 -5
  5. data/app/views/components/pageflow/admin/user_entries_tab.rb +8 -7
  6. data/lib/pageflow/version.rb +1 -1
  7. data/lib/pageflow/view_component.rb +1 -10
  8. metadata +2 -25
  9. data/app/assets/images/pageflow/themes/legacy/menu-arrow-short.png +0 -0
  10. data/app/assets/images/pageflow/themes/legacy/menu_mobile_imprint.png +0 -0
  11. data/app/assets/images/pageflow/themes/legacy/menu_mobile_sharing.png +0 -0
  12. data/app/assets/images/pageflow/themes/legacy/menu_mobile_sprite3.png +0 -0
  13. data/app/assets/images/pageflow/themes/legacy/mobile_sharing.png +0 -0
  14. data/app/assets/images/pageflow/themes/legacy/page_thumbnail_mask.png +0 -0
  15. data/app/assets/images/pageflow/themes/legacy/scroll_down_indicator.png +0 -0
  16. data/app/assets/images/pageflow/themes/legacy/scroll_down_indicator_invert.png +0 -0
  17. data/app/assets/images/pageflow/themes/legacy/scroll_indicator_sprite.png +0 -0
  18. data/app/assets/images/pageflow/themes/legacy/touch_indicator.png +0 -0
  19. data/app/assets/images/pageflow/themes/legacy/touch_indicator_invert.png +0 -0
  20. data/app/assets/images/pageflow/themes/legacy/volume_control_sprite.png +0 -0
  21. data/app/assets/stylesheets/pageflow/themes/legacy.scss +0 -8
  22. data/app/assets/stylesheets/pageflow/themes/legacy/indicators.scss +0 -64
  23. data/app/assets/stylesheets/pageflow/themes/legacy/navigation.scss +0 -262
  24. data/app/assets/stylesheets/pageflow/themes/legacy/navigation_mobile.scss +0 -52
  25. data/app/assets/stylesheets/pageflow/themes/legacy/overview.scss +0 -50
  26. data/app/assets/stylesheets/pageflow/themes/legacy/page.scss +0 -48
  27. data/app/assets/stylesheets/pageflow/themes/legacy/page_types.scss +0 -2
  28. data/app/assets/stylesheets/pageflow/themes/legacy/page_types/audio.scss +0 -5
  29. data/app/assets/stylesheets/pageflow/themes/legacy/page_types/video.scss +0 -120
  30. data/app/assets/stylesheets/pageflow/themes/legacy/player_controls.scss +0 -364
  31. data/app/assets/stylesheets/pageflow/themes/legacy/video_player.scss +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bdda86a7651604acbc2fcd947408cfa39fec92b0
4
- data.tar.gz: 4871846efc3baf5a247310ef19059d6584c3e75f
3
+ metadata.gz: 5e9d7ee3858177965bae6a99ab766a47d99e378d
4
+ data.tar.gz: e0e1d1c4ac6b3c8078096ede75861ead51491a63
5
5
  SHA512:
6
- metadata.gz: f6f9f206ce5ef78cc200fd3b94ef57edbb9493de28cbffcf863ecbdcbda2e901de679aa838777d5cc2edbd05b2e4133f3436b2b2fb79bd5367984a26f995ec0e
7
- data.tar.gz: 53945fb69b645f38ce6a82f8e9b9ec3dc02e1669704e560dd5b60bbe38cc42d26e0a1785786ab29e82accb1a7863d4968466dd89507c57b9bf8643c493ad54f6
6
+ metadata.gz: 658f05b900adab883cf1dfa36a08733ca8d851b0f28d7bf10f3c7da14adea54586c988fbf08c02060f063a73e5b8311a3683959dd3d8403e97e5916b2a047cd7
7
+ data.tar.gz: 7ffb315ba5b767a1c1a0234d465eac90a80f1ce85d773470f1dfdc4ba960b590c6e35ecbaad850fa63bd4dfc4eac0a164eb0bfb0a3636c9f2e240c3ac046872a
@@ -1,5 +1,24 @@
1
1
  # CHANGELOG
2
2
 
3
+ ### Version 12.0.0.rc4
4
+
5
+ 2017-05-23
6
+
7
+ [Compare changes](https://github.com/codevise/pageflow/compare/v12.0.0.rc3...v12.0.0.rc4)
8
+
9
+ ##### Breaking Changes
10
+
11
+ - Remove legacy theme files. All themes have to be based on the
12
+ default theme.
13
+ ([#768](https://github.com/codevise/pageflow/pull/768))
14
+
15
+ ##### Bug Fixes
16
+
17
+ - Bug fix: Fix exception when sorting user accounts table by role
18
+ ([#769](https://github.com/codevise/pageflow/pull/769))
19
+ - Bug fix: Change roles.high to not expect account membership
20
+ ([#766](https://github.com/codevise/pageflow/pull/766))
21
+
3
22
  ### Version 12.0.0.rc3
4
23
 
5
24
  2017-05-12
@@ -19,7 +19,10 @@ module Pageflow
19
19
 
20
20
  def high(user, entry)
21
21
  roles = [:none, :member, :previewer, :editor, :publisher, :manager]
22
- account_role = Membership.where(user: user, entity: entry.account).first.role || :none
22
+
23
+ account_membership = Membership.where(user: user, entity: entry.account).first
24
+ account_role = account_membership ? account_membership.role : :none
25
+
23
26
  if user.entries.include?(entry)
24
27
  entry_role = Membership.where(user: user, entity: entry).first.role
25
28
  else
@@ -2,15 +2,16 @@ module Pageflow
2
2
  module Admin
3
3
  class UserAccountsTab < ViewComponent
4
4
  def build(user)
5
- embedded_index_table(user.memberships.on_accounts.includes(:account)
6
- .accessible_by(current_ability, :index),
5
+ embedded_index_table(user.memberships.on_accounts
6
+ .includes(:account).references(:pageflow_accounts)
7
+ .accessible_by(current_ability, :index),
7
8
  blank_slate_text: t('pageflow.admin.users.no_accounts')) do
8
9
  table_for_collection class: 'memberships', sortable: true, i18n: Pageflow::Membership do
9
10
  column :account, sortable: 'pageflow_accounts.name' do |membership|
10
- if authorized?(:read, membership.entity)
11
- link_to(membership.entity.name, admin_account_path(membership.entity))
11
+ if authorized?(:read, membership.account)
12
+ link_to(membership.account.name, admin_account_path(membership.account))
12
13
  else
13
- membership.entity.name
14
+ membership.account.name
14
15
  end
15
16
  end
16
17
  column :role, sortable: 'pageflow_memberships.role' do |membership|
@@ -2,22 +2,23 @@ module Pageflow
2
2
  module Admin
3
3
  class UserEntriesTab < ViewComponent
4
4
  def build(user)
5
- embedded_index_table(user.memberships.on_entries.includes(:entry, entry: :account)
6
- .accessible_by(current_ability, :index),
5
+ embedded_index_table(user.memberships.on_entries
6
+ .includes(:entry, entry: :account).references(:pageflow_entries)
7
+ .accessible_by(current_ability, :index),
7
8
  blank_slate_text: t('pageflow.admin.users.no_entries')) do
8
9
  table_for_collection class: 'memberships', sortable: true, i18n: Pageflow::Membership do
9
10
  column :entry, sortable: 'pageflow_entries.title' do |membership|
10
- link_to(membership.entity.title, admin_entry_path(membership.entity))
11
+ link_to(membership.entry.title, admin_entry_path(membership.entry))
11
12
  end
12
13
  column :role, sortable: 'pageflow_memberships.role' do |membership|
13
14
  membership_role_with_tooltip(membership.role, scope: 'entries')
14
15
  end
15
16
  column :account, sortable: 'pageflow_accounts.name' do |membership|
16
- if authorized?(:read, membership.entity.account)
17
- link_to(membership.entity.account.name,
18
- admin_account_path(membership.entity.account))
17
+ if authorized?(:read, membership.entry.account)
18
+ link_to(membership.entry.account.name,
19
+ admin_account_path(membership.entry.account))
19
20
  else
20
- membership.entity.account.name
21
+ membership.entry.account.name
21
22
  end
22
23
  end
23
24
  column :created_at, sortable: 'pageflow_memberships.created_at'
@@ -1,3 +1,3 @@
1
1
  module Pageflow
2
- VERSION = '12.0.0.rc3'.freeze
2
+ VERSION = '12.0.0.rc4'.freeze
3
3
  end
@@ -1,14 +1,5 @@
1
1
  module Pageflow
2
- # Base class for Arbre components defined by Pageflow. Store the
3
- # builder method name to facilitate calling it in specs.
2
+ # Base class for Arbre components defined by Pageflow.
4
3
  class ViewComponent < Arbre::Component
5
- class << self
6
- attr_reader :builder_method_name
7
- end
8
-
9
- def self.builder_method(name)
10
- @builder_method_name = name
11
- super
12
- end
13
4
  end
14
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.0.0.rc3
4
+ version: 12.0.0.rc4
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: 2017-05-12 00:00:00.000000000 Z
11
+ date: 2017-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -926,18 +926,6 @@ files:
926
926
  - app/assets/images/pageflow/themes/default/player_controls_loading_spinner.png
927
927
  - app/assets/images/pageflow/themes/default/player_controls_sprite.png
928
928
  - app/assets/images/pageflow/themes/default/text_sprite.png
929
- - app/assets/images/pageflow/themes/legacy/menu-arrow-short.png
930
- - app/assets/images/pageflow/themes/legacy/menu_mobile_imprint.png
931
- - app/assets/images/pageflow/themes/legacy/menu_mobile_sharing.png
932
- - app/assets/images/pageflow/themes/legacy/menu_mobile_sprite3.png
933
- - app/assets/images/pageflow/themes/legacy/mobile_sharing.png
934
- - app/assets/images/pageflow/themes/legacy/page_thumbnail_mask.png
935
- - app/assets/images/pageflow/themes/legacy/scroll_down_indicator.png
936
- - app/assets/images/pageflow/themes/legacy/scroll_down_indicator_invert.png
937
- - app/assets/images/pageflow/themes/legacy/scroll_indicator_sprite.png
938
- - app/assets/images/pageflow/themes/legacy/touch_indicator.png
939
- - app/assets/images/pageflow/themes/legacy/touch_indicator_invert.png
940
- - app/assets/images/pageflow/themes/legacy/volume_control_sprite.png
941
929
  - app/assets/images/pageflow/video_controls.png
942
930
  - app/assets/images/pageflow/video_pictogram.png
943
931
  - app/assets/images/pageflow/video_pictogram_small.png
@@ -1542,17 +1530,6 @@ files:
1542
1530
  - app/assets/stylesheets/pageflow/themes/default/video_player.scss
1543
1531
  - app/assets/stylesheets/pageflow/themes/default/video_player/vjs_base.scss
1544
1532
  - app/assets/stylesheets/pageflow/themes/default/video_wrapper.scss
1545
- - app/assets/stylesheets/pageflow/themes/legacy.scss
1546
- - app/assets/stylesheets/pageflow/themes/legacy/indicators.scss
1547
- - app/assets/stylesheets/pageflow/themes/legacy/navigation.scss
1548
- - app/assets/stylesheets/pageflow/themes/legacy/navigation_mobile.scss
1549
- - app/assets/stylesheets/pageflow/themes/legacy/overview.scss
1550
- - app/assets/stylesheets/pageflow/themes/legacy/page.scss
1551
- - app/assets/stylesheets/pageflow/themes/legacy/page_types.scss
1552
- - app/assets/stylesheets/pageflow/themes/legacy/page_types/audio.scss
1553
- - app/assets/stylesheets/pageflow/themes/legacy/page_types/video.scss
1554
- - app/assets/stylesheets/pageflow/themes/legacy/player_controls.scss
1555
- - app/assets/stylesheets/pageflow/themes/legacy/video_player.scss
1556
1533
  - app/assets/stylesheets/pageflow/ui.scss
1557
1534
  - app/assets/stylesheets/pageflow/ui/forms.scss
1558
1535
  - app/assets/stylesheets/pageflow/ui/input/extended_select_input.scss
@@ -1,8 +0,0 @@
1
- @import "video-js";
2
-
3
- @import "./legacy/indicators";
4
- @import "./legacy/page_types";
5
- @import "./legacy/navigation";
6
- @import "./legacy/overview";
7
- @import "./legacy/video_player";
8
- @import "./legacy/player_controls";
@@ -1,64 +0,0 @@
1
- // scss-lint:disable all
2
-
3
- .entry {
4
- .indicator {
5
- color: #e6e6e6;
6
-
7
- text-transform: uppercase;
8
- text-shadow: 1px 1px 4px rgba(43, 43, 43, 1);
9
- font-size: 0.92em;
10
- letter-spacing: 0.2em;
11
-
12
- padding-left: 40px;
13
- font-family: sourcesanspro;
14
- padding-top: 6px;
15
-
16
- &:before {
17
- background-size: auto auto;
18
- background-position: top left;
19
- background-repeat: no-repeat;
20
- content: "";
21
- width: 100%;
22
- height: 100%;
23
- left: 0;
24
- top: 1px;
25
- position: absolute;
26
- }
27
-
28
- @include phone {
29
- text-shadow: 1px 1px 1px rgba(43, 43, 43, 1);
30
- font-size: 0.8em;
31
- letter-spacing: 0.1em;
32
- }
33
- }
34
-
35
- .scroll_indicator {
36
- &:before {
37
- background-image: image-url("pageflow/themes/legacy/scroll_down_indicator.png");
38
- }
39
-
40
- &.invert {
41
- text-shadow: 1px 1px 4px #FDFDFD;
42
- color: #0A0A0A;
43
-
44
- &:before {
45
- background-image: image-url("pageflow/themes/legacy/scroll_down_indicator_invert.png");
46
- }
47
- }
48
- }
49
-
50
- .hidden_text_indicator {
51
- display: none;
52
- left: 8%;
53
-
54
- &:before {
55
- background-image: image-url("pageflow/themes/legacy/touch_indicator.png");
56
- }
57
-
58
- &.invert {
59
- &:before {
60
- background-image: image-url("pageflow/themes/legacy/touch_indicator_invert.png");
61
- }
62
- }
63
- }
64
- }
@@ -1,262 +0,0 @@
1
- // scss-lint:disable all
2
-
3
- $bg-color: #353535;
4
- $nav-color: #9c9c9c;
5
-
6
- .navigation {
7
- color: $nav-color;
8
-
9
- @mixin box {
10
- background-color: $bg-color;
11
- border: 2px solid $nav-color;
12
- right: 90px;
13
-
14
- &:before {
15
- content: " ";
16
- background-image: image-url("pageflow/themes/legacy/menu-arrow-short.png");
17
- display: block;
18
- position: absolute;
19
- width: 10px;
20
- height: 38px;
21
- left: 100%;
22
- top: 4px;
23
- }
24
- }
25
-
26
- a {
27
- @include hover {
28
- -webkit-mask-image: image-url("pageflow/themes/legacy/page_thumbnail_mask.png");
29
- -webkit-mask-position-y: 2px;
30
- }
31
- }
32
-
33
- .navigation_site_detail {
34
- @include box;
35
- font-size: 1em;
36
- line-height: 1.1em;
37
- font-family: sourcesanspro;
38
- color: white;
39
- }
40
-
41
- .navigation_bullet {
42
- background-color: $bg-color;
43
-
44
- @include hover {
45
- -webkit-mask-image: none;
46
- }
47
- }
48
-
49
- .navigation_menu {
50
- a {
51
- -webkit-mask-position-y: -4px !important;
52
- }
53
- }
54
-
55
- .navigation_menu_box {
56
- @include box;
57
-
58
- a {
59
- @include hover {
60
- -webkit-mask-image: none;
61
- }
62
- }
63
-
64
- &:before {
65
- top: auto;
66
- bottom: -2px;
67
- }
68
- }
69
-
70
- .navigation_share_box {
71
- $size: 28px;
72
- width: 210px;
73
-
74
- a {
75
- float: left;
76
- text-decoration: none;
77
- padding: 0 15px 0 15px;
78
- width: 39px;
79
-
80
- p {
81
- color: $nav-color;
82
- font-size: 9px;
83
- margin-bottom: 0;
84
- text-align: center;
85
- }
86
-
87
- .button {
88
- width: $size;
89
- height: $size;
90
- margin: auto;
91
- }
92
- }
93
- }
94
-
95
- .navigation_credits_box {
96
- font-family: "sourcesanspro";
97
- font-size: 1em;
98
-
99
- a {
100
- color: #b4c552;
101
- }
102
- }
103
- }
104
-
105
- .navigation.js {
106
- .navigation_bg,
107
- .navigation_bullet .button {
108
- background-repeat: no-repeat;
109
- border-bottom: 2px solid $nav-color;
110
- }
111
-
112
- .navigation_bar_top,
113
- .navigation_bar_bottom {
114
- opacity: 0.9;
115
-
116
- li:last-child a .button {
117
- border-bottom: none;
118
- }
119
- }
120
-
121
- .navigation_bar_top {
122
- top: 0;
123
- height: 180px;
124
-
125
- &:after {
126
- background-color: $bg-color;
127
- content: " ";
128
- display: block;
129
- height: 50px;
130
- width: 100%;
131
- }
132
- }
133
-
134
- .scroller {
135
- top: 180px;
136
- bottom: 268px;
137
-
138
- &:after {
139
- background-color: $bg-color;
140
- opacity: 0.9;
141
- }
142
-
143
- a {
144
- background-color: $bg-color;
145
- background-color: rgba(53, 53, 53, 0.9);
146
-
147
- &.active {
148
- img {
149
- border-left: 5px solid #A6D513;
150
- }
151
- }
152
- }
153
- }
154
-
155
- &.with_home_button {
156
- .navigation_bar_top {
157
- height: 224px;
158
- }
159
-
160
- .scroller {
161
- top: 224px;
162
- }
163
-
164
- .navigation_scroll_indicator.top {
165
- top: 189px;
166
- }
167
- }
168
-
169
- a.navigation_scroll_indicator {
170
- $normal-offset: -14px;
171
- $hover-offset: -115px;
172
- $pressed-offset: -64px;
173
-
174
- background-image: image-url("pageflow/themes/legacy/scroll_indicator_sprite.png");
175
- background-repeat: no-repeat;
176
- background-color: transparent;
177
- width: 35px;
178
- height: 30px;
179
- right: 25px;
180
- -webkit-mask-image: none;
181
-
182
- &.top {
183
- top: 145px;
184
-
185
- $top-offset: -13px;
186
- background-position: $top-offset $normal-offset;
187
-
188
- @include hover {
189
- background-position: $top-offset $hover-offset;
190
- }
191
-
192
- @include pressed {
193
- background-position: $top-offset $pressed-offset;
194
- }
195
- }
196
-
197
- &.bottom {
198
- bottom: 234px;
199
-
200
- $bottom-offset: -161px;
201
- background-position: $bottom-offset $normal-offset;
202
-
203
- @include hover {
204
- background-position: $bottom-offset $hover-offset;
205
- }
206
-
207
- @include pressed {
208
- background-position: $bottom-offset $pressed-offset;
209
- }
210
- }
211
- }
212
-
213
- .navigation_bar_bottom {
214
- height: 268px;
215
- bottom: 0;
216
-
217
- & > li > a {
218
- background-color: $bg-color;
219
- }
220
-
221
- .indicator {
222
- background-color: $bg-color;
223
- }
224
-
225
- .fullscreen {
226
- background-color: $bg-color;
227
- }
228
- }
229
-
230
- .navigation_menu_box.navigation_volume_box .volume-control {
231
- &:before, &:after {
232
- background-image: image-url('pageflow/themes/legacy/volume_control_sprite.png');
233
- position: absolute;
234
- width: 19px;
235
- height: 19px;
236
- content: " ";
237
- background-repeat: no-repeat;
238
- top: 8px;
239
- }
240
-
241
- &:before {
242
- background-position: left top;
243
- left: 0;
244
- left: 12px;
245
- }
246
- &:after {
247
- right: 8px;
248
- background-position: -21px top;
249
- top: 8px;
250
- }
251
- }
252
-
253
- .volume-control {
254
- .volume-slider {
255
- background-color: gray;
256
- }
257
-
258
- .volume-level {
259
- background-color: #b4c552;
260
- }
261
- }
262
- }
@@ -1,52 +0,0 @@
1
- // scss-lint:disable all
2
-
3
- .navigation_mobile {
4
- font-family: sourcesanspro;
5
-
6
- .menu {
7
- background-image: image-url('pageflow/themes/legacy/menu_mobile_sprite3.png');
8
-
9
- &.imprint {
10
- background-image: image-url('pageflow/themes/legacy/menu_mobile_imprint.png');
11
- }
12
-
13
- &.sharing {
14
- background-image: image-url('pageflow/themes/legacy/menu_mobile_sharing.png');
15
- }
16
- }
17
-
18
- .wrapper {
19
- a.active {
20
- border-left: 5px solid #A6D513;
21
- }
22
- .credits {
23
- color: grey;
24
- }
25
- }
26
-
27
- .overview_mobile, .imprint_mobile, .sharing_mobile {
28
- background-color: #232323;
29
-
30
- .credits{
31
- font-family: "sourcesanspro";
32
-
33
- a {
34
- color: #b4c552;
35
-
36
- &:hover {
37
- color: white;
38
- }
39
- }
40
- }
41
- }
42
-
43
- &.active {
44
- .sharing_mobile li > a {
45
- color: white;
46
-
47
- &:before {
48
- background-image: image-url('pageflow/themes/legacy/mobile_sharing.png');
49
- }
50
- }
51
- }
52
- }
@@ -1,50 +0,0 @@
1
- // scss-lint:disable all
2
-
3
- .overview {
4
- @import "pageflow/themes/default/overview/chapter_border_images";
5
-
6
- font-family: sourcesanspro;
7
-
8
- &:after {
9
- background-color: black;
10
- }
11
-
12
- &.active:after {
13
- opacity: 0.4;
14
- }
15
-
16
- .content {
17
- color: #fff;
18
-
19
- h2 {
20
- font-size: 3em;
21
- }
22
-
23
- .ov_chapter {
24
- .heading-4 {
25
- font-weight: bold;
26
- font-size: 1.1em;
27
- }
28
-
29
- .heading-5 {
30
- font-size: 1em;
31
- text-transform: uppercase;
32
- font-weight: normal;
33
- }
34
-
35
- .ov_page {
36
- border: 1px solid #505050;
37
- color: #fff;
38
-
39
- &.active {
40
- border-color: #ddd;
41
- }
42
- }
43
-
44
- .ov_page_description {
45
- background-color: #5d6c0c;
46
- border-right: 1px solid #505050;
47
- }
48
- }
49
- }
50
- }
@@ -1,48 +0,0 @@
1
- .js .page {
2
- .close_button {
3
- cursor: pointer;
4
- display: block;
5
- background-position: -45px 0;
6
- background-repeat: no-repeat;
7
- width: 45px;
8
- height: 45px;
9
- position: absolute;
10
- top: 20px;
11
-
12
- right: 100px;
13
- z-index: 10;
14
- background-size: 200% auto;
15
- background-image: image-url('pageflow/close_sprite_shadow.png');
16
-
17
- &:hover {
18
- background-position: 0 0;
19
- }
20
-
21
- .label {
22
- text-transform: uppercase;
23
- text-shadow: 1px 1px 4px #2b2b2b;
24
- font-size: 1.0em;
25
- letter-spacing: 0.1em;
26
- color: #FFFEFE;
27
- position: absolute;
28
- margin-right: 115%;
29
- text-align: right;
30
- right: 0px;
31
- margin-top: 14px;
32
- margin-left: 1em;
33
- }
34
-
35
- @include phone {
36
- right: 40px;
37
- }
38
-
39
- @include pad_portrait {
40
- right: 40px;
41
- }
42
- }
43
-
44
- &.invert .close_button .label {
45
- color: #2b2b2b;
46
- text-shadow: 1px 1px 4px #fff;
47
- }
48
- }
@@ -1,2 +0,0 @@
1
- @import "page_types/audio";
2
- @import "page_types/video";
@@ -1,5 +0,0 @@
1
- .audioPage {
2
- .control_bar_text {
3
- display: none;
4
- }
5
- }
@@ -1,120 +0,0 @@
1
- // scss-lint:disable all
2
-
3
- .videoWrapper {
4
- @include desktop {
5
- position: relative;
6
- height: 100%;
7
- width: 100%;
8
- }
9
- @include pad_portrait {
10
- margin-right: 0;
11
- position: initial;
12
- height: initial;
13
- }
14
- }
15
-
16
- .js .videoWrapper {
17
- @include desktop {
18
- position: relative;
19
- height: 100%;
20
- width: auto;
21
- margin-right: 85px;
22
- }
23
- @include pad_portrait {
24
- margin-right: 0;
25
- }
26
- }
27
-
28
- .page .videoPage {
29
- .scroller.vjs-fade-out {
30
- visibility: initial;
31
- }
32
- }
33
-
34
- .js .page .videoPage {
35
- .vjs-control-bar {
36
- @include transform(translate3d(-50%, 0, 0));
37
-
38
- @include phone {
39
- @include transform(translate3d(0, 0, 0));
40
- }
41
- }
42
- /* overwriting video js auto hiding control rules */
43
- /* Fading sytles, used to fade control bar. */
44
- .vjs-fade-in {
45
- display: initial !important;
46
- visibility: initial;
47
- /* Needed to make sure things hide in older browsers too. */
48
- opacity: initial;
49
- -webkit-transition: none;
50
- -moz-transition: none;
51
- -ms-transition: none;
52
- -o-transition: none;
53
- transition: none }
54
-
55
- .vjs-fade-out {
56
- display: initial!important;
57
- visibility: initial;
58
- opacity: initial;
59
- -webkit-transition: none;
60
- -moz-transition: none;
61
- -ms-transition: none;
62
- -o-transition: none;
63
- transition: none;
64
- /* Wait a moment before fading out the control bar */
65
- -webkit-transition-delay: none;
66
- -moz-transition-delay: none;
67
- -ms-transition-delay: none;
68
- -o-transition-delay: none;
69
- transition-delay: none; }
70
-
71
- /* Hide disabled or unsupported controls */
72
- .vjs-default-skin .vjs-hidden {
73
- display: initial; }
74
-
75
- .vjs-lock-showing {
76
- display: initial !important;
77
- opacity: initial;
78
- visibility: initial; }
79
-
80
- /* Fading sytles, used to fade control bar. */
81
- .fade-in {
82
- display: block !important;
83
- /* Needed to make sure things hide in older browsers too. */
84
- opacity: 1;
85
- -webkit-transition: 0.1s;
86
- -moz-transition: 0.1s;
87
- -ms-transition: 0.1s;
88
- -o-transition: 0.1s;
89
- transition: 0.1s;
90
- }
91
-
92
- .fade-out {
93
- display: block !important;
94
- opacity: 0 !important;
95
- -webkit-transition: 1.5s;
96
- -moz-transition: 1.5s;
97
- -ms-transition: 1.5s;
98
- -o-transition: 1.5s;
99
- transition: 1.5s;
100
- /* Wait a moment before fading out the control bar */
101
- -webkit-transition-delay: 2s;
102
- -moz-transition-delay: 2s;
103
- -ms-transition-delay: 2s;
104
- -o-transition-delay: 2s;
105
- transition-delay: 2s; }
106
-
107
- /* Hide disabled or unsupported controls */
108
- .vjs-default-skin .vjs-hidden {
109
- display: none; }
110
-
111
- .lock-showing {
112
- display: block !important;
113
- opacity: 1;
114
- visibility: visible;
115
- }
116
-
117
- .control_bar_text {
118
- display: none;
119
- }
120
- }
@@ -1,364 +0,0 @@
1
- .controls .add_info_box {
2
- width: 87%;
3
- margin: 1em 5% 1.5em 8%;
4
- position: relative;
5
- z-index: 2;
6
- font-size: 0.8em;
7
- color: white;
8
-
9
- @include phone {
10
- font-size: 1.2em;
11
- }
12
-
13
- h3,
14
- p {
15
- margin: 15px 3%;
16
- width: 94%;
17
- }
18
-
19
- a {
20
- color: white;
21
- }
22
-
23
- &.empty {
24
- display: none;
25
- }
26
-
27
- &:before {
28
- content: "";
29
- position: absolute;
30
- left: -3px;
31
- top: 0;
32
- width: 100%;
33
- height: 100%;
34
- background-color: rgba(39, 39, 39, 1);
35
- border: 3px solid rgb(39,39,39);
36
- z-index: -1;
37
- opacity: 0.95;
38
- border-radius: 4px;
39
- }
40
- }
41
-
42
- .js .vjs-control {
43
- pointer-events: all;
44
- }
45
-
46
- .js {
47
- .controls {
48
- position: absolute;
49
- bottom: 10%;
50
- left: 50%;
51
- z-index: 2;
52
-
53
- @include phone {
54
- left: 5%;
55
- }
56
-
57
- .control_bar_text {
58
- position: absolute;
59
- left: 80px;
60
- top: 20px;
61
- color: #ddd;
62
-
63
- @include phone {
64
- display: none;
65
- }
66
- }
67
- }
68
-
69
- .add_info_box {
70
- pointer-events: none;
71
- margin: 0 0 63px 0;
72
- width: 434px;
73
- bottom: 0;
74
- margin-bottom: 63px;
75
- position: absolute;
76
- left: 50%;
77
- @include transform(translate3d(-50%, 0,0));
78
- z-index: 2;
79
- font-size: 0.8em;
80
-
81
- @include phone {
82
- font-size: 1.2em;
83
- }
84
- }
85
-
86
- .vjs-control-bar {
87
- position: absolute;
88
- width: 434px;
89
- height: 60px;
90
- bottom: 0;
91
- background-color: #191919;
92
- border: 3px solid #505050;
93
- left: 50%;
94
- z-index: 2;
95
- @include transform(translate3d(-50%, 0, 0));
96
- display: block;
97
- }
98
-
99
- .vjs-control-bar:before {
100
- position: absolute;
101
- border-right: 2px solid #505050;
102
- top: 0;
103
- left: 64px;
104
- width: 0;
105
- height: 60px;
106
- content: "";
107
- }
108
-
109
- .vjs-controls {
110
- width: 100%;
111
- height: 100%;
112
- &.vjs-player {
113
- display: block;
114
- }
115
-
116
- .vjs-progress-control:focus {
117
- background: rgba(100, 100, 100, 0.7);
118
- -webkit-box-shadow: 0 0 2em white;
119
- -moz-box-shadow: 0 0 2em white;
120
- box-shadow: 0 0 2em white;
121
- }
122
- }
123
-
124
- .vjs-control:before {
125
- text-shadow: none;
126
- }
127
-
128
- .vjs-play-control {
129
- width: 40px;
130
- height: 40px;
131
- margin-top: 10px;
132
- margin-left:11px;
133
- background-position: center top;
134
- background-image: image-url('pageflow/video_controls.png');
135
-
136
- &:hover { background-position: center -40px; }
137
- &:active, &.touched { background-position: center -80px; }
138
-
139
- &.vjs-pause { background-position: center -120px; }
140
- &.vjs-pause:hover { background-position: center -160px; }
141
- &.vjs-pause:active, &.vjs-pause.touched { background-position: center -200px; }
142
-
143
- &.vjs-playing { background-position: center -120px; }
144
- &.vjs-playing:hover { background-position: center -160px; }
145
- &.vjs-playing:active, &.vjs-paused.touched { background-position: center -200px; }
146
-
147
- &:before {
148
- content: ""
149
- }
150
- }
151
-
152
- .vjs-progress-control, .vjs-progress-control.vjs-fade-out {
153
- left: 90px;
154
- right: 114px;
155
- top: 25px;
156
- height: 9px;
157
-
158
- .vjs-progress-holder {
159
- border-radius: 4px;
160
- background-color: #333333;
161
- }
162
-
163
- .vjs-play-progress {
164
- border-radius: 4px;
165
- background: initial;
166
- /*background-color: #18d4d6;*/
167
- background-color: #b4c552;
168
- }
169
- }
170
-
171
- .vjs-control:before {
172
- color: transparent;
173
- }
174
-
175
- .vjs-slider-handle {
176
- height: 40px;
177
- top: -15px;
178
- width: 24px;
179
- background-image: image-url('pageflow/video_controls.png');
180
- background-position: center -240px;
181
- }
182
-
183
- .vjs-slider-handle:before {
184
- content: "";
185
- }
186
-
187
- .vjs-duration-divider, .vjs-fullscreen-control, .vjs-volume-control, .vjs-mute-control {
188
- display: none;
189
- }
190
-
191
- .vjs-current-time, .vjs-time-divider, .vjs-duration {
192
- font-family: SourceSansPro;
193
- font-size: 15px;
194
- position: relative;
195
- margin-top: 7px;
196
- }
197
-
198
- .vjs-current-time {
199
- left: 276px;
200
- }
201
-
202
- .vjs-time-divider {
203
- left: 268px;
204
- }
205
-
206
- .vjs-duration {
207
- left: 260px;
208
- }
209
-
210
- .vjs-default-skin {
211
- .vjs-loading-spinner {
212
- top: 30px;
213
- left: 31px;
214
- margin-left: -0.5em;
215
- margin-top: -0.5em;
216
- width: 1em;
217
- height: 1em;
218
- opacity: 1;
219
-
220
- &:before {
221
- content: " ";
222
- background-image: image-url('pageflow/loading_small.png');
223
- background-repeat: no-repeat;
224
- background-position: center;
225
- }
226
- &:after {
227
- content: " ";
228
- }
229
- }
230
- }
231
-
232
- .showing-for-underrun {
233
- display: block !important;
234
- }
235
-
236
- @include phone {
237
- .vjs-progress-control,
238
- .vjs-current-time,
239
- .vjs-time-divider,
240
- .vjs-duration,
241
- .vjs-control-bar:before {
242
- display: none;
243
- }
244
-
245
- .vjs-control-bar {
246
- top: 50%;
247
- margin-top: -30px;
248
- bottom: auto;
249
- height: 60px;
250
- border: none;
251
- background: none;
252
- width: 60px;
253
- left: 0;
254
- margin-left: -4px;
255
- max-width: 435px;
256
- pointer-events: none;
257
- @include transform(translate3d(0,0,0));
258
- }
259
-
260
- .add_info_box {
261
- position: relative;
262
- padding: 1px;
263
- margin-bottom: 0;
264
- padding-left: 0;
265
- max-width: 435px;
266
- min-height: 60px;
267
- width: 100%;
268
- min-width: 260px;
269
-
270
- &.empty {
271
- display: block;
272
- width: 60px;
273
- @include transform(translate3d(0,0,0));
274
- left: 0;
275
- min-width: 0;
276
-
277
- &:before {
278
- display: none;
279
- }
280
- }
281
-
282
- &:after {
283
- content: "";
284
- position: absolute;
285
- left: -3px;
286
- top: 0;
287
- width: 60px;
288
- height: 100%;
289
- padding-bottom: 0px;
290
- background-color: #111;
291
- z-index: -1;
292
- opacity: 0.9;
293
- }
294
- &:before {
295
- border: 0;
296
- }
297
-
298
- h3, p {
299
- margin-left: 70px;
300
- width: 70%;
301
- }
302
- }
303
- }
304
-
305
- @include phone_portrait {
306
- .controls {
307
- bottom: 50px;
308
- }
309
- }
310
-
311
- /* Controlbar used to toggle embedded media views */
312
-
313
- .controls {
314
- pointer-events: none;
315
-
316
- a, .vjs-control-bar {
317
- pointer-events: all;
318
- }
319
-
320
- @include phone {
321
- max-width: 90%;
322
-
323
- .hint {
324
- display: block;
325
- }
326
-
327
- }
328
-
329
-
330
- }
331
-
332
- .vjs-control-bar.view-control {
333
- .control_bar_text {
334
- top: 20px;
335
- }
336
-
337
- @include phone {
338
- display: block;
339
- top: 50%;
340
- margin-top: -31px;
341
- bottom: auto;
342
- height: 60px;
343
- width: 60px;
344
- left: 0;
345
- margin-left: -3px;
346
- max-width: 435px;
347
- pointer-events: all;
348
- @include transform(translate3d(0, 0, 0));
349
-
350
-
351
- .control_bar_text {
352
- display: none;
353
- }
354
- }
355
- }
356
- }
357
-
358
- .vjs-play-control:focus {
359
- outline: 3px solid #c1c1c1 !important;
360
- }
361
-
362
- .disable_focus_outline .vjs-play-control:focus {
363
- outline: 0 !important;
364
- }
@@ -1,15 +0,0 @@
1
- .video-js p {
2
- position: absolute;
3
- top: 30%;
4
- left: 20%;
5
- width: 60%;
6
- max-width: 5000px;
7
-
8
- text-align: center;
9
- font-size: 15px;
10
- padding: 10px;
11
- z-index: 1;
12
-
13
- background-color: #000;
14
- color: #fff;
15
- }