From d60bde5b633b44700c7505765a2849ef60d89e4d Mon Sep 17 00:00:00 2001 From: Jerel Miller Date: Fri, 25 Sep 2020 18:22:11 -0700 Subject: [PATCH] feat: update button styles on marketo form --- src/components/MarketoForm/marketo.scss | 49 ++++++++++--------------- 1 file changed, 19 insertions(+), 30 deletions(-) diff --git a/src/components/MarketoForm/marketo.scss b/src/components/MarketoForm/marketo.scss index d421141af..6fb02862d 100644 --- a/src/components/MarketoForm/marketo.scss +++ b/src/components/MarketoForm/marketo.scss @@ -5,9 +5,8 @@ box-shadow: none; padding-left: 0; padding-right: 0; - padding-bottom: 40px; - width: 100% !important; - font-family: 'Open Sans' !important; + padding-bottom: 0; + width: 100%; } .mktoForm div { float: none; @@ -123,40 +122,30 @@ display: none; } body .mktoForm .mktoButtonRow .mktoButtonWrap .mktoButton { + display: inline-flex; + align-items: center; + justify-content: center; position: relative; - display: inline-block; font-weight: 600; - text-align: center; - vertical-align: middle; + font-size: 0.875rem; cursor: pointer; white-space: nowrap; - border: 1px solid var(--color-teal-400); + border: 1px solid transparent; color: var(--color-white); - text-decoration: none; - text-shadow: none; - background-color: var(--color-teal-400) !important; - background-image: url('') !important; margin: 0; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; user-select: none; - -webkit-font-smoothing: antialiased; - padding: 16px 32px; - font-size: 12px; - line-height: 2; - border-radius: 0; -} -@media (min-width: 991px) { - body .mktoForm .mktoButtonRow .mktoButtonWrap .mktoButton { - padding: 16px 32px; - font-size: 16px; - line-height: 1.625; - border-radius: 0; - } - body .mktoForm .mktoButtonRow .mktoButtonWrap .mktoButton:hover { - background-color: var(--color-teal-300) !important; - border: 1px solid var(--color-teal-300); + padding: 0.5rem 1rem; + line-height: 1; + border-radius: 3px; + transition: all 0.15s ease-out; + + color: var(--color-white); + background-color: var(--color-brand-600); + + &:hover { + color: var(--color-white); + background-color: var(--color-brand-500); + transform: translate3d(0, -1px, 0); } } @media (max-width: 767px) {