pageflow 15.2.0 → 15.5.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


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

Files changed (214) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +89 -83
  3. data/README.md +2 -3
  4. data/admins/pageflow/accounts.rb +1 -98
  5. data/admins/pageflow/entry.rb +21 -1
  6. data/admins/pageflow/entry_templates.rb +140 -0
  7. data/admins/pageflow/membership.rb +12 -0
  8. data/admins/pageflow/user.rb +5 -5
  9. data/app/assets/javascripts/pageflow/admin/accounts.js +1 -1
  10. data/app/assets/javascripts/pageflow/admin/entries.js +65 -0
  11. data/app/assets/javascripts/pageflow/admin/users.js +1 -1
  12. data/app/assets/javascripts/pageflow/asset_urls.js.erb +1 -0
  13. data/app/assets/javascripts/pageflow/base.js +0 -12
  14. data/app/assets/javascripts/pageflow/components.js +2 -6
  15. data/app/assets/javascripts/pageflow/dist/ui.js +178 -55
  16. data/app/assets/javascripts/pageflow/editor/vendor.js +1 -0
  17. data/app/assets/javascripts/pageflow/vendor.js +12 -10
  18. data/app/assets/stylesheets/pageflow/base.scss +0 -7
  19. data/app/assets/stylesheets/pageflow/editor/base.scss +5 -2
  20. data/app/assets/stylesheets/pageflow/editor/composables.scss +5 -1
  21. data/app/assets/stylesheets/pageflow/editor/drop_down_button.scss +1 -1
  22. data/app/assets/stylesheets/pageflow/editor/emulation_mode_button.scss +44 -55
  23. data/app/assets/stylesheets/pageflow/editor/help.scss +2 -2
  24. data/app/assets/stylesheets/pageflow/editor/select_button.scss +1 -1
  25. data/app/assets/stylesheets/pageflow/editor/sidebar_footer.scss +1 -1
  26. data/app/assets/stylesheets/pageflow/entries.scss +1 -1
  27. data/app/assets/stylesheets/pageflow/loading_spinner.scss +4 -1
  28. data/app/assets/stylesheets/pageflow/navigation_mobile.scss +4 -4
  29. data/app/assets/stylesheets/pageflow/themes/default/anchors.scss +1 -1
  30. data/app/assets/stylesheets/pageflow/themes/default/logo/variant/watermark.scss +1 -1
  31. data/app/assets/stylesheets/pageflow/themes/default/page.scss +7 -0
  32. data/app/assets/stylesheets/pageflow/themes/default/page/anchors.scss +1 -1
  33. data/app/assets/stylesheets/pageflow/themes/default/player_controls/classic/control_bar.scss +1 -1
  34. data/app/assets/stylesheets/pageflow/themes/default/player_controls/classic/info_box.scss +1 -1
  35. data/app/assets/stylesheets/pageflow/themes/default/player_controls/shared/menu_bar.scss +2 -2
  36. data/app/assets/stylesheets/pageflow/themes/default/player_controls/slim/control_bar.scss +2 -2
  37. data/app/assets/stylesheets/pageflow/themes/default/player_controls/slim/info_box.scss +1 -1
  38. data/app/assets/stylesheets/pageflow/themes/default/player_controls/slim/quality_menu.scss +2 -2
  39. data/app/assets/stylesheets/pageflow/themes/default/player_controls/waveform/wave.scss +1 -1
  40. data/app/assets/stylesheets/pageflow/ui/forms.scss +9 -2
  41. data/app/assets/stylesheets/pageflow/ui/input/extended_select_input.scss +2 -2
  42. data/app/assets/stylesheets/pageflow/ui/tooltip.scss +17 -3
  43. data/app/helpers/pageflow/admin/entries_helper.rb +16 -0
  44. data/app/helpers/pageflow/structured_data_helper.rb +0 -2
  45. data/app/models/pageflow/account.rb +21 -1
  46. data/app/models/pageflow/account_role_query.rb +1 -1
  47. data/app/models/pageflow/chapter.rb +3 -9
  48. data/app/models/pageflow/entry.rb +9 -2
  49. data/app/models/pageflow/entry_duplicate.rb +1 -0
  50. data/app/models/pageflow/entry_template.rb +16 -2
  51. data/app/models/pageflow/managed_user_query.rb +1 -1
  52. data/app/models/pageflow/page.rb +1 -4
  53. data/app/models/pageflow/revision.rb +0 -4
  54. data/app/models/pageflow/storyline.rb +2 -9
  55. data/app/policies/pageflow/account_policy.rb +10 -0
  56. data/app/policies/pageflow/entry_template_policy.rb +5 -1
  57. data/app/policies/pageflow/folder_policy.rb +2 -2
  58. data/app/policies/pageflow/membership_policy.rb +2 -2
  59. data/app/policies/pageflow/theming_policy.rb +2 -2
  60. data/app/policies/pageflow/user_policy.rb +1 -1
  61. data/app/views/admin/accounts/_entry_template_details.html.arb +7 -5
  62. data/app/views/admin/accounts/_form.html.erb +3 -49
  63. data/app/views/admin/entries/_attributes_table.html.arb +5 -0
  64. data/app/views/admin/entries/_not_allowed_to_see_entry_types.json.jbuilder +2 -0
  65. data/app/views/admin/entries/entry_types.json.jbuilder +4 -0
  66. data/app/views/admin/entry_templates/_form.html.erb +58 -0
  67. data/app/views/admin/users/_not_allowed_to_see_user_quota.html.erb +3 -0
  68. data/app/views/components/pageflow/admin/entry_templates_tab.rb +48 -0
  69. data/app/views/pageflow/admin/initial_passwords/edit.html.erb +2 -1
  70. data/app/views/pageflow/admin/users/_quota_exhausted.html.erb +1 -1
  71. data/app/views/pageflow/themes/_theme.json.jbuilder +1 -1
  72. data/app/views/pageflow/video_files/_video_file.json.jbuilder +8 -1
  73. data/config/initializers/admin_resource_tabs.rb +5 -0
  74. data/config/initializers/help_entries.rb +1 -5
  75. data/config/initializers/revision_components.rb +5 -0
  76. data/config/locales/de.yml +88 -155
  77. data/config/locales/en.yml +79 -143
  78. data/db/migrate/20200515112500_add_constraints_to_entry_templates.rb +21 -0
  79. data/db/migrate/20200807135200_rename_pageflow_entry_template_entry_type_to_entry_type_name.rb +7 -0
  80. data/entry_types/paged/app/assets/javascripts/pageflow_paged/components.js +7 -0
  81. data/entry_types/paged/app/assets/javascripts/pageflow_paged/dist/editor.js +1528 -1349
  82. data/entry_types/paged/app/assets/javascripts/pageflow_paged/dist/frontend.js +9258 -0
  83. data/{app/assets/javascripts/pageflow → entry_types/paged/app/assets/javascripts/pageflow_paged}/dist/react-client.js +1 -1
  84. data/{app/assets/javascripts/pageflow → entry_types/paged/app/assets/javascripts/pageflow_paged}/dist/react-server.js +3 -3
  85. data/entry_types/paged/app/assets/javascripts/pageflow_paged/frontend.js +6 -0
  86. data/entry_types/paged/app/assets/javascripts/pageflow_paged/server_rendering.js +9 -0
  87. data/entry_types/paged/app/assets/javascripts/pageflow_paged/vendor.js +9 -0
  88. data/entry_types/paged/app/assets/javascripts/pageflow_paged/videojs.js +6 -0
  89. data/entry_types/paged/app/controllers/pageflow_paged/application_controller.rb +2 -2
  90. data/{app/helpers/pageflow → entry_types/paged/app/helpers/pageflow_paged}/page_background_asset_helper.rb +4 -3
  91. data/{app/helpers/pageflow → entry_types/paged/app/helpers/pageflow_paged}/react_server_side_rendering_helper.rb +23 -2
  92. data/entry_types/paged/app/views/layouts/pageflow_paged/_loading_spinner_inline_script.html.erb +1 -0
  93. data/entry_types/paged/app/views/layouts/pageflow_paged/application.html.erb +3 -3
  94. data/entry_types/paged/app/views/pageflow_paged/editor/entries/_head.html.erb +4 -2
  95. data/entry_types/paged/app/views/pageflow_paged/entries/_entry.html.erb +1 -1
  96. data/{app/views/pageflow → entry_types/paged/app/views/pageflow_paged}/page_background_asset/_element.html.erb +0 -0
  97. data/{app/views/pageflow → entry_types/paged/app/views/pageflow_paged}/react/_widget.html.erb +0 -0
  98. data/{app/views/pageflow → entry_types/paged/app/views/pageflow_paged}/react/page.html.erb +0 -0
  99. data/entry_types/paged/config/initializers/features.rb +1 -1
  100. data/entry_types/paged/config/initializers/help_entries.rb +17 -0
  101. data/entry_types/paged/config/locales/new/help.de.yml +162 -0
  102. data/entry_types/paged/config/locales/new/help.en.yml +153 -0
  103. data/entry_types/paged/lib/pageflow_paged/engine.rb +13 -0
  104. data/entry_types/paged/lib/pageflow_paged/plugin.rb +5 -1
  105. data/entry_types/paged/lib/pageflow_paged/react.rb +12 -0
  106. data/{lib/pageflow → entry_types/paged/lib/pageflow_paged}/react/page_type.rb +2 -2
  107. data/{lib/pageflow → entry_types/paged/lib/pageflow_paged}/react/widget_type.rb +2 -2
  108. data/entry_types/paged/lib/tasks/pageflow_paged_tasks.rake +7 -0
  109. data/entry_types/paged/vendor/assets/javascripts/development/pageflow_paged/vendor/react-server.js +20613 -0
  110. data/entry_types/paged/vendor/assets/javascripts/development/pageflow_paged/vendor/react.js +21495 -0
  111. data/{vendor/assets/javascripts → entry_types/paged/vendor/assets/javascripts/pageflow_paged/vendor}/dash.all.min.js +0 -0
  112. data/{vendor/assets/javascripts → entry_types/paged/vendor/assets/javascripts/pageflow_paged/vendor}/videojs-dash.js +0 -0
  113. data/{vendor/assets/javascripts → entry_types/paged/vendor/assets/javascripts/pageflow_paged/vendor}/videojs.js +0 -0
  114. data/entry_types/paged/vendor/assets/javascripts/production/pageflow_paged/vendor/react-server.js +24 -0
  115. data/entry_types/paged/vendor/assets/javascripts/production/pageflow_paged/vendor/react.js +24 -0
  116. data/entry_types/scrolled/app/assets/javascripts/pageflow_scrolled/legacy.js +0 -0
  117. data/entry_types/scrolled/app/controllers/pageflow_scrolled/editor/chapters_controller.rb +2 -2
  118. data/entry_types/scrolled/app/controllers/pageflow_scrolled/editor/content_elements_controller.rb +14 -4
  119. data/entry_types/scrolled/app/controllers/pageflow_scrolled/editor/sections_controller.rb +2 -2
  120. data/entry_types/scrolled/app/controllers/pageflow_scrolled/entries_controller.rb +10 -0
  121. data/entry_types/scrolled/app/helpers/pageflow_scrolled/editor/seed_html_helper.rb +7 -0
  122. data/entry_types/scrolled/app/helpers/pageflow_scrolled/entry_json_seed_helper.rb +2 -0
  123. data/entry_types/scrolled/app/helpers/pageflow_scrolled/favicon_helper.rb +21 -0
  124. data/entry_types/scrolled/app/helpers/pageflow_scrolled/react_server_side_rendering_helper.rb +40 -0
  125. data/entry_types/scrolled/app/helpers/pageflow_scrolled/themes_helper.rb +36 -0
  126. data/entry_types/scrolled/app/models/pageflow_scrolled/chapter.rb +3 -9
  127. data/entry_types/scrolled/app/models/pageflow_scrolled/content_element.rb +37 -2
  128. data/entry_types/scrolled/app/models/pageflow_scrolled/section.rb +3 -9
  129. data/entry_types/scrolled/app/models/pageflow_scrolled/storyline.rb +1 -9
  130. data/entry_types/scrolled/app/views/pageflow_scrolled/editor/content_elements/batch.json.jbuilder +2 -0
  131. data/entry_types/scrolled/app/views/pageflow_scrolled/editor/entries/_head.html.erb +1 -7
  132. data/entry_types/scrolled/app/views/pageflow_scrolled/entries/_global_notices.html.erb +10 -0
  133. data/entry_types/scrolled/app/views/pageflow_scrolled/entries/show.html.erb +28 -11
  134. data/entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_entry.json.jbuilder +3 -0
  135. data/entry_types/scrolled/app/views/pageflow_scrolled/entry_json_seed/_theme.json.jbuilder +8 -0
  136. data/entry_types/scrolled/app/views/pageflow_scrolled/favicons/_entry.html.erb +10 -0
  137. data/entry_types/scrolled/config/initializers/help_entries.rb +16 -0
  138. data/entry_types/scrolled/config/locales/de.yml +669 -0
  139. data/entry_types/scrolled/config/locales/en.yml +488 -0
  140. data/entry_types/scrolled/config/routes.rb +1 -0
  141. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/install_generator.rb +76 -6
  142. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/android-chrome-192x192.png +0 -0
  143. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/android-chrome-512x512.png +0 -0
  144. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/apple-touch-icon.png +0 -0
  145. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/browserconfig.xml +9 -0
  146. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/favicon-16x16.png +0 -0
  147. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/favicon-32x32.png +0 -0
  148. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/favicon.ico +0 -0
  149. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/mstile-150x150.png +0 -0
  150. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/safari-pinned-tab.svg +46 -0
  151. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/favicons/site.webmanifest +19 -0
  152. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/logoDesktop.svg +56 -0
  153. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/logoMobile.svg +22 -0
  154. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/theme/unmute.mp3 +0 -0
  155. data/entry_types/scrolled/lib/generators/pageflow_scrolled/install/templates/themes_plugin.rb.tt +26 -0
  156. data/entry_types/scrolled/lib/pageflow_scrolled/engine.rb +4 -0
  157. data/entry_types/scrolled/lib/pageflow_scrolled/plugin.rb +3 -1
  158. data/entry_types/scrolled/lib/pageflow_scrolled/seeds.rb +90 -30
  159. data/entry_types/scrolled/lib/tasks/pageflow_scrolled/create_bundle_symlinks_for_yarn.rake +32 -0
  160. data/entry_types/scrolled/lib/tasks/pageflow_scrolled/dummy.rake +8 -0
  161. data/entry_types/scrolled/lib/tasks/pageflow_scrolled/storybook.rake +173 -0
  162. data/entry_types/scrolled/package/contentElements-editor.js +541 -0
  163. data/entry_types/scrolled/package/contentElements-frontend.css +1 -0
  164. data/entry_types/scrolled/package/contentElements-frontend.js +1169 -0
  165. data/entry_types/scrolled/package/editor.js +2930 -371
  166. data/entry_types/scrolled/package/frontend-server.js +228 -0
  167. data/entry_types/scrolled/package/frontend/EditableText-7093fd0e.js +1071 -0
  168. data/entry_types/scrolled/package/frontend/Viewer-e49e7807.js +387 -0
  169. data/entry_types/scrolled/package/frontend/Wavesurfer-0adf5667.js +375 -0
  170. data/entry_types/scrolled/package/frontend/components-6a6793ca.js +2534 -0
  171. data/entry_types/scrolled/package/frontend/getPrototypeOf-63c7c8e8.js +86 -0
  172. data/entry_types/scrolled/package/frontend/i18n-4dc6c377.js +1092 -0
  173. data/entry_types/scrolled/package/frontend/index.css +9 -0
  174. data/entry_types/scrolled/package/frontend/index.js +5686 -0
  175. data/entry_types/scrolled/package/frontend/useBrowserFeature-91a4c29d.js +33 -0
  176. data/entry_types/scrolled/package/package.json +30 -9
  177. data/entry_types/scrolled/spec/fixtures/audio.m4a +0 -0
  178. data/entry_types/scrolled/spec/fixtures/video.mp4 +0 -0
  179. data/lib/generators/pageflow/initializer/templates/pageflow.rb +14 -9
  180. data/lib/pageflow/ability_mixin.rb +14 -2
  181. data/lib/pageflow/configuration.rb +6 -5
  182. data/lib/pageflow/entry_export_import/revision_serialization.rb +15 -13
  183. data/lib/pageflow/entry_export_import/revision_serialization/import.rb +18 -26
  184. data/lib/pageflow/entry_type_configuration.rb +2 -0
  185. data/lib/pageflow/global_config_api.rb +5 -4
  186. data/lib/pageflow/nested_revision_component.rb +49 -0
  187. data/lib/pageflow/react.rb +4 -2
  188. data/lib/pageflow/revision_component.rb +6 -2
  189. data/lib/pageflow/themes.rb +4 -0
  190. data/lib/pageflow/user_mixin.rb +2 -1
  191. data/lib/pageflow/version.rb +1 -1
  192. data/{packages/pageflow → package}/config/jest/index.js +8 -2
  193. data/{packages/pageflow → package}/config/jest/transformers/jst.js +0 -0
  194. data/{packages/pageflow → package}/config/jest/transformers/upwardBabel.js +0 -0
  195. data/{packages/pageflow → package}/config/webpack.js +7 -0
  196. data/{packages/pageflow → package}/editor.js +482 -1130
  197. data/package/frontend.js +2553 -0
  198. data/{packages/pageflow → package}/package.json +3 -0
  199. data/{packages/pageflow → package}/testHelpers.js +114 -13
  200. data/{packages/pageflow → package}/ui.js +178 -55
  201. data/spec/factories/accounts.rb +3 -1
  202. data/spec/factories/entry_templates.rb +1 -0
  203. data/spec/factories/published_entries.rb +6 -1
  204. data/spec/factories/test_revision_components.rb +4 -0
  205. metadata +96 -37
  206. data/app/assets/javascripts/pageflow/dist/editor.js +0 -11890
  207. data/app/assets/javascripts/pageflow/dist/frontend.js +0 -5800
  208. data/app/assets/javascripts/pageflow/videojs.js +0 -6
  209. data/config/initializers/entry_types.rb +0 -4
  210. data/entry_types/scrolled/config/locales/new/de.yml +0 -269
  211. data/entry_types/scrolled/config/locales/new/en.yml +0 -264
  212. data/entry_types/scrolled/lib/tasks/pageflow_scrolled_tasks.rake +0 -96
  213. data/entry_types/scrolled/package/frontend.js +0 -2879
  214. data/packages/pageflow/config/jest/transformers/cssModules.js +0 -1
