La fonction de suggestion automatique permet d'affiner rapidement votre recherche en suggérant des correspondances possibles au fur et à mesure de la frappe.
The default CSS for embedded forms is likely going to change over time. If that happens, this may become slightly out-of-date. If you notice that something here needs an update, comments are welcome.
The selectors that I've written below are near-identical to the ones used in the default embedded forms. I've reduced the specificity as much as possible, while making sure that they're more specific than the default selectors. I've also kept all of the default declarations in the rulesets, which should make it easier to understand what to re-write. For example if you wanted to change input field widths in 1-column rows from 95% to 100%, you could just change:
The goal here is just to make it easier to custom style your external, embedded forms without needing to write overly-specific selectors. And here's the CSS:
Contributeur de premier rang | Partenaire solutions Platinum
Over-rideable default CSS for unstyled embedded HubSpot forms
lscanlan thanks for posting this, I can see it being pretty helpful.
I won't guarantee it will make it in - because I want to get other community members input first, but if you don't mind, maybe we'll add this starter code to CrankShaft.
Over-rideable default CSS for unstyled embedded HubSpot forms
Hey guys, this is awesome. I'm just glad you find it so useful!
@dennisedson No worries at all; keep it where you've got it on GH. Feel free to update it as you see fit, or of course if you want my input feel free to reach out.
@Jon_McLaren I have heard of CrankShaft and I think it's excellent. Include it however you want! For what it's worth I think John's comment on the issue you created makes sense.
Over-rideable default CSS for unstyled embedded HubSpot forms
@lscanlan , that is great! throw that up onto github so it can easily be updated as necessary and possibly more discoverable? Or at minimum, cast a wider net 🙂
Contributeur de premier rang | Partenaire solutions Platinum
Over-rideable default CSS for unstyled embedded HubSpot forms
would be a good idea I think even as a standalone piece to submit to the HubSpot Code Gallery. Though not sure where it would fit as it's currently structured for just custom modules I think.
Messages posted by this account have been preserved for their historical usefulness. Jon has a new profile now.