Skip to content

Instantly share code, notes, and snippets.

View TheWebTech's full-sized avatar
🚀
Building big things

Jon McLaren TheWebTech

🚀
Building big things
View GitHub Profile
@TheWebTech
TheWebTech / CMS-hub-grid.css
Created May 10, 2022 21:22
HubSpot CMS - styles to better visualize the grid
/* CSS styles that highlight the hubspot grid components so you can better visualize what is happening in a page.
1. You could use this a few different ways, you could add this to your inspector-stylesheet.css when inspecting a page.
2. You could integrate this into a browser extension ;)
3. You could literally upload the stylesheet to HubSpot, and use {% if request.query_dict.hsDebug == "true" %}{{ require_css(PATH TO YOUR CSS FILE) }}{% endif %}
Additionally in-case it's useful as a prototyping/layout planning tool: https://codepen.io/thewebtech/pen/bGdrQyN??editors=1100
*/
.dnd-module {background: #eaf0f6;min-height: 50px!important; }
.dnd-module::before {content:"{% dnd_module %}";}
@johnsfuller
johnsfuller / dnd-layout.css
Last active May 11, 2022 15:35
A modern, mobile-first approach to HubSpot's layout.css file
/* required css vars
* --site-width (site max-width)
* --site-gutter (site container padding)
* --site-spacing-y (site vertical rhythm)
* --hs-grid-gap-x (horizontal gap between dnd columns)
*/
.dnd-section {
padding: 4em 0;
}