@@ -1,3 +1,4 @@
1
+
1
2
  //= require i18n
2
3
  //= require i18n/translations
3
4
 
@@ -2,15 +2,17 @@
2
2
  // This file is meant to hold code we don't develop and/or rarely change.
3
3
  // It means this asset will stay cached for much longer.
4
4
 
5
- //= require i18n
6
- //= require jquery
7
- //= require jquery-ui/widget
8
- //= require jquery_ujs
9
- //= require jquery.fullscreen
10
- //= require jquery.placeholder
5
+ // = require polyfills/bind
6
+ // = require ./asset_urls
11
7
 
12
- //= require iscroll
13
- //= require audio5.min
8
+ // = require i18n
9
+ // = require jquery
10
+ // = require jquery-ui/widget
11
+ // = require jquery_ujs
12
+ // = require jquery.fullscreen
13
+ // = require jquery.placeholder
14
14
 
15
- //= require react
16
- //= require backbone-rails
15
+ // = require iscroll
16
+ // = require audio5.min
17
+
18
+ // = require backbone-rails
@@ -18,13 +18,6 @@ body {
18
18
  -ms-touch-action: none;
19
19
  }
20
20
 
21
- .ios7.ipad body {
22
- @media screen and (orientation: landscape) {
23
- position: fixed;
24
- margin-top: 0px;
25
- }
26
- }
27
-
28
21
  body.js, .js #outer_wrapper {
