diff --git a/src/components/HubspotForm/HubspotForm.tsx b/src/components/HubspotForm/HubspotForm.tsx
index f689f980..22f9bda1 100644
--- a/src/components/HubspotForm/HubspotForm.tsx
+++ b/src/components/HubspotForm/HubspotForm.tsx
@@ -2,44 +2,6 @@
import React, { useEffect, useState, useCallback } from 'react'
import styled, { createGlobalStyle } from 'styled-components'
-const Container = styled.div`
- display: flex;
- justify-content: center;
-`
-
-const LoadingSpinner = styled.div`
- border-width: 0.5rem;
- border-style: solid;
- border-color: #1f1f1f #1f1f1f #1f1f1f #ef131d;
- width: 3.625rem;
- height: 3.625rem;
- border-radius: 50%;
- position: relative;
- -webkit-animation: spin 2s infinite;
- animation: spin 2s infinite;
- &:before,
- &:after {
- content: '';
- width: 0.5rem;
- height: 0.5rem;
- border-radius: 50%;
- background: transparent;
- position: absolute;
- left: 0.125rem;
- }
- &:before {
- top: 0.063rem;
- }
- &:after {
- bottom: 0.063rem;
- }
- @keyframes spin {
- 100% {
- transform: rotate(360deg);
- }
- }
-`
-
const HubspotForm = (props) => {
const { componentId, region, portalId, formId, onFormSubmitted } = props
@@ -83,9 +45,9 @@ const HubspotForm = (props) => {
<>
{!formReady && (
-
-
-
+
)}
>
)
diff --git a/src/css/custom.css b/src/css/custom.css
index 39b1a9ca..15b5bbf0 100644
--- a/src/css/custom.css
+++ b/src/css/custom.css
@@ -1450,11 +1450,11 @@ pre {
border-radius: 0.25rem;
background-color: transparent;
}
+
.hs-form input:focus,
.hs-form select:focus,
.hs-form textarea:focus {
outline: none;
- /* border-color: pink; */
}
.hs-error-msg {
color: #cc0000 !important;
@@ -1480,6 +1480,7 @@ input[type='radio'] {
margin-bottom: 0;
margin-right: 10px;
}
+
.hs-form input[type='submit'] {
background-color: var(--ifm-link-color);
color: #ffffff;
@@ -1504,7 +1505,19 @@ input[type='radio'] {
color: #6684cf;
}
-.hs-form input[type='submit']:hover {
+.footer-home .hs-form input,
+.footer-home .hs-form select,
+.footer-home .hs-form textarea,
+.footer-home .hs-form label {
+ color: #fff;
+ border-color: #fff !important;
+}
+
+.footer-home .hs-error-msg {
+ color: #cc0000 !important;
+}
+
+.footer-home .hs-form input[type='submit']:hover {
background-color: var(--ifm-link-color);
}
@@ -1516,6 +1529,44 @@ input[type='radio'] {
margin-top: 10px;
}
+.hs-loading-container {
+ display: flex;
+ padding: 1rem 0;
+}
+.hs-loading-spinner {
+ border-width: 0.5rem;
+ border-style: solid;
+ border-color: var(--ifm-body-text-color) var(--ifm-body-text-color)
+ var(--ifm-body-text-color) var(--ifm-color-primary);
+ width: 3.625rem;
+ height: 3.625rem;
+ border-radius: 50%;
+ position: relative;
+ -webkit-animation: spin 2s infinite;
+ animation: spin 2s infinite;
+ &:before,
+ &:after {
+ content: '';
+ width: 0.5rem;
+ height: 0.5rem;
+ border-radius: 50%;
+ background: transparent;
+ position: absolute;
+ left: 0.125rem;
+ }
+ &:before {
+ top: 0.063rem;
+ }
+ &:after {
+ bottom: 0.063rem;
+ }
+ @keyframes spin {
+ 100% {
+ transform: rotate(360deg);
+ }
+ }
+}
+
@media (max-width: 1024px) {
.hs-form input,
.hs-form select,