@moreonion/foundist 3.2.1 → 3.2.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moreonion/foundist",
3
- "version": "3.2.1",
3
+ "version": "3.2.3",
4
4
  "description": "Foundation based default theme for Impact Stack landing pages.",
5
5
  "author": "More Onion <kontakt@more-onion.at>",
6
6
  "license": "MIT",
@@ -15,16 +15,16 @@ import {
15
15
  /* eslint-enable no-unused-vars */
16
16
 
17
17
  import {
18
- initEventBridge,
19
18
  AdaptiveSticky,
20
19
  CookieBar,
21
20
  FileUpload,
22
21
  SelectTwo,
23
22
  Share,
23
+ Slideshow,
24
24
  StickyButton,
25
25
  ToggleElement,
26
26
  UserAgent,
27
- Slideshow,
27
+ initEventBridge,
28
28
  } from '@moreonion/foundation-base'
29
29
 
30
30
  // Add the select2 to jQuery
@@ -75,7 +75,7 @@ export function initFoundation () {
75
75
  * @returns {AdaptiveSticky|undefined} The initialized AdaptiveSticky plugin
76
76
  */
77
77
  export function stickyForm (options = {}) {
78
- const $form = $('#sidebar form, #sidebar .share-buttons')
78
+ const $form = $('#sidebar #form, #sidebar .share-buttons')
79
79
  if (!$form.length) {
80
80
  return
81
81
  }
@@ -84,7 +84,7 @@ export function stickyForm (options = {}) {
84
84
  $sidebar.children().wrapAll('<div class="sticky" />')
85
85
  // Let the actual form inside #form stick to the window top.
86
86
  return new Foundation.AdaptiveSticky($sidebar.children('.sticky'), {
87
- target: '#form-outer form, #form-outer .share-buttons ul',
87
+ target: '#form-outer #form, #form-outer .share-buttons ul',
88
88
  offset: $('#form-outer').css('padding-top'),
89
89
  mediaQuery: 'large',
90
90
  ...options
@@ -66,7 +66,7 @@ $donation-amount-button-padding: (
66
66
  ) !default;
67
67
 
68
68
  // Layout
69
- $donation-amount-button-max-width: auto !default;
69
+ $donation-amount-button-max-width: 1fr !default;
70
70
  $donation-amount-max-buttons-per-row: 3 !default;
71
71
 
72
72
  .donation-amount {
@@ -114,7 +114,7 @@ $donation-amount-max-buttons-per-row: 3 !default;
114
114
  display: grid;
115
115
  grid-template-columns: repeat(
116
116
  $donation-amount-max-buttons-per-row,
117
- minmax(auto, $donation-amount-button-max-width)
117
+ minmax(0, $donation-amount-button-max-width)
118
118
  );
119
119
  gap: 2 * $form-spacing;
120
120
  margin: $form-spacing 0;