@aw-webflow/pricing_page_js 1.0.0 → 1.0.1
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/.claude/settings.local.json +4 -1
- package/package.json +1 -1
- package/script.js +7 -4
|
@@ -16,7 +16,10 @@
|
|
|
16
16
|
"Bash(git commit -q -m ' *)",
|
|
17
17
|
"Bash(git push *)",
|
|
18
18
|
"Bash(git tag *)",
|
|
19
|
-
"Bash(gh release create v1.0.0 --title v1.0.0 --notes ' *)"
|
|
19
|
+
"Bash(gh release create v1.0.0 --title v1.0.0 --notes ' *)",
|
|
20
|
+
"Bash(curl -sL \"https://atomicwork.webflow.io/pricing-new?cb=$\\(date +%s\\)\" -o live.html)",
|
|
21
|
+
"Bash(curl -sL \"https://cdn.prod.website-files.com/64f08da4e7effe6dcb06d456/css/atomicwork.6a195ea2d503d973ad3d9f0b.6d732586d.opt.min.css\" -o page.css)",
|
|
22
|
+
"Bash(gh release create v1.0.1 --title v1.0.1 --notes ' *)"
|
|
20
23
|
]
|
|
21
24
|
}
|
|
22
25
|
}
|
package/package.json
CHANGED
package/script.js
CHANGED
|
@@ -37,8 +37,10 @@
|
|
|
37
37
|
'.table-section-header{cursor:pointer;}' +
|
|
38
38
|
ICON_SELECTOR + '{transition:transform .35s ease;}' +
|
|
39
39
|
'.table-section-header.is-open ' + ICON_SELECTOR + '{transform:rotate(180deg);}' +
|
|
40
|
-
// transition added after first paint to avoid a load flash
|
|
41
|
-
|
|
40
|
+
// transition added after first paint to avoid a load flash.
|
|
41
|
+
// NOTE: only clip the vertical axis so the table can still scroll
|
|
42
|
+
// horizontally on mobile (overflow-x is left to Webflow's own CSS).
|
|
43
|
+
'.' + SLIDE_CLASS + '{transition:height .35s ease;overflow-y:hidden;}';
|
|
42
44
|
var style = document.createElement('style');
|
|
43
45
|
style.id = 'aw-accordion-styles';
|
|
44
46
|
style.type = 'text/css';
|
|
@@ -118,8 +120,9 @@
|
|
|
118
120
|
if (!header.getAttribute('role')) header.setAttribute('role', 'button');
|
|
119
121
|
if (!header.hasAttribute('tabindex')) header.setAttribute('tabindex', '0');
|
|
120
122
|
|
|
121
|
-
// initial state WITHOUT animation (slide class added after first paint)
|
|
122
|
-
|
|
123
|
+
// initial state WITHOUT animation (slide class added after first paint).
|
|
124
|
+
// Only clip vertically so horizontal scroll (mobile) keeps working.
|
|
125
|
+
instance.style.overflowY = 'hidden';
|
|
123
126
|
if (startOpen) {
|
|
124
127
|
instance.setAttribute('data-aw-open', '1');
|
|
125
128
|
header.setAttribute('aria-expanded', 'true');
|