29
22
  overflow: hidden;
30
23
  }
@@ -1,5 +1,7 @@
1
1
  @import "bourbon";
2
2
 
3
+ @import "pageflow/fonts";
4
+
3
5
  @import "pageflow/jquery_ui";
4
6
  @import "pageflow/ui";
5
7
  @import "pageflow/animations";
@@ -22,7 +24,7 @@
22
24
  @import "./change_theme";
23
25
  @extend %pageflow-ui;
24
26
 
25
- font-family: Helvetica, "Sans-Serif";
27
+ font-family: Helvetica, Arial, "Sans-Serif";
26
28
  font-size: 13px;
27
29
 
28
30
  padding: 0;
@@ -129,8 +131,9 @@
129
131
  top: 0;
130
132
  left: 0;
131
133
  right: 0;
132
- bottom: 25px;
134
+ bottom: 31px;
133
135
  overflow: auto;
136
+ overflow-y: scroll;
134
137
  }
135
138
  }
136
139
 
@@ -4,6 +4,10 @@
4
4
 
5
5
  // See entry_type/scrolled/package/src/editor/buttons.module.css
6
6
 
7
- .icon_button {
7
+ .primary_icon_button {
8
8
  @include icon-button;
9
9
  }
10
+
11
+ .secondary_icon_button {
12
+ @include icon-button(#888);
13
+ }
@@ -31,7 +31,7 @@ $drop-down-button-menu-border-color: #aaa !default;
31
31
  &.is_visible {
32
32
  @include transition(visibility 0ms, opacity 100ms);
33
33
  visibility: visible;
34
- pointer-events: all;
34
+ pointer-events: auto;
35
35
  opacity: 1;
36
36
  }
37
37
  }
@@ -1,78 +1,67 @@
1
1
  .emulation_mode_button {
2
- @include background-icon-right($color: #444, $font-size: 16px, $top: 4px);
3
- @include up-open-icon;
2
+ position: relative;
4
3
  float: left;
5
- height: 25px;
6
- width: 100px;
4
+ cursor: pointer;
7
5
 
8
- &-menu {
9
- background-color: #fff;
10
- border: solid 1px #aaa;
11
- padding: 1px;
12
- position: absolute;
13
- bottom: 1px;
14
- left: 1px;
15
- visibility: hidden;
16
- width: 200px;
17
- z-index: 1;
6
+ &-wrapper {
7
+ width: 110px;
8
+ height: 30px;
18
9
  }
19
10
 
20
- &-menu_header {
21
- margin: 3px 6px;
11
+ &-desktop_icon,
12
+ &-phone_icon {
13
+ @include background-icon-center($color: #444, $font-size: 16px);
14
+ width: 40px;
15
+ height: 100%;
22
16
  }
23
17
 
24
- &:hover .emulation_mode_button-menu {
25
- visibility: visible;
18
+ &-desktop_icon {
19
+ @include monitor-icon;
20
+ float: left;
26
21
  }
27
22
 
28
- &-display {
29
- @include background-icon-center($color: #444, $font-size: 16px, $left: 15px);
30
- display: none;
31
- padding: 5px 10px 5px 30px;
32
-
33
- &.active {
34
- display: block;
35
- }
23
+ &-phone_icon {
24
+ @include mobile-icon;
25
+ float: right;
36
26
  }
37
27
 
38
- &-menu_item {
39
- @include background-icon-center($color: #444, $font-size: 16px, $left: 15px, $top: 15px);
28
+ &-track,
29
+ &-thumb {
30
+ position: absolute;
31
+ background-color: #1976d2;
40
32
  }
41
33
 
42
- &-menu_link {
43
- padding: 7px 35px 7px 35px;
44
- display: block;
45
-
46
- &:hover {
47
- background-color: #eee;
48
- }
34
+ &-track {
35
+ top: 8px;
36
+ left: 40px;
37
+ border-radius: 7px;
38
+ opacity: 0.5;
39
+ width: 34px;
40
+ height: 14px;
49
41
  }
50
42
 
51
- .active .emulation_mode_button-menu_link {
52
- @include background-icon-right($color: #444, $font-size: 12px, $right: 15px, $top: 9px);
53
- @include fa-check-icon;
54
- pointer-events: none;
43
+ &-thumb {
44
+ top: 5px;
45
+ left: 37px;
46
+ width: 20px;
47
+ height: 20px;
48
+ border-radius: 50%;
49
+ box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
50
+ transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
55
51
  }
56
52
 
57
- &-disabled_hint {
58
- display: none;
59
- font-size: 10px;
53
+ &.active .emulation_mode_button-thumb {
54
+ transform: translateX(20px);
60
55
  }
61
56
 
62
- .disabled {
63
- pointer-events: none;
64
- opacity: 0.3;
65
-
66
- .emulation_mode_button-disabled_hint {
67
- display: block;
57
+ &.disabled {
58
+ .emulation_mode_button-wrapper {
59
+ opacity: 0.4;
68
60
  }
69
- }
70
61
 
71
- &-phone {
72
- @include mobile-icon;
73
- }
74
-
75
- &-desktop {
76
- @include monitor-icon;
62
+ .emulation_mode_button-track,
63
+ .emulation_mode_button-thumb {
64
+ background-color: #000;
65
+ }
77
66
  }
78
67
  }
@@ -158,10 +158,10 @@
158
158
  }
159
159
 
160
160
  .editor .help_button {
161
- @include background-icon-right($color: #a0c4e0, $font-size: 16px, $right: 5px, $top: 5px);
161
+ @include background-icon-right($color: #a0c4e0, $font-size: 16px, $right: 5px, $top: 7px);
162
162
  @include help-circled-icon;
163
163
 
164
- padding: 5px 30px 0 5px;
164
+ padding: 7px 30px 0 5px;
165
165
  float: right;
166
166
  height: 20px;
167
167
  cursor: pointer;
@@ -37,7 +37,7 @@
37
37
  &:hover .dropdown {
38
38
  @include transition(visibility 0ms, opacity 100ms, top 200ms);
39
39
  visibility: visible;
40
- pointer-events: all;
40
+ pointer-events: auto;
41
41
 
42
42
  top: 18px;
43
43
  opacity: 1;
@@ -4,7 +4,7 @@
4
4
  right: 0;
5
5
  left: 0;
6
6
 
7
- font-family: Helvetica, "Sans-Serif";
7
+ font-family: Helvetica, Arial, "Sans-Serif";
8
8
  font-size: 13px;
9
9
 
10
10
  border-top: solid 1px #aaa;
@@ -73,7 +73,7 @@
73
73
  }
74
74
 
75
75
  &.visible {
76
- pointer-events: all;
76
+ pointer-events: auto;
77
77
  visibility: visible;
78
78
  }
79
79
 
@@ -1,4 +1,7 @@
1
1
  .loading_spinner {
2
+ // Ensure loading spinner does not cover page if JS is
3
+ // disabled. Will be overridden by
4
+ // layouts/pageflow_paged/_loading_spinner_inline_script.html.erb
2
5
  display: none;
3
6
 
4
7
  position: absolute;
@@ -17,4 +20,4 @@
17
20
  @include transition(opacity 0.5s linear);
18
21
  opacity: 0;
19
22
  }
20
- }
23
+ }
@@ -75,7 +75,7 @@ body {
75
75
  background-position: -45px 0px;
76
76
  background-size: auto 100%;
77
77
  right: 10px;
78
- pointer-events: all;
78
+ pointer-events: auto;
79
79
  cursor: pointer;
80
80
  @include transition(opacity 500ms, right 250ms);
81
81
 
@@ -99,7 +99,7 @@ body {
99
99
  @include background-icon-center($color: #ddd);
100
100
  @include fa-arrow-left-icon;
101
101
  cursor: pointer;
102
- pointer-events: all;
102
+ pointer-events: auto;
103
103
  position: absolute;
104
104
  top: 16px;
105
105
  right: 60px;
@@ -277,7 +277,7 @@ body {
277
277
  }
278
278
 
279
279
  &.active {
280
- pointer-events: all;
280
+ pointer-events: auto;
281
281
  visibility: visible;
282
282
 
283
283
  &:before {
@@ -293,7 +293,7 @@ body {
293
293
  right: 200px;
294
294
 
295
295
  &.sharing, &.imprint {
296
- pointer-events: all;
296
+ pointer-events: auto;
297
297
  opacity: 1;
298
298
  }
299
299
  }
@@ -12,7 +12,7 @@ $anchor-external-links-icon: false !default;
12
12
  }
13
13
 
14
14
  text-decoration: none;
15
- pointer-events: all;
15
+ pointer-events: auto;
16
16
  position: relative;
17
17
  margin-left: 6px;
18
18
  margin-right: 6px;
@@ -111,7 +111,7 @@ $logo-watermark-mobile-height: null !default;
111
111
  }
112
112
 
113
113
  .header.near_top .header_logo {
114
- pointer-events: all;
114
+ pointer-events: auto;
115
115
  }
116
116
 
117
117
  @if $logo-watermark-variant-fade-in-near-top == "first-page" {
@@ -8,6 +8,9 @@ $page-typography: () !default;
8
8
  /// Typography for content text.
9
9
  $page-content-text-typography: () !default;
10
10
 
11
+ /// Typography for content text in phone layout.
12
+ $page-content-text-phone-typography: () !default
13
+
11
14
  /// Base font size for page content
12
15
  $page-content-font-size: 1em !default;
13
16
 
@@ -62,6 +65,10 @@ $page-content-list-indent: 40px !default;
62
65
  line-height: $page-content-text-line-height
63
66
  )
64
67
  );
68
+
69
+ @include phone {
70
+ @include typography($page-content-text-phone-typography);
71
+ }
65
72
  }
66
73
 
67
74
  .page_text > .paragraph ul,
@@ -15,7 +15,7 @@ $page-anchor-typography: () !default;
15
15
  .page_text a {
16
16
  @extend %anchor;
17
17
  color: $page-anchor-color;
18
- pointer-events: all;
18
+ pointer-events: auto;
19
19
  margin-right: 0;
20
20
  @include typography($page-anchor-typography)
21
21
  }
@@ -61,7 +61,7 @@ $classic-player-controls-timestamp-position: "left" !default;
61
61
 
62
62
  background-color: $classic-player-controls-background-color;
63
63
  border: $classic-player-controls-border-width solid $classic-player-controls-border-color;
64
- pointer-events: all;
64
+ pointer-events: auto;
65
65
 
66
66
  &:before {
67
67
  content: "";
@@ -80,7 +80,7 @@ $classic-player-controls-info-box-border-radius: 4px !default;
80
80
  pointer-events: none;
81
81
 
82
82
  a {
83
- pointer-events: all;
83
+ pointer-events: auto;
84
84
  }
85
85
 
86
86
  margin: 0;
@@ -15,7 +15,7 @@ $player-controls-quality-menu-annotation-color: #ff0000 !default;
15
15
  position: absolute;
16
16
  bottom: 0;
17
17
  z-index: 10;
18
- pointer-events: all;
18
+ pointer-events: auto;
19
19
 
20
20
  @include transition(opacity 0.5s, visibility 0.5s);
21
21
 
@@ -98,7 +98,7 @@ $player-controls-quality-menu-annotation-color: #ff0000 !default;
98
98
  &-menu_bar_button-sub_menu_visible .player_controls-menu_bar_button_sub_menu {
99
99
  visibility: visible;
100
100
  opacity: 1;
101
- pointer-events: all;
101
+ pointer-events: auto;
102
102
  @include transition(none);
103
103
  }
104
104
 
@@ -53,7 +53,7 @@ $slim-player-controls-control-bar-text-phone-typography: () !default;
53
53
  }
54
54
 
55
55
  &-container-playing %player_controls-control_bar {
56
- pointer-events: all;
56
+ pointer-events: auto;
57
57
  }
58
58
 
59
59
  &-control_bar_text {
@@ -248,7 +248,7 @@ $slim-player-controls-control-bar-text-phone-typography: () !default;
248
248
  &-control_bar_text,
249
249
  &-play_button,
250
250
  &-skip_button {
251
- pointer-events: all;
251
+ pointer-events: auto;
252
252
  }
253
253
 
254
254
  &-progress_bar,
@@ -74,7 +74,7 @@ $slim-player-controls-info-box-header-typography: () !default;
74
74
  pointer-events: none;
75
75
 
76
76
  a {
77
- pointer-events: all;
77
+ pointer-events: auto;
78
78
  }
79
79
 
80
80
  position: absolute;
@@ -12,7 +12,7 @@ $slim-player-controls-quality-menu-annotation-color: #ff0000 !default;
12
12
  bottom: 0;
13
13
  right: 10px;
14
14
  z-index: 10;
15
- pointer-events: all;
15
+ pointer-events: auto;
16
16
 
17
17
  @include transition(opacity 0.5s, visibility 0.5s);
18
18
  }
@@ -88,7 +88,7 @@ $slim-player-controls-quality-menu-annotation-color: #ff0000 !default;
88
88
  &-menu_bar_button-sub_menu_visible .player_controls-menu_bar_button_sub_menu {
89
89
  visibility: visible;
90
90
  opacity: 1;
91
- pointer-events: all;
91
+ pointer-events: auto;
92
92
  @include transition(none);
93
93
  }
94
94