From dd5cf88bca89badc30fc2fe140f348c34dd41c4a Mon Sep 17 00:00:00 2001 From: "Aaron N. Brock" Date: Sun, 4 Oct 2020 19:18:03 -0400 Subject: [PATCH] refactor contact form typography --- assets/scss/components/_contact.scss | 120 +--------------- layouts/contact/list.html | 196 ++++++++++++++------------- 2 files changed, 102 insertions(+), 214 deletions(-) diff --git a/assets/scss/components/_contact.scss b/assets/scss/components/_contact.scss index 6dd55cb..5f426fb 100644 --- a/assets/scss/components/_contact.scss +++ b/assets/scss/components/_contact.scss @@ -20,135 +20,17 @@ z-index: 1; } } - h4 { - margin: 0 0 30px 0; - font-family: $primary-font; - font-size: 25px; - color: $secondary-color; - } - p { - margin: 0; - font-size: 16px; - line-height: 34px; - color: #7e7e8a; - font-family: $secondary-font; - } a { - color: #7e7e8a; + color: $body-color; text-decoration: underline; - font-size: 16px; - line-height: 34px; - font-family: $secondary-font; - display: block; } } } .contact-form { padding: 50px 0 100px 0; - &-title { - h4 { - font-family: $primary-font; - color: $secondary-color; - margin: 0 0 30px 0; - font-size: 35px; - } - } &-input { .form-group { margin-bottom: 30px; - .form-control { - border: 1px solid #aeb8be; - border-radius: 7px; - padding: 10px 30px; - font-size: 14px; - font-family: $secondary-font; - color: #282f49; - &::placeholder { - /* Chrome, Firefox, Opera, Safari 10.1+ */ - color: #282f49; - } - &:-ms-input-placeholder { - /* Internet Explorer 10-11 */ - color: #282f49; - } - &::-ms-input-placeholder { - /* Microsoft Edge */ - color: #282f49; - } - &:focus { - outline: 0; - box-shadow: none; - } - } - input.form-control { - height: 55px; - border: 1px solid #aeb8be; - } - } - .form-check { - padding: 0; - margin-bottom: 30px; - margin-top: -10px; - &-input { - padding: 0; - height: initial; - width: initial; - margin-bottom: 0; - // display: none; - cursor: pointer; - width: 1px; - height: 1px; - opacity: 0; - margin-left: 10px; - margin-top: 23px; - } - &-label { - position: relative; - cursor: pointer; - &::before { - content: ""; - -webkit-appearance: none; - background-color: transparent; - border: 1px solid #aeb8be; - height: 20px; - width: 20px; - border-radius: 4px; - display: inline-block; - position: relative; - vertical-align: middle; - cursor: pointer; - margin-right: 8px; - } - } - - input:checked + label:after { - content: ""; - display: block; - position: absolute; - top: 6px; - left: 7px; - width: 6px; - height: 12px; - border: solid #0079bf; - border-width: 0 2px 2px 0; - transform: rotate(45deg); - } - } - .contact-form-btn { - padding: 20px 45px; - display: inline-block; - font-size: 16px; - font-family: $secondary-font; - background: $primary-color; - border-radius: 7px; - color: #fff; - transition: all 0.3s ease; - &:hover { - background: #425fee; - box-shadow: 0 8px 20px rgba(56, 87, 241, 0.3); - transform: scale(1.03); - text-decoration: none; - } } } #map { diff --git a/layouts/contact/list.html b/layouts/contact/list.html index 6cc2037..4c7627c 100644 --- a/layouts/contact/list.html +++ b/layouts/contact/list.html @@ -1,39 +1,39 @@ {{ define "main" }} {{ $address := .Site.Params.address }} @@ -44,17 +44,10 @@
- - + + data-name="Path 1354" />
@@ -71,17 +64,10 @@
- - + + data-name="Path 1354" />
@@ -89,25 +75,20 @@

Phone & Email

-

{{ $address.phone }}

- {{ $address.email }} +

{{ $address.phone }}
+ {{ $address.email }} +

+
- - + + data-name="Path 1354" />
@@ -123,59 +104,84 @@
+
-

Contact Form

+

Contact Form

+
+
- +
- +
+
- +
-
- - + +
+
+ + +
- + +

+ + + + +
{{ $map := .Site.Params.map }} -
+
+