Skip to content

Instantly share code, notes, and snippets.

@subzero783
Last active August 11, 2023 12:29
Show Gist options
  • Save subzero783/275d3a627eeb6d43aa9be825045758df to your computer and use it in GitHub Desktop.
Save subzero783/275d3a627eeb6d43aa9be825045758df to your computer and use it in GitHub Desktop.
/* HubSpot Form CSS */
/* Just replace the following selector with your form element ID: */
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de {
display: flex;
flex-flow: row wrap;
overflow: hidden;
padding: 40px 20px;
background-color: rgba(19, 35, 47, 0.9);
}
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div,
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div .input {
width: 100%;
position: relative;
}
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div input,
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div textarea,
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div.hs_submit {
width: 96%;
}
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div.hs_email > label,
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div.hs_firstname > label,
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div.hs_lastname > label,
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div.hs_phone > label {
position: absolute;
transform: translateY(1px);
left: 13px;
color: rgba(255, 255, 255, 0.5);
transition: 0.25s;
pointer-events: none;
font-size: 22px;
}
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div.hs_email input,
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div.hs_firstname input,
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div.hs_lastname input,
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div.hs_phone input {
font-size: 22px;
padding: 5px 10px;
background: 0 0;
color: #fff;
border-radius: 0;
display: block;
border: 1px solid #a0b3b0;
outline: unset;
}
/* For jquery code (.active) */
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div.active input,
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div.active textarea {
border-color: #1ab188;
}
/* For jquery code (.active) */
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div.active > label {
transform: translateY(-32px);
}
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div.hs_firstname,
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div.hs_lastname,
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div.hs_phone {
margin-top: 30px;
margin-bottom: 20px;
}
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div .hs-button {
max-width: fit-content;
display: block;
margin: 20px auto 0;
background-color: #1ab188;
border: none;
border-radius: 10px;
width: 100%;
padding: 20px;
text-transform: uppercase;
font-weight: 600;
color: #fff;
font-size: 26px;
letter-spacing: 2px;
cursor: pointer;
transition: 0.5s ease-in-out;
}
/* For jquery code (.active) */
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div .hs-button:active,
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div .hs-button:focus,
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div .hs-button:hover {
background-color: #fff;
color: #1ab188;
}
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de > div textarea {
height: 100px;
}
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de .hs-error-msgs {
list-style: none;
padding: 0;
margin: 5px 0;
}
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de .hs-error-msg,
#hsForm_c867245e-e9ca-45e7-b276-a975d07d97de .hs-main-font-element {
color: #fff;
font-size: 16px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment