Add a CSS variable to :root that tracks the first page section CSS padding-top property.
- 0.2.0
- 7.1
- Not Applicable
-
Squarespace plan that supports JavaScript.
-
Install twcsl. After you install twcsl be sure to continue on with the rest of the steps.
-
Options
-
Page Specific
- Add code from file page section first css variable padding-top add.html to Page Settings > Advanced > Page Header Code Injection for the page. Please see Per-page code injection.
-
Site-wide
- Add code from file page section first css variable padding-top add.html to Website > Pages > Website Tools > Code Injection > HEADER after twcsl. Please see Add code to code injection.
-
This effect meant as a base for other effects. Use the CSS variable --twc-psfcvpta-section-first-padding-top for your CSS. The variable is available on the :root element.
Please consider making a donation.
-
2023-12-30
- store css variable in :root
- bumped version to 0.2.0
-
2022-09-19
- initial version