Skip to content

Instantly share code, notes, and snippets.

@zephyrmike
Last active March 20, 2022 16:05
Show Gist options
  • Save zephyrmike/7b759e26102f389c3a9ab670f3b3d8b0 to your computer and use it in GitHub Desktop.
Save zephyrmike/7b759e26102f389c3a9ab670f3b3d8b0 to your computer and use it in GitHub Desktop.
Newsletter Glue Form Styling
/* remove margin below form */
.ngl-form {
margin-bottom: 0px !important;
}
/* ng container spacing in and out */
.wp-block-newsletterglue-callout {
padding-top: 40px !important;
margin: 40px auto;
}
/* remove signup form label */
.ngl-form-label {
display: none;
}
/* form field font size and height */
.ngl-form-input-text {
font-size: 15px;
min-height: 50px;
}
/* form field full width on mobile */
@media (max-width: 768px) {
.ngl-form.ngl-landscape .ngl-form-field {
width: 100%;
margin-right: 0px !important;
}
}
/* form button full width on mobile and top margin */
@media (max-width: 768px) {
.ngl-form.ngl-landscape .ngl-form-button {
width: 100%;
margin-top: 10px;
}
}
/* form button style */
.ngl-form-button {
min-height: 50px;
font-weight: 600;
background-color: #ff9015 !important;
padding: 10px 22px;
box-shadow: 4px 4px 0 0 #e66b00;
transform: translate3d(0, 0, 0);
transition: all 0.5s ease 0s;
}
/* button hover effect */
.ngl-form-button:hover {
transform: translate3d(0, -2px, 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment