From 9f39115762551098826ad19c40aa516a6349b0d9 Mon Sep 17 00:00:00 2001 From: Adam Piontek Date: Tue, 3 Aug 2021 16:06:07 -0400 Subject: [PATCH] accommodating contact form --- comments.php => _UNUSED_comments.php.bak | 0 assets/css/app.scss | 23 +++++++++++++++++++++-- webpack.config.js | 2 ++ 3 files changed, 23 insertions(+), 2 deletions(-) rename comments.php => _UNUSED_comments.php.bak (100%) diff --git a/comments.php b/_UNUSED_comments.php.bak similarity index 100% rename from comments.php rename to _UNUSED_comments.php.bak diff --git a/assets/css/app.scss b/assets/css/app.scss index 14bf998..e89d89c 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -219,12 +219,31 @@ figure.wp-caption { /* forms and search */ -label { +label, +div.wpforms-container-full .wpforms-form .wpforms-field-label { @extend .form-label; } -input { +div.wpforms-container-full .wpforms-form .wpforms-required-label { + color: $red !important; +} +input, textarea, +div.wpforms-container-full .wpforms-form input[type="text"], +div.wpforms-container-full .wpforms-form input[type="email"], +div.wpforms-container-full .wpforms-form textarea { @extend .form-control; } +.wpforms-submit-container { + text-align: right; +} +div.wpforms-container-full .wpforms-form button[type="submit"] { + @extend .btn; + @extend .btn-primary; + font-family: $font-family-handbrush; +} +div.wpforms-container-full div.wpforms-confirmation-container-full { + @extend .alert; + @extend .alert-success; +} select { @extend .form-select; } diff --git a/webpack.config.js b/webpack.config.js index 4fd64ab..d6ac03a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -173,6 +173,7 @@ function getCSSWhitelistPatterns() { /^tag(-.*)?$/, /^menu(-.*)?$/, /^more(-.*)?$/, + /^wpforms(-.*)?$/, /^tags(-.*)?$/, /^tax-(.*)?$/, /^term-(.*)?$/, @@ -185,6 +186,7 @@ function getCSSWhitelistPatterns() { /^tsml$/, /^label$/, /^input$/, + /^textarea$/, /^select$/, /^img$/, /^ul$